Skip to content
/ RAG Public

Continual Stereo Matching of Continuous Driving Scenes with Growing Architecture

Notifications You must be signed in to change notification settings

chzhang18/RAG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Continual Stereo Matching

Code for Continual Stereo Matching of Continuous Driving Scenes with Growing Architecture, accepted as ORAL at CVPR 2022.

💡 UPDATE! Code for Reusable Architecture Growth for Continual Stereo Matching, extended version of CVPR 2022, accepted at TPAMI 2024.

Overview

Reusable Architecture Growth

Abstract

The deep stereo models have achieved state-of-the-art performance on driving scenes, but they suffer from severe performance degradation when tested on unseen scenes. Although recent work has narrowed this performance gap through continuous online adaptation, this setup requires continuous gradient updates at inference and can hardly deal with rapidly changing scenes. To address these challenges, we propose to perform continual stereo matching where a model is tasked to 1) continually learn new scenes, 2) overcome forgetting previously learned scenes, and 3) continuously predict disparities at deployment. We achieve this goal by introducing a Reusable Architecture Growth (RAG) framework. RAG leverages task-specific neural unit search and architecture growth for continual learning of new scenes. During growth, it can maintain high reusability by reusing previous neural units while achieving good performance. A module named Scene Router is further introduced to adaptively select the scene-specific architecture path at inference. Experimental results demonstrate that our method achieves compelling performance in various types of challenging driving scenes.

If you use this code please cite:

@inproceedings{zhang2022continual,
  title={Continual Stereo Matching of Continuous Driving Scenes with Growing Architecture},
  author={Zhang, Chenghao and Tian, Kun and Fan, Bin and Meng, Gaofeng and Zhang, Zhaoxiang and Pan, Chunhong},
  booktitle={Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR)},
  pages={18901--18910},
  year={2022}
}

@article{zhang2024reusable,
  title={Reusable Architecture Growth for Continual Stereo Matching},
  author={Zhang, Chenghao and Meng, Gaofeng and Fan, Bin and Tian, Kun and Zhang, Zhaoxiang and Xiang, Shiming and Pan, Chunhong},
  journal={IEEE Transactions on Pattern Analysis Machine Intelligence},
  year={2024},
  publisher={IEEE}
}

Requirements

python 3.7
PyTorch >= 1.1
torchvision >= 0.3
matplotlib
tensorboard
tensorboardX
scikit-image
opencv

Supervised Continual Stereo

Code Structure

  • ./src/approaches: the reusable architecture growth framework
  • ./src/automl: neural units search and network level growth
  • ./src/dataloader: datasets preprocess and dataloader
  • ./src/filenames: dataset lists, e.g., four scenes with different weather
  • ./src/models: stereo models with Feature Net and Matching Net
  • ./src/utilstool: tool code for metrics
  • ./logs/: running logs

Command to start experiment

sh run_rag.sh

Self-supervised Continual Stereo

Code structure

The code structure of self-supervised continual stereo is similar to that of supervised continual stereo, and all the code is in the src_self folder. The main additions are in the src_self/dataloader folder.

Command to start experiment

sh run_rag_self.sh

Extension to monocular depth estimation

Code structure

The code structure of supervised continual monocular depth estimation is similar to that of supervised continual stereo, and all the code is in the rag_depth folder.

Command to start experiment

cd rag_depth
sh run_rag_depth.sh

Pretrained weights

The pretrained weights trained on the DrivingStereo dataset are in the rag_depth/logs folder. The code we have shared currently encompasses the training and inference evaluation together. We welcome any insights and ideas to translate the training code into a functional inference system in order to leverage the pretrained weights.

Acknowledgements

This repository makes liberal use of code from [PSMNet], [LEAStereo], [LLSEU].

About

Continual Stereo Matching of Continuous Driving Scenes with Growing Architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published