all AI news
cnncam: an open source library to produce attention heatmaps in a single line of code
Aug. 24, 2023, 1:08 p.m. | /u/Technical_Buy_3933
Computer Vision www.reddit.com
I'm here to share a library I built for interpretability of keras computer vision models that contain convolutional layers. It produces GradCAM heatmaps in a single function call:
from cnncam import display_heatmap
display_heatmap(model=model, # your keras model
img=img, # your image
predicted_class=pred, # your models prediction for the image
layer_name='block5_conv3', # the layer you would like to see
alpha=0.6 # opacity of heatmap overlayed on image
)
The output represents a localization of features that were found to …
attention call code computer computer vision computervision function hello image import interpretability keras library line open source vision vision models
More from www.reddit.com / Computer Vision
What can i do to improve my model
1 day, 4 hours ago |
www.reddit.com
Occlusion resilient pose estimation
1 day, 13 hours ago |
www.reddit.com
KAN: Kolmogorov–Arnold Networks - For Computer Vision
4 days, 19 hours ago |
www.reddit.com
Jobs in AI, ML, Big Data
Founding AI Engineer, Agents
@ Occam AI | New York
AI Engineer Intern, Agents
@ Occam AI | US
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Business Intelligence Architect - Specialist
@ Eastman | Hyderabad, IN, 500 008