Aug. 24, 2023, 1:08 p.m. | /u/Technical_Buy_3933

Computer Vision www.reddit.com

Hello hello!

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

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