Git Product home page Git Product logo

generatepgt's Introduction

generatePGT

Generating pseudo labels for MFNet.

This can also be served as a pipeline for all weakly supervised salient object detection (WSOD) methods. This code can generate class activation maps (CAMs) as well as two kinds of pseudo labels for WSOD. We sincerely hope that this will contribute to the community.

Prerequisites

environment

  • Windows 10
  • Torch 1.8.1
  • CUDA 10.0
  • Python 3.7.4
  • other environment requirment can be found in requirments.txt

training dataset (ImageNet)

you can download ImageNet dataset from this official website.

inference dataset (DUTS-Train RGB image)

you can download DUTS-Train dataset from this official website. Only RGB images are used in our MFNet.

Training

Firstly,

you should set your training and inference dataset root in --cls_dataset_dir and --sal_dataset_dir in run_sample.py, respectively.

Secondly,

setting --train_cam_pass to True, and run run_sample.py.

inference

Firstly,

setting --make_cam_pass to True, and run run_sample.py. Here you can get ① CAMs and ② the pixel-wise pseudo labels in root ./result/.

Secondly,

setting your inference dataset root in img_root in run_slic.py, and run. Here you can get ③superpixel-wise pseudo labels in root ./result/.

Checkpoint & Maps

Checkpoint

link: https://pan.baidu.com/s/1G-YHYsfho-rWwMv6VMFT4g. code: oipw

Maps: CAMs & pseudo labels

link: https://pan.baidu.com/s/1MHOOEk0XkLuLkYqoVlw5gw. code: oipw

Acknowledge

Thanks to pioneering helpful works:

  • IRNet: Weakly Supervised Learning of Instance Segmentation with Inter-pixel Relations, CVPR2019, by Jiwoon Ahn et al.
  • MSW: Multi-source weak supervision for saliency detection, CVPR2019, by Yu Zeng et al.
  • SSSS: Single-stage Semantic Segmentation from Image Labels, CVPR2020, by Nikita Araslanov et al.

generatepgt's People

Contributors

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