Coder Social home page Coder Social logo

rrm's Introduction

Reliability Does Matter: An End-to-End Weakly Supervised Semantic Segmentation Approach

AAAI 2020 (Spotlight).

The code of the new extended work now is available. In the further, I will try to merge these two works so that making the whole project is more elegant.

Paper of the extended work will come soon.

This project is based on Regularized loss and PSA.

Before Running, build python extension module:

cd wrapper/bilateralfilter
swig -python -c++ bilateralfilter.i
python setup.py install

More details please see here

Download pretrained models to ./netWeights:

Google: due to the coronavirus outbreak in China, I will upload models after I can enter my lab. But you can download “[ilsvrc-cls_rna-a1_cls1000_ep-0001.params]” and “[res38_cls.pth]” from here.

BaiduYun

[ilsvrc-cls_rna-a1_cls1000_ep-0001.params] is an init pretained model.

[res38_cls.pth] is a classification model pretrained on VOC 2012 dataset.

[RRM_final.pth] is the final model (AAAI).

[RRM(attention)_final.pth] is the final model of the new extended work (64.7 mIoU on Pascal Voc 2012 val set).

Training of the New Extended Work:

Training from init model:

you need 4 GPUs and the pretrained model [ilsvrc-cls_rna-a1_cls1000_ep-0001.params]:

python train_from_init(attention).py --voc12_root /your/path/VOCdevkit/VOC2012

Training from a pretrained classification model:

you only need 2 GPU and the pretrained model [res38_cls.pth]

python train_from_cls_weight(attention).py --IM_path /your/path/VOCdevkit/VOC2012/JPEGImages

Training of the AAAI Work:

I suggest that it is better to use the 2nd method due to lower computing costs.

Training from init model:

you need 4 GPUs and the pretrained model [ilsvrc-cls_rna-a1_cls1000_ep-0001.params]:

python train_from_init.py --voc12_root /your/path/VOCdevkit/VOC2012

Training from a pretrained classification model:

you only need 1 GPU and the pretrained model [res38_cls.pth]

python train_from_cls_weight.py --IM_path /your/path/VOCdevkit/VOC2012/JPEGImages

Inferencing of the extended work:

you need 1 GPU and the final model [RRM(attention)_final.pth]:

python infer_RRM.py --IM_path /your/path/VOCdevkit/VOC2012/JPEGImages

Inferencing of the AAAI work:

you need 1 GPU and the final model [RRM_final.pth]:

python infer_RRM.py --IM_path /your/path/VOCdevkit/VOC2012/JPEGImages

rrm's People

Contributors

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