Code for UFO: A unified method for controlling Understandability and Faithfulness Objectives in concept-based explanations for CNNs
To cite,
@misc{ramaswamy2023ufo,
title={UFO: A unified method for controlling Understandability and Faithfulness Objectives in concept-based explanations for CNNs},
author={Vikram V. Ramaswamy and Sunnie S. Y. Kim and Ruth Fong and Olga Russakovsky},
year={2023},
eprint={2303.15632},
archivePrefix={arXiv},
}
Steps to run
- Download Broden images + annotations as in https://github.com/CSAILVision/NetDissect-Lite
- Get scene scores as done in https://github.com/princetonvisualai/OverlookedFactors
- Use
load_data.py
to preprocess data - Use
attr_rot.py
to learn attribute classifiers - Use
learn_attr_cutoff.py
to learn explanations. analsis.ipynb
contains the analysis done in the paper.