Helper Module for Deep Learning.
Module that provides tools to compute class activation map.
-
class
pynet.cam.FeatureExtractor(model, target_layers)[source]¶ Class for extracting activations and registering gradients from targetted intermediate layers.
-
class
pynet.cam.GradCam(model, target_layers, labels, top=1)[source]¶ Class for computing class activation map.
-
class
pynet.cam.ModelOutputs(model, target_layers)[source]¶ Class for making a forward pass, and getting: 1- the network output. 2- activations from intermeddiate targetted layers. 3- gradients from intermeddiate targetted layers.
Follow us
© 2019, pynet developers .
Inspired by AZMIND template.
Inspired by AZMIND template.