This repository provides a PyTorch implementation of the abc metric as decribed in this paper
- Download or clone the repository
- Install the requirements
You can specify the directory for dataset download by setting the DATASETS_ROOT environment variable.
Scripts for MNIST (with and without background noise) are provided:
export DATASETS_ROOT="/tmp"
python mnist_baseline.py
python mnist_noise.py
A script for Cifar10 is also provided:
export DATASETS_ROOT="/tmp"
python cifar10.py
The abc metric is tested using rotated data or alpha blending between two random samples. The displayed metrics are the average abc score, the average abc score for correctly classified samples and the average abc score for misclassified samples.