Git Product home page Git Product logo

srffnet's Introduction

by Shuang Wu, Guangjian Zhang

the Paper has been accepted by《Cognitive Computation》.

Prerequisites

  • Python 3.7
  • Pytorch 1.7
  • OpenCV 4.0
  • Numpy 1.15
  • TensorboardX
  • Apex

Test Demo

Fast Test Demo

Clone repository

git clone https://github.com/user-wu/SRFFNet.git
cd SRFFNet/

Download dataset

Download the following datasets and unzip them into data folder

Directory Structure

 data --------------------------
      |-DUTS        -image/
      |             -mask/
      |             -test.txt
      |             -train.txt
      --------------------------
      |-DUT-OMRON   -image/
      |             -mask/
      |             -test.txt
      --------------------------
      |-ECSSD       -image/
      |             -mask/
      |             -test.txt
      --------------------------
      |-HKU-IS      -image/
      |             -mask/
      |             -test.txt
      --------------------------
      |-PASCAL-S    -image/
      |             -mask/
      |             -test.txt
      --------------------------

Download model

  • If you want to test the performance of SRFFNet, please download the model into out folder
  • If you want to train your own model, please download the pretrained model into res folder

Training

cd src/
python train.py
  • ResNet-50 is used as the backbone of SRFFNet and DUTS-TR is used to train the model
  • batch=32, lr=0.05, momen=0.9, decay=5e-4, epoch=32
  • Warm-up and linear decay strategies are used to change the learning rate lr
  • After training, the result models will be saved in out folder

Testing

cd src
python test.py
  • After testing, saliency maps of PASCAL-S, ECSSD, HKU-IS, DUT-OMRON, DUTS-TE will be saved in eval/maps/ folder.
  • Trained model: model
  • Saliency maps for reference: saliency maps

Citation

  • If you find this work is helpful, please cite our paper
@article{wu2023srffnet,
  title={SRFFNet: Self-refine, Fusion and Feedback for Salient Object Detection},
  author={Wu, Shuang and Zhang, Guangjian},
  journal={Cognitive Computation},
  pages={1--13},
  year={2023},
  publisher={Springer}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.