Giter Site home page Giter Site logo

fvi_cv's Introduction

Scalable Uncertainty for Computer Vision with Functional Variational Inference

Code for Scalable Uncertainty for Computer Visition with Functional Variational Inference, by Eduardo D C Carvalho, Ronald Clark, Andrea Nicastro and Paul H J Kelly. To appear at CVPR 2020.

Pre-requisites:

Put /datasets folder at the same directory level as /FVI_CV.

Training all models:

Supply BASE_DIR as the path containing both /FVI_CV and /datasets folders.

If more convenient, set --n_epochs to a number smaller than 4000 and use --load in order to resume training.

Semantic segmentation on CamVid:

Ours-Boltzmann: python3 run_fvi_seg.py --base_dir=BASE_DIR --training_mode

Deterministic-Boltzmann/MCDropout-Boltzmann: python3 run_mcd_seg.py --base_dir=BASE_DIR --training_mode

Depth regression on Make3D:

Ours-Gaussian: python3 run_fvi_gaussian_depth.py --base_dir=BASE_DIR --training_mode

Ours-Laplace: python3 run_fvi_laplace_berhu_depth.py --base_dir=BASE_DIR --training_mode --likelihood="laplace"

Ours-berHu: python3 run_fvi_laplace_berhu_depth.py --base_dir=BASE_DIR --training_mode --likelihood="berhu"

Deterministic-Laplace: python3 run_deterministic_depth.py --base_dir=BASE_DIR --training_mode --loss="l1"

Deterministic-berHu: python3 run_deterministic_depth.py --base_dir=BASE_DIR --training_mode --loss="berhu"

MCDropout-Laplace: python3 run_mcd_laplace_depth.py --base_dir=BASE_DIR --training_mode

Computing test results:

Firstly, put all trained models (.bin files) and Ours-berHu likelihood threshold c_test.txt in folder /models_test. Change those filenames to the ones prescribed inside the if __name__ == '__main__': block in each run_*.py file.

Write same commands as in training, but replacing the --training_mode flag by --test_mode. For obtaining runtime comparison results, use --test_runtime_mode instead.

Finally, write python3 compare_calibration.py for computing the mean calibration scores.

fvi_cv's People

Stargazers

Wang Bomin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.