Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created August 15, 2019 09:22
Show Gist options
  • Save dipanjanS/2090cf3994d823fc89a2f7b42bd50d1c to your computer and use it in GitHub Desktop.
Save dipanjanS/2090cf3994d823fc89a2f7b42bd50d1c to your computer and use it in GitHub Desktop.
explainer = ExtractActivations()
grid = explainer.explain((np.array([img]), None), model, ['block2_sepconv2_act'])
fig, ax = plt.subplots(figsize=(18, 18))
ax.imshow(grid, cmap='binary_r')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment