Skip to content

分类网路探索 利用Keras 探索类别激活图 可视化

License

Notifications You must be signed in to change notification settings

xy9485/Classify-ResNetCAM-keras

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

写在前面

  • 利用keras探索类别激活图,
  • 理论部分 deeplearning-study 项目下的 24.191-16-Learning-Deep-Features-for-Discriminative-Localization.md

ResNetCAM-keras

Keras implementation of a ResNet-CAM model

Motivation

The original Matlab implementation and paper (for AlexNet, GoogLeNet, and VGG16) can be found here. A Keras implementation of VGG-CAM can be found here.

This implementation is written in Keras and uses ResNet-50, which was not explored in the original paper.

Requirements

  • keras with tensorflow backend (keras version 2.0.0 or later)
  • numpy
  • ast
  • scipy
  • matplotlib
  • opencv3

Usage

git clone https://github.com/alexisbcook/ResNetCAM-keras.git
cd ResNetCAM-keras
python ResNet_CAM.py images/dog.png

Feel free to try out your own image by replacing images/dog.png with a file path to another image! :)

Example plots

Dog Localization

Blog Post

This repository is discussed in the blog post here.

About

分类网路探索 利用Keras 探索类别激活图 可视化

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%