Model Interpretability is very crucial to understand the behaviour of the model inorder to make model more robust,meaningful and understandable.
First install the necessary packages by typing command pip install -r requirements.txt
Now simply pass the following parameters to the class object GradCaM and run the model_explainer.py python file
-
image:str
-
model
-
last_conv_layer:str
-
classifier_layer_names:list
-
IMAGE_SIZE:int