This is the official implementation of our TIP 2023 paper "Depth Injection Framework for RGBD Salient Object Detection" (IEEE Xplore).
models/: Contains model definitions and network architecturesdata/: Contains data loading and processing codemetric/: Contains implementations of evaluation metricsutils/: Contains utility functions and configuration loadingconfigs/: Contains configuration files
python train.py --config configs/default.yamlTest on one or multiple datasets and calculate evaluation metrics:
python test.py --config configs/default.yaml --checkpoint path/to/your/model_checkpoint.pthExport saliency maps to a specified directory:
python export_saliency.py --checkpoint path/to/your/model_checkpoint.pth --output-dir ./resultsExport saliency maps and evaluate performance simultaneously:
python export_saliency.py --checkpoint path/to/your/model_checkpoint.pth --output-dir ./results --evaluateEvaluate previously saved saliency maps:
python evaluate_saliency.py --pred-dir ./results/dataset_name --dataset-name dataset_nameIf the saliency map directory name is the same as the dataset name, you can simplify to:
python evaluate_saliency.py --pred-dir ./results/dataset_nameThis project supports the following evaluation metrics:
- F-measure
- MAE (Mean Absolute Error)
- S-measure (Structure measure)
- E-measure (Enhanced alignment measure)
- WFM (Weighted F-measure)
This project supports the following RGB-D salient object detection datasets:
- DUT-RGBD
- NLPR
- NJU2K
- STEREO1000
- STEREO(797)
- DES(RGBD135)
- LFSD
- SIP
Download our pre-computed saliency maps:
- File: Saliency_Maps.zip
- Link: https://pan.baidu.com/s/1JJ9XtxO5fIZNE_lBVptNmQ
- Extraction Code: 5vjp
You can download the test set used in our experiments:
- File: TestSet.zip
- Link: https://pan.baidu.com/s/1UQ66rs0GiT2i7uNH8XP7qg
- Extraction Code: 5h3r
Our model was trained on the combined dataset of DUT-RGBD, NJU2K, and NLPR.
Download our best checkpoint:
- File: best_epoch.pth
- Link: https://pan.baidu.com/s/1tRnhJZNTzLVFzXcbhM8Dyw
- Extraction Code: syh5
- Python 3.7+
- PyTorch 1.7+
- CUDA 10.2+
- NumPy
- Pillow
- tqdm
- PyYAML
We would like to thank the authors of the following repositories for their excellent work and code:
If you find this work useful for your research, please consider citing our paper:
@article{yao2023depth,
title={Depth injection framework for RGBD salient object detection},
author={Yao, Shunyu and Zhang, Miao and Piao, Yongri and Qiu, Chaoyi and Lu, Huchuan},
journal={IEEE Transactions on Image Processing},
volume={32},
pages={5340--5352},
year={2023},
publisher={IEEE}
}Contact: Shunyu Yao
Email: yao_shunyu@foxmail.com or ysyfeverfew@mail.dlut.edu.cn
这是我们发表在 TIP 2023 的论文 "Depth Injection Framework for RGBD Salient Object Detection" 的官方实现(IEEE Xplore)。
models/: 包含模型定义和网络结构data/: 包含数据加载和处理相关代码metric/: 包含评估指标的实现utils/: 包含工具函数和配置加载configs/: 包含配置文件
python train.py --config configs/default.yaml测试单个或多个数据集并计算评估指标:
python test.py --config configs/default.yaml --checkpoint path/to/your/model_checkpoint.pth导出显著图到指定目录:
python export_saliency.py --checkpoint path/to/your/model_checkpoint.pth --output-dir ./results导出显著图并同时评估性能:
python export_saliency.py --checkpoint path/to/your/model_checkpoint.pth --output-dir ./results --evaluate对已保存的显著图进行评估:
python evaluate_saliency.py --pred-dir ./results/dataset_name --dataset-name dataset_name如果显著图目录名与数据集名称相同,可以简化为:
python evaluate_saliency.py --pred-dir ./results/dataset_name本项目支持以下评估指标:
- F-measure (F 测度)
- MAE (平均绝对误差)
- S-measure (结构测度)
- E-measure (增强对齐测度)
- WFM (加权 F 测度)
本项目支持以下RGB-D显著性目标检测数据集:
- DUT-RGBD
- NLPR
- NJU2K
- STEREO1000
- STEREO(797)
- DES(RGBD135)
- LFSD
- SIP
下载我们预先计算的显著图:
- 文件:Saliency_Maps.zip
- 链接:https://pan.baidu.com/s/1JJ9XtxO5fIZNE_lBVptNmQ
- 提取码:5vjp
您可以下载我们实验所用的测试集:
- 文件:TestSet.zip
- 链接:https://pan.baidu.com/s/1UQ66rs0GiT2i7uNH8XP7qg
- 提取码:5h3r
我们的模型在 DUT-RGBD、NJU2K 和 NLPR 的组合数据集上进行训练。
下载我们的最佳检查点:
- 文件:best_epoch.pth
- 链接:https://pan.baidu.com/s/1tRnhJZNTzLVFzXcbhM8Dyw
- 提取码:syh5
- Python 3.7+
- PyTorch 1.7+
- CUDA 10.2+
- NumPy
- Pillow
- tqdm
- PyYAML
我们感谢以下代码库的作者提供的优秀工作和代码:
如果您发现我们的工作对您的研究有用,请考虑引用我们的论文:
@article{yao2023depth,
title={Depth injection framework for RGBD salient object detection},
author={Yao, Shunyu and Zhang, Miao and Piao, Yongri and Qiu, Chaoyi and Lu, Huchuan},
journal={IEEE Transactions on Image Processing},
volume={32},
pages={5340--5352},
year={2023},
publisher={IEEE}
}联系人:姚舜禹
邮箱:yao_shunyu@foxmail.com 或 ysyfeverfew@mail.dlut.edu.cn