Skip to content

Commit b4d1772

Browse files
authored
Update captum dependencies (matplotlib and flask-compress)
1 parent dd6a55d commit b4d1772

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

beginner_source/introyt/captumyt.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -98,21 +98,24 @@
9898
Before you get started, you need to have a Python environment with:
9999
100100
- Python version 3.6 or higher
101-
- For the Captum Insights example, Flask 1.1 or higher
101+
- For the Captum Insights example, Flask 1.1 or higher and Flask-Compress
102+
(the latest version is recommended)
102103
- PyTorch version 1.2 or higher (the latest version is recommended)
103104
- TorchVision version 0.6 or higher (the latest version is recommended)
104105
- Captum (the latest version is recommended)
106+
- Matplotlib version 3.3.4, since Captum currently uses a Matplotlib
107+
function whose arguments have been renamed in later versions
105108
106109
To install Captum in an Anaconda or pip virtual environment, use the
107110
appropriate command for your environment below:
108111
109112
With ``conda``::
110113
111-
conda install pytorch torchvision captum -c pytorch
114+
conda install pytorch torchvision captum flask-compress matplotlib=3.3.4 -c pytorch
112115
113116
With ``pip``::
114117
115-
pip install torch torchvision captum
118+
pip install torch torchvision captum matplotlib==3.3.4 Flask-Compress
116119
117120
Restart this notebook in the environment you set up, and you’re ready to
118121
go!

0 commit comments

Comments
 (0)