PracticalDL/Practical-Deep-Learning-Book

Input format on tf_explain for ExtractActivations

elviejokike opened this issue · 1 comments

The data passes to the explain method (when using ExtractActivations) must be fixed to

data_for_activation = (np.array([img]), None)
grid = explainer.explain(data_for_activation, model, ['conv1'])

https://github.com/PracticalDL/Practical-Deep-Learning-Book/blob/master/code/chapter-5/3-tf-explain.ipynb

Thank you for pointing out the error. Fixed via #62