Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 1.18 KB

README.md

File metadata and controls

44 lines (38 loc) · 1.18 KB

PnP XAI

This repository contains the demo code for PnP XAI system.

Installation

All Python dependencies are listed in environment.yml. To set up the environment, follow these steps:

  1. Install the Anaconda environment by running the following command:
    conda env create -f environment.yml
  2. Activate pnp_xai environment:
    conda activate pnp_xai
  3. Install the codebase by running:
    pip install -e .

Usage

Example Usage

You can use the following command to run the explanation code:

python -W ignore -m scripts.SCRIPT

The placeholder should be replaced wit hthe appropriate script file:

  • SCRIPT: A script code that defines a model and data to be explained with PnP XAI. Explanation results will be saved at $pnp_xai/results/{model}/{dataset}/{sample_idx}.png.

Example Results

VGG-16

ResNet-18

ViT-b-16