Open eszaher opened 1 year ago
Hi,
I manage to reproduce this error.
It can be corrected by a change in the line 250 of captum/attr/_utils/visualization.py
:
250 plt_axis.grid(b=False)
to
250 plt_axis.grid(visible=False)
After this change, it worked on my side.
The b argument seems to have been removed from matplotlib.axes.Axes.grid since version 3.5. If you cannot or don't want to modify Captum files, donwgrade to matplotlib 3.4.3 might work (not tested)
The issue has already been fixed: #1118
You can install directely from source to make it works :
pip install git+https://github.com/pytorch/captum.git
Thanks, that solved my issue over here, too!
🐛 Bug
<I am following the example on Model Interpretation for Pretrained ResNet Model¶. When I try to make the visualization I receive an error -->
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment
Describe the environment used for Captum