Skip to content
Code for the paper 'FRAME Revisited: An Interpretation View Based on Particle Evolution'
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cifar
collapse
.gitignore
README.md

README.md

WFRAME

Code for the paper `FRAME Revisited: An Interpretation View Based on Particle Evolution'.

Prerequisites

  • PyTorch 0.3
  • torchvision
  • tqdm
  • Run with GPU

Experiments

Download pretrained weight

git clone 'https://github.com/caitree/wframe.git'
cd wframe
wget 'https://download.pytorch.org/models/vgg16-397923af.pth' -O vgg16.pth

Synthesize cifar samples

cp path_to_cifar_data ./cifar/Data
cd cifar
python synthesize_cifar.py --per_class True --debug False

Value per_class means whether to condition on class label.

Value debug controls whether to show the synthesized results per Langevin step.

Collapse identification and comparison

cd collapse
python compare.py --step our
python compare.py --step ori
You can’t perform that action at this time.