Giter Club home page Giter Club logo

tensorflow-grad-cam's Introduction

Grad-Cam - Tensorflow Slim

Features:

Modular with Tensorflow slim. Easy to drop in other Slim Models

Udated to work with Tensorflow 1.5

Includes various output options: heatmap, shading, blur

More examples and explanation here

Dependencies

Installation

Clone the repo:

git clone https://github.com/hiveml/tensorflow-grad-cam.git
cd tensorflow-grad-cam

Download the ResNet-50 weights:

./imagenet/get_checkpoint.sh

Usage

./main.sh

Changing the Class

By default this code shows the grad-cam results for the top class. You can change the predicted_class argument to function grad_cam to see where the network would look for other classes.

How to load another resnet_v2 model

First download the new model from here: Slim Models

Then modify the input arguments in main.sh:

python main.py --model_name=resnet_v2_101 --dataset_dir=./imagenet/ --checkpoint_path=./imagenet/resnet_v2_101.ckpt --input=./images/cat.jpg --eval_image_size=299

Repo is based off this code.

tensorflow-grad-cam's People

Contributors

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