Git Product home page Git Product logo

gcpanet's Introduction

Global Context-Aware Progressive Aggregation Network for Salient Object Detection

This repo. is an implementation of GCPANet , which is accepted for presentation in AAAI 2020.

GCPANet

vis

dependencies

>= Ubuntu 16.04 
>= Python3.5
>= Pytorch 1.0.0
OpenCV-Python

preparation

  • download the official pretrained model (Google drive) of ResNet-50 implemented in Pytorch if you want to train the network again.
  • download or put the RGB saliency benchmark datasets (Google drive) in the folder of data for training or test.

training

you may revise the TAG and SAVEPATH defined in the train.py. After the preparation, run this command

python3 train.py

make sure that the GPU memory is enough (the original training is conducted on a NVIDIA RTX (24G) card with the batch size of 32).

test

After the preparation, run this commond

 python3 test.py model/model-xxxxx.pt

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

cksum model-100045448.pt 

you will obtain the result 100045448 268562671 model_100045448.pt. 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 , data_root, and maps_root defined in the main.m. The saliency maps of the competitors are provided (Google drive).

gcpanet's People

Contributors

josephchenhub 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.