Giter Site home page Giter Site logo

Comments (4)

carlini avatar carlini commented on August 16, 2024

The default parameters should work. I had someone else tell me earlier that the L0 attack wasn't performing correctly, but couldn't reproduce the issues to look into it.

Do you see this issue when running the code on your model? Or using the test script that's loaded here?

from nn_robust_attacks.

lith0613 avatar lith0613 commented on August 16, 2024

The l0_attack was valid, but when I calculated L0 norm between the adversarial results and the original inputs, I found the L0 norm value was very big, very close to 3072 in cifar. Maybe these minor changes was caused during the save and reload process of float adv array. Thanks for your reply !

from nn_robust_attacks.

carlini avatar carlini commented on August 16, 2024

The save and load difference is possible. Could you check what the differences were between the images?

from nn_robust_attacks.

lith0613 avatar lith0613 commented on August 16, 2024

The difference was caused by the data conversion process, I used my own data loading function and forgot to set the data type, the right action is as follows:

inputs = np.array(inputs,dtype='float32')

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.