GithubHelp home page GithubHelp logo

psod's Introduction

PSOD (Point Saliency)

Weakly-Supervised Salient Object Detection Using Point Supervision

image

Prerequisites

  • Python 3.6
  • Pytorch 1.7
  • TensorboardX
  • OpenCV 3.4
  • Numpy 1.19

Clone repository

git clone [email protected]:shuyonggao/PSOD.git
cd PSOD

Download P-DUTS Dataset

VIZ

  • point supervised DUTS: google

  • training images and "train.txt" file: google

Download Relevant Necessary Data

Saliency map & Trained model

Train Model

  1. Put the R50+ViT-B pretrained model into "models" folder.

  2. Create the "dataset" folder in the main dirctory ("PSOD"). You should modify the create_link.sh file, then run it to create the soft link.

|----dataset
        |---edge
        |---gray
        |---image
        |---json
        |---train.txt
        |---filled_correct_img_gt  # Run "utills/EdgePoint2gt.py"
        |---filled_correct_mask  # Run "utills/EdgePoint2gt.py"

The Point supervison (json) and edge maps (edge) are employed to generate initial pseudo-labels (we provided the initial pseudo-labels and you can use it directly for training, or you can run python utils/EdgePoint2gt.py) to make initial pseudo-labels.

  1. We organize all steps into a shell file, you can run bash edgepoint2gt_train_nss_retrain.sh to complete the entire training process.

Test Model

  1. Set the path of the test data in test.py.

  2. Create "out_2nd" folder and put the trained model into "out_2nd" folder.

    Run python test.py

    The saliency maps will be saved in the "eval/maps" folder.

  3. We also provied the final saliency maps saliency maps: google.

Evaluation Code

The "Eval_SingleMeth_MulDataset.py" in "Saliency-Evaluation-numpy" folder is used to evaluate the saliency maps.

Citation

*If you find this work is helpful, please cite our paper:

@InProceedings{PSOD_aaai2022,
  title={Weakly-Supervised Salient Object Detection Using Point Supervision},
  author={Gao, Shuyong and Zhang, Wei and Wang, Yan and Guo, Qianyu and Zhang, Chenglong and He, Yangji and Zhang, Wenqiang},
  booktitle={AAAI},
  year={2022}
}

Acknowledgement

Weakly-Supervised Salient Object Detection via Scribble Annotations
Structure-Consistent Weakly Supervised Salient Object Detection with Local Saliency Coherence
Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers

psod's People

Contributors

shuyonggao avatar

Watchers

James Cloos 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.