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
Any Thoughts on a 1.58 Bit YOLOv5?
22 hours ago |
www.reddit.com
Tesseract OCR - Poor Performance?
23 hours ago |
www.reddit.com
Locating a smaller image within larger one
1 day, 2 hours ago |
www.reddit.com
YOLOv8 TensorRT quantized in Int8
2 days, 7 hours ago |
www.reddit.com
Jobs in AI, ML, Big Data
Software Engineer for AI Training Data (School Specific)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Python)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Tier 2)
@ G2i Inc | Remote
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US