Paper: Prototypical Self-Explainable Models Without Re-training (Link)
The official repository for Prototypical Self-Explainable Models Without Re-training
Install a new conda environment
conda env create -f requirements.yml
conda activate kmexCommand example: python main.py --dataset mnist --model RESNET34 --run r0 --load
(1) -dataset: name of the dataset. Supports mnist, fmnist, quickdraw, cifar10, svhn, stl10, celeba
(2) -model: backbone model. Supports RESNET34, PROTOVAE_RESNET34 (for training as well as evaluation of KMEx), PPNET_RESNET34 (for ProtoPNet+KMEx and its evaluation), FLINT_RESNET34 (for FLINT+KMEx and its evaluation).
(3) -run: name of the experiment.
(4) --load: flag for loading the model.