sicara / tf-explain

Interpretability Methods for tf.keras models with Tensorflow 2.x
https://tf-explain.readthedocs.io
MIT License
1.02k stars 111 forks source link

name 'GradCAM' is not defined #127

Closed ShowTimeJMJ closed 4 years ago

ShowTimeJMJ commented 4 years ago

NameError Traceback (most recent call last)

in ----> 1 explainer = GradCAM() 2 grid = explainer.explain(data, model, class_index=np.argmax(preds[0])) NameError: name 'GradCAM' is not defined
RaphaelMeudec commented 4 years ago

@ShowTimeJMJ Could you provide a minimal example that raises the error? Which version of tf-explain are you using?

rao208 commented 4 years ago

@ShowTimeJMJ Maybe you did not import GradCam. Happened with me before.