Skip to content

denyingmxd/CFPNet

Repository files navigation

CFPNet: Improving Lightweight ToF Depth Completion via Cross-zone Feature Propagation

[Paper]

The paper has been accepted to 3DV 2025. The arxiv version of the paper is at here.

SelfToF extends CFPNet to a self-supervised framework. Interested readers may go to paper and code for more details.

Pipeline of CFPNet

My Project Logo

Installation

pip install -r requirements.txt

Prepare the data and pretrained model

Please refer to DELTAR for the data preparation.

Please download the pretrained model from Baidu Yun (password: fhpv) and put it in the correct directory and rename it to best.pth.

Specifically,

change baseline.pt to best.pt and put it under train_deltar_change_embedding_no_clip_grad_hist_encoder_optimized_10x.pt,
change ours.pt to best.pt and put it under train_deltar_change_embedding_no_clip_grad_hist_encoder_optimized_10x_combine1.pt

The resulting structure should look sth like this:

deltar
├── data
│   ├── demo
│   └── ZJUL5
│   └── nyu_depth_v2
└── weights
    └── train_deltar_change_embedding_no_clip_grad_hist_encoder_optimized_10x_combine1
        └── best.pt (rename the pretrained model to best.pt)

Command to train on the NYU dataset

python train.py @configs/train_deltar_change_embedding_no_clip_grad_hist_encoder_optimized_10x_combine1.txt

Command to evaluate on the NYU and ZJUL5 dataset

python evaluate_all.py @configs/train_deltar_change_embedding_no_clip_grad_hist_encoder_optimized_10x_combine1.txt --selected_epoch best
python evaluate_all.py @configs/train_deltar_change_embedding_no_clip_grad_hist_encoder_optimized_10x_combine1.txt --test_dataset nyu --selected_epoch best

Note that we train on the NYU dataset and evaluate on both the NYU and ZJUL5 datasets. The model that perform the best on NYU dataset will be chosen to evaluate on the ZJUL5 dataset. This follows the same protocol as the DELTAR.

If you do not set the selected_epoch, the code will go through all available epochs and generate an excel file that contains the result for all epochs.

Citation

If you find this code useful for your research, please use the following BibTeX entry.

@misc{ding2024cfpnet,
    title={CFPNet: Improving Lightweight ToF Depth Completion via Cross-zone Feature Propagation},
    author={Laiyan Ding and Hualie Jiang and Rui Xu and Rui Huang},
    year={2024},
    eprint={2411.04480},
    archivePrefix={arXiv},
    primaryClass={cs.CV}
}

Acknowledgements

We would like to thank the authors ofnd DELTAR for open-sourcing their projects.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors