Home

Awesome

CREStereo-Pytorch

Non-official Pytorch implementation of the CREStereo (CVPR 2022 Oral) model converted from the original MegEngine implementation.

!CREStereo-Pytorch stereo detph estimation

update 2023/01/03:

# train DDP
# change 'dist' to True in /cfgs/train.yaml file
python -m torch.distributed.launch --nproc_per_node=8 train.py
# train DP
# change 'dist' to False in /cfgs/train.yaml file
python train.py

Important

Pretrained model

ONNX Conversion

  1. Convert the model to an ONNX model that takes in left, right images as well as an initial flow estimate (takes a few seconds)
  2. Convert the model to an ONNX model that takes in left, right images and NO initial flow estimate (takes several minutes and requires pytorch >= 1.12) (afaik) You will need both models to get the same results as you do from test_model.py.

Licences:

References: