Generate attribution maps for image classification models and serve them through a React viewer.
The backend is managed with uv. Dependencies and the
Python version are pinned in pyproject.toml / uv.lock / .python-version
-
Install uv
-
Create the local environment and install locked dependencies:
uv sync
This creates a project-local
.venv/and installs the exact versions fromuv.lock. -
Run the attribution pipeline:
uv run python main.py --help
The default dataset is
imagenet-pico-ai. You can select another dataset directory underinterpretability-viewer/public/with--dataset:uv run python main.py --dataset imagenet-pico --num-samples 20
The paired AI dataset generation feature lives in the backend and can be run with:
uv run python -m backend.ai_dataset --helpTo run in development mode:
- Clone the repository
- Navigate to the
interpretability-viewerdirectory - Install dependencies with
npm install - Start the development server with
npm run dev