carlini / nn_robust_attacks

Robust evasion attacks against neural network to find adversarial examples
BSD 2-Clause "Simplified" License
778 stars 229 forks source link

Graphdef cannot be larger than 2Gb in tensorflow when using the InceptionModel #6

Closed shenqixiaojiang closed 6 years ago

shenqixiaojiang commented 6 years ago

When using the InceptionModel to get more attack examples, the error will happened. That is because "you're importing the graph every time you call predict(), and so you're accumulating a very large default graphdef. You should change your code so that you only load the graph once outside of your predict function. This should also speed up your code considerably."