modestyachts / imagenet-vid-robust-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImageNet-Vid-Robust playground

Please see our paper A systematic framework for natural perturbations from videos for background information.

Download the dataset (~1G) first:

./download_dataset.sh

Compute robust accuracy and visualize failure cases by scoring predictions. We provide example predictions from a ResNet-152 model fine-tuned on ImageNet-Vid in example_predictions/resnet152_finetune.json.

python score_predictions.py  example_predictions/resnet152_finetune.json

Failure examples stored in local directory:

ls resnet152_finetune_predictions/

The generated folder contains both the benign (anchor) frames and the nearby misclassified frames: screen shot

About

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 92.9%Language:Shell 7.1%