Skip to content

NickHoernle/semantic_loss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation:

pip install -e .

Installing DL2:

First clone DL2 in a separate directory and install it using the following commands:

git clone https://github.com/eth-sri/dl2
cd dl2
pip install -r requirements.txt

If you are using a virtual environment then make sure to install DL2 in that environment. Now DL2 can be imported as a python libary. To achieve this just extend the PYTHONPATH variable to also point to the DL2 directory:

export PYTHONPATH="${PYTHONPATH}:{path_to_dl2}"

Execution:

Run CIFAR10 experiment:

run_image_experiments.py cifar10 --layers=10 --widen_factor=1 run

Run CIFAR100 experiment:

run_image_experiments.py cifar100 --layers=10 --widen_factor=1 run

Generate experiment conditions:

cd scripts
python generate_experiments.py

Help functions:

run_image_experiments.py -- --help
run_image_experiments.py cifar10 -- --help
run_image_experiments.py cifar100 -- --help

Acknowledgements

About

Repository for the semantic WMI loss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published