Home

Awesome

ICNet: Intra-saliency Correlation Network for Co-Saliency Detection

This repository is the official PyTorch implementation of our NeurIPS(2020) paper.

You can switch the branch to "CN", to view README.md (Chinese version) and obtain codes with Chinese comments.

(您可以将 branch 切换到 "CN",以查看中文版 README.md 并获取带有中文注释的代码)

<div align=center><img width="450" height="300" src=./thumbnail.png/></div>

Training Datasets

Our training set is a subset of the COCO dataset, containing 9213 images.

Test Datasets

Used in our paper:

You can download them from:

Released recently:

Pre-trained Model

We provide pre-trained ICNet based on SISMs produced by pre-trained EGNet (VGG16-based).

Prediction Results

We release the co-saliency maps (predictions) generated by our ICNet on 5 benchmark datasets:

MSRC, iCoseg, Cosal2015, CoCA, and CoSOD3k.

Training and Test

Prepare SISMs

Our ICNet can be trained and tested based on SISMs produced by any off-the-shelf SOD method, but you are suggested to use the same SOD method to generate SISMs in training and test phases to keep the consistency.

In our paper, we choose the pre-trained EGNet (VGG16-based) as the basic SOD method to produce SISMs, you can downloaded these SISMs directly from:

Training

  1. Download pre-trained VGG16 from:

  2. Follow instructions in "./ICNet/train.py" to modify training settings.

  3. Run:

python ./ICNet/train.py

Test

    • Test pre-trained ICNet:

      Download pre-trained ICNet "ICNet_vgg16.pth" (the download link is given above).

    • Test ICNet trained by yourself:

      Choose the checkpoint file "Weights_i.pth" (saved after i-th epoch automatically) you want to load for test.

  1. Follow instructions in "./ICNet/test.py" to modify test settings.

  2. Run:

python ./ICNet/test.py

Evaluation

The folder "./ICNet/evaluator/" contains evaluation codes implemented in PyTorch (GPU-version), the metrics include max F-measure, S-measure, and MAE.

  1. Follow instructions in "./ICNet/evaluate.py" to modify evaluation settings.

  2. Run:

python ./ICNet/evaluate.py

Compared Methods

We compare our ICNet with 7 state-of-the-art Co-SOD methods:

You can download predictions of these methods from:

Citation

To be updated.

Contact

If you have any questions, feel free to contact me (Wen-Da Jin) at jwd331@126.com, I will reply as soon as possible.