Coder Social home page Coder Social logo

cam-pytorch's Introduction

I. Introduction

Use pytorch 0.4.0 and python3 to implemennt CAM (class avtivation mapping). Just a simple lab, acting on cifar-10 dataset.

Click here for more


II. Usage

$ python3 cam.py

And the result will be saved in directory res.


III. Description for packages and files.

— res/ —

 A directory where the results are placed.

— cifar-10-batches-py/ —

Cifar-10 data set

— cam.py —

Run and save the result of CAM method.

— train.py —

Train the net I defined with 20 epoches and SGD.

— params.pkl —

Model-state saved by pytorch.

IV. Result

Some of the results are shown below. White regions are what we interested in.


V. To do

Use larger dataset, for now, the size of feature map before GAP layer is only 8*8, and I resize it to 224*224. There must be much loss of information during this process.

cam-pytorch's People

Contributors

charlescxk avatar

Stargazers

 avatar

Watchers

 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.