Official code for "Attribution Guided Factorization for Neural Networks Visualization"
Baseline methods are taken from link, and link.
- python 3.6
- pytorch 1.1
- torchvision
- numpy
- scipy
- scikit-learn
- scikit-image
- Pillow
- matplotlib
- OpenCV
- tqdm
- h5py
- imageio
- tensorboard
-
Create a new conda environment:
conda create -n agf_env python=3.6
-
Activate the created environment:
conda activate agf_env
-
Update conda to keep track of the environment:
conda update --all
-
Install the PyTorch library inside the conda environment just created per the PyTorch official website, for instance, using
conda
with cuda toolkit version 10.2 on a linux machine, we have the command to install the current Long-Term-Support (LTS) Version,conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch-lts
-
Install other required libraries if absent:
pip install matplotlib pip install scikit-image pip install opencv-python
-
Also the code should be able to run out of the box in Google's Colab: .
Good luck!