Skip to content

Implemented CAM in two versions. (keras backend, numpy)

Notifications You must be signed in to change notification settings

tkwoo/ClassActivationMap_Keras

Repository files navigation

Class Activation Map, Keras

Image classification + CAM with keras

result

Requirements

Usage

Input data(only for evaluation)

└── data
    └── cats_vs_dogs
        └── validation
            └── cat
                └── xxx.png (name doesn't matter)
            └── dog    
                └── xxx.png (name doesn't matter)

The dataset directory structure is followed to use the Keras DataGen Framework.

checkpoint files,

└── checkpoint
    └── (ckpt_name)
        ├── model.json 
        ├── weight.xx.h5
        └── ...

To test a model

$ python main.py --mode cam --ckpt_name weight --data_path ./data/cats_vs_dogs/validation --batch_size 10

About

Implemented CAM in two versions. (keras backend, numpy)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages