Open se210 opened 7 years ago
Try to set heatmap
to True
instead of False
:
model = convnet('alexnet',weights_path="weights/alexnet_weights.h5", heatmap=True)
The heatmap was generated in a separate run where heatmap
was set to True
.
If I may do a bit of publicity for my repo, I used this one as based and improved on it. It's up to date, works with keras 2 and Theano, tensorflow and CNTK. You can also use other CNN like ResNet to get heatmaps.
I have not been able to reproduce your results with the given example code. The heatmap probabilities and label confidence seems way too low. What were the versions and settings of Keras and Theano?
This is what I get on Keras 1.2.2 and Theano 0.9.0 by running the below script:
My keras.json:
Output:
Heatmap:![Heatmap](https://github.com/se210/convnets-keras/raw/my_results/examples/my_heatmap_dog.png)