Giter Club home page Giter Club logo

cagnet's Introduction

CAGNet

This repository contains the Tensorflow implementation of our paper "CAGNet: Content-Aware Guidance for Salient Object Detection". The paper can be found at: [Sciencedirect] [arXiv]

Requirements

Usage

1- Clone the repository

git clone https://github.com/Mehrdad-Noori/CAGNet
cd CAGNet

2- If you want to train the model, download the following dataset and unzip it into data folder.

3- To run the training, set the arguments or use the default settings:

python train.py --backbone_model 'ResNet50' --batch_size 10 --save_dir 'save'

The backbone_model can be one of the following options: VGG16, ResNet50, NASNetMobile or NASNetLarge

4- To generate saliency maps:

python predict.py --model '/path/to/trained/model' --input_dir /path/to/input/images/directory --save_dir 'save'

You can also download and use our pre-trained models

5- Evaluation code

You can use this toolbox to compute different saliency measures such as E-measure, Weighted F-measure, MAE, PR curve ...

Pre-trained models & pre-computed saliency maps

We provide the pre-trained model and pre-computed saliency maps for DUTS-TE, ECSSD, DUT-OMRON, PASCAL-S, and HKU-IS datasets.

Quantitative Comparison

image

Qualitative Comparison

image

Any problems?

Please feel free to contact me, or raise an issue if you encounter any problems.

Citation

@article{mohammadi2020cagnet,
  title={CAGNet: Content-Aware Guidance for Salient Object Detection},
  author={Mohammadi, Sina and Noori, Mehrdad and Bahri, Ali and Majelan, Sina Ghofrani and Havaei, Mohammad},
  journal={Pattern Recognition},
  pages={107303},
  year={2020},
  publisher={Elsevier}
}

cagnet's People

Contributors

mehrdad-noori avatar

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.