Skip to content

Pytorch reimplementation of "One pixel attack for fooling deep neural networks"

License

Notifications You must be signed in to change notification settings

gnperdue/one-pixel-attack-pytorch

 
 

Repository files navigation

One Pixel Attack with PyTorch

This project is a simple PyTorch implementation of "One pixel attack for fooling deep neural networks" on the Cifar10 dataset. The code is developed upon Pytorch-cifar and one-pixel-attack-keras.

Results

model Accuracy on the test set Success Rate (1 pixel, untargeted) Success Rate (3 pixels, untargeted)
vgg16 93.42% ~50.0% ~93.0%
res18 94.94% ~27.7% ~78.0%
res101 94.51% ~19.0% ~63.3%

Pre-trained models

To speed up working with this code, we've included copies of parts of the PyTorch_CIFAR10 repository published by Huy Phan. This project enables us to easily use pretrained models and avoid the expense of retraining.

About

Pytorch reimplementation of "One pixel attack for fooling deep neural networks"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Shell 0.4%