Skip to content

Commit

Permalink
Improvement of data poison example
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 9, 2019
1 parent 1a06e1a commit 7824de7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DataPoison/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

Data Poison Attack desc.

mnist_paddle.py: The clean progress of train and verify with paddlepaddle framework.
poison_mnist_paddle.py: The data poison attack example with paddlepaddle. On one hand, it can be almost the same accuracy with unpoison, on the other hand, we can only poison about 5 percent of the dataset and complish a target attack, after poisoning, the model can be mislead from '3' to '4' when the trigger appears in the test picture.
poison_mnist_pytorch.py: The clean and poison code with PyTorch framework.

Usage:
Install the right version of PyTorch(>=v0.4) and PaddlePaddle(>=v1.5).
just run "Python xxx.py"
File renamed without changes
File renamed without changes.

0 comments on commit 7824de7

Please sign in to comment.