PiCANet Save

Project README

PiCANet

source code for our CVPR 2018 paper PiCANet: Learning Pixel-wise Contextual Attention for Saliency Detection by Nian Liu, Junwei Han, and Ming-Hsuan Yang.

Created by Nian Liu, Email: [email protected]

Usage:

  1. Cd to ./caffe, install our modified caffe (given in the source code) and its MATLAB wrapper. Plese refer to http://caffe.berkeleyvision.org/installation.html for caffe installation.
  2. Download our trained models from Google drive. Unzip them to ./models/models.
  3. Put your images into ./matlab/images.
  4. Cd to ./matlab, run 'predict_SOs.m' and the saliency maps will be generated in ./matlab/results. You can also select whether to use the VGG based model or the ResNet50 based model in line 16 or 17.
  5. You can also consider to use CRF post-processing to improve the detection results like we did in our paper. Please refer to Qibin Hou's code.
  6. We also provide our saliency maps here.

Training:

  1. Download the pretrained VGG model (vgg16_20M.caffemodel from deeplab) or the ResNet50 model. Modify the model directories in ./models/train_SO.sh.
  2. Prepare your images, ground truth saliency maps, and the list file (please refer to ./matlab/list/train_list.txt). Modify corresponding contents in prototxt files.
  3. Cd to ./models, run sh train_SO.sh to start training.

Acknowledgement:

Our code uses some opensource code from deeplab, hybridnet, and a caffe pull request to reduce GPU memory usage. Thank the authors.

Citing our work

Please cite our work if it helps your research:

@inproceedings{liu2018picanet,
  title={PiCANet: Learning Pixel-wise Contextual Attention for Saliency Detection},
  author={Liu, Nian and Han, Junwei and Yang, Ming-Hsuan},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  pages={3089--3098},
  year={2018}
}
Open Source Agenda is not affiliated with "PiCANet" Project. README Source: nian-liu/PiCANet
Stars
36
Open Issues
0
Last Commit
5 years ago
Repository

Open Source Agenda Badge

Open Source Agenda Rating