Coder Social home page Coder Social logo

cascade-stereo's Introduction

Casacde-Stereo on Messytable Dataset

Installation

Docker Image

isabella98/cascade-stereo-image:latest

Optional: Apex (not tested)

Install apex to enable synchronized batch normalization:

git clone https://github.com/NVIDIA/apex.git
cd apex
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

Train

./CasStereoNet/scripts/messytable_remote.sh $NUM_OF_GPUS $OUTPUT_PATH

Example: Use ./CasStereoNet/scripts/messytable_remote.sh 2 ./train_7_28/debug to train your model with 2 GPUs.

I have simplified the argparser part in main.py, it now only contains some basic args. You can use --gaussian-blur and --color-jitter in your shell file ( e.g. ./CasStereoNet/scripts/messytable_remote.sh) to enable gaussian blur and color jitter during training.

If you want to change some other args such as model parameters, (e.g. lr, batch_size), please go to CasStereoNet/configs/remote_train_config.yaml, it contains some parameters that we don't need to change often. If your dataset folder is not mounted as /cephfs, please go to the this file to change the path to your dataset. The parameters of data augmentation are also included in this file.

Please use different $OUTPUT_PATH for each job or you can use sub directories such as train_7_28/dataaug-0/ to get more organized.

Test

python ./CasStereoNet/test_on_sim_real.py --config-file ./CasStereoNet/configs/remote_test_config.yaml --model $PATH_TO_YOUR_MODEL --annotate $EXPERIMENT_ANNOTATION --exclude-bg

Use --exlude-bg if you want to exclude background when calculating the error metric.

Use --onreal if you are testing on real dataset, omit if you want to test on sim dataset.

Use --debug if you want to load less data (10) and see quick result.

Example:

python CasStereoNet/test_on_sim_real.py --config-file ./CasStereoNet/configs/remote_test_config.yaml --model /isabella-fast/Cascade-Stereo/outputs/7_19_dataaug-0/checkpoint_000006.ckpt --annotate test_7_28 --exclude-bg --onreal

Reference

@inproceedings{gu2019cas,
  title={Cascade Cost Volume for High-Resolution Multi-View Stereo and Stereo Matching},
  author={Gu, Xiaodong and Fan, Zhiwen and Zhu, Siyu and Dai, Zuozhuo and Tan, Feitong and Tan, Ping},
  journal={arxiv preprint arXiv:1912.06378},
  year={2019}
}

cascade-stereo's People

Contributors

isabella98liu avatar gxd1994 avatar alibaba-oss avatar

Stargazers

Jianyu Tao avatar

Watchers

 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.