Giter VIP home page Giter VIP logo

Comments (12)

carlini avatar carlini commented on September 15, 2024

You need to configure keras to use the tensorflow backend. It's currently set to theano.

from nn_robust_attacks.

kakacharles10 avatar kakacharles10 commented on September 15, 2024

Where can I get the attack images? Thanks!

from nn_robust_attacks.

carlini avatar carlini commented on September 15, 2024

They are returned as the output of the attack method.

from nn_robust_attacks.

kakacharles10 avatar kakacharles10 commented on September 15, 2024

Thanks! I finished running the files but still don't see any image output. Is there anyway to store the attack images?

from nn_robust_attacks.

carlini avatar carlini commented on September 15, 2024

You will have to save them with scipy.misc.imsave or other method.

from nn_robust_attacks.

kakacharles10 avatar kakacharles10 commented on September 15, 2024

So should I add this command to the show(img) function in the test_attack.py? Thanks

from nn_robust_attacks.

carlini avatar carlini commented on September 15, 2024

That would work, yeah.

from nn_robust_attacks.

kakacharles10 avatar kakacharles10 commented on September 15, 2024

Sorry for bothering again. In line 27 of test_attack.py what is the purose of "if len(img) != 784: return" How should I modify it in order to get adversarial images of Cifar-10?

from nn_robust_attacks.

carlini avatar carlini commented on September 15, 2024

The show method is useful for MNIST only. You will need to write a new one for CIFAR-10.

from nn_robust_attacks.

kakacharles10 avatar kakacharles10 commented on September 15, 2024

Is it necessary to run the train_model.py before running the test_attack.py? Since I am running out of memory

from nn_robust_attacks.

carlini avatar carlini commented on September 15, 2024

If you don't train the model ahead of time, it doesn't make that much sense to attack it, unless you're trying to investigate some kind of robustness property of the architecture itself using randomly initialized neural networks.

from nn_robust_attacks.

kakacharles10 avatar kakacharles10 commented on September 15, 2024

Thanks Carlini. Since my main goal is just to get some cifar10 adversarial image data that can attack some other pre-trained neural network (like Resnet).

from nn_robust_attacks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.