references/depth/stereo/README.md
Stereo Matching reference training scripts
This folder contains reference training scripts for Stereo Matching.
They serve as a log of how to train specific models, so as to provide baseline
training and evaluation scripts to quickly bootstrap research.
Note: this depends on the prototype folder which was removed, the latest
commit with the prototype folder is 8b6ba92ce5c48d6db596f6d415a90c128bc5f77b.
CREStereo
The CREStereo model was trained on a dataset mixture between CREStereo, ETH3D and the additional split from Middlebury2014.
A ratio of 88-6-6 was used in order to train a baseline weight set. We provide multi-set variant as well.
Both used 8 A100 GPUs and a batch size of 2 (so effective batch size is 16). The
rest of the hyper-parameters loosely follow the recipe from https://github.com/megvii-research/CREStereo.
The original recipe trains for 300000 updates (or steps) on the dataset mixture. We modify the learning rate
schedule to one that starts decaying the weight much sooner. Throughout the experiments we found that this reduces
overfitting during evaluation time and gradient clip help stabilize the loss during a pre-mature learning rate change.
torchrun train.py \
\
\
crestereo_base \
crestereo eth3d-train middlebury2014-other \
\
\
\
cosine \
\
\
\


