Skip to content

DPANet : Depth Potentiality-Aware Gated Attention Network for RGB-D Salient Object Detection

License

Notifications You must be signed in to change notification settings

sunstarchan/DPANet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo. is an official implementation of the DPANet , which has been accepted in the journal IEEE Transactions on Image Processing, 2020.

The main pipeline is shown as the following, DPANet

And some visualization results are listed vis

gma

Dependencies

>= Pytorch 1.0.0
OpenCV-Python
[optional] matlab

Preparation

  • download the official pretrained model of ResNet-50/ResNet-34/ResNet-18 implemented in Pytorch if you want to train the network again.
  • download or put the RGB-D saliency benchmark datasets (Google drive) in the folder of data for training or test.
  • [optional] generate the pseudo label (provided for NJUD and NLPR) using the scripts gen.m and cal_score.py.

Training

python3 train.py --tag res50 --save_path res50_res

make sure that the GPU memory is enough (the original training is conducted on 8 NVIDIA RTX2080Ti cards with the batch size of 32).

Test

 python3 test.py --tag res50 --gpu 0 --model res50_res/model-30

We provide the trained model file (Google drive), and run this command to check its integrity:

md5sum model-res50-epoch30.pt 

you will obtain the code b666d297e0237035f6e48f80711ca927. Please use the matlab code to evaluate the MAE, F-measure, or other metrics rather than using the accuracy defined in the test.py.

The saliency maps are also available (Google drive).

Evaluation

We provide the evaluation code in the folder "eval_code" for fair comparisons. You may need to revise the algorithms , prepath, and maskpath defined in the main.m. The saliency maps of the competitors (official maps or obtained by running the official code) are provided (Google drive).

Citation

Please cite the DPANet in your publications if it helps your research:

@article{chen2020depth,
  title={{DPANet}:Depth Potentiality-Aware Gated Attention Network for {RGB-D} Salient Object Detection},
  author={Chen, Zuyao and Cong, Runmin and Xu, Qianqian and Huang, Qingming},
  journal={IEEE Transactions on Image Processing},
  year={2020}
}

About

DPANet : Depth Potentiality-Aware Gated Attention Network for RGB-D Salient Object Detection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.9%
  • MATLAB 19.1%