An Open-source Framework for Benchmarking Explanation Methods in Computer Vision.
- Fork the repo and then clone it.
⚠️ Install python >= 3.8.- Install pre-commit hooks:
pip install pre-commit
and thenpre-commit install
. The hooks will be automatically triggered when runninggit commit
. One can also manually trigger the hooks withpre-commit run --all-files
. - (Optional) Install
torch
. - Install the requirements for development:
pip install -r requirements_dev.txt
. - Install the package in editable mode
pip install -e .
. - (Optional) Add custom directories in
.git/info/exclude
to make them ignored by git. Note that some common directories like.idea
,.vscode
are already in the.gitignore
file.
- Go to
docs/
and install the requirements:cd docs/ && pip install -r requirements_doc.txt
. - Now the current directory should be under
docs/
. Build the html webpage:make html
. - Go to
docs/build/
and then host the webpage locally:cd build/ && python -m http.server <port>
, whereport
is a number (e.g., 1234). - Open the webpage
localhost:<port>
in a browser.