Skip to content

OpenXAIProject/pnp_xai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Demo code for PnP XAI system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published