Giter Site home page Giter Site logo

greentfrapp / boundary-attack Goto Github PK

View Code? Open in Web Editor NEW
90.0 90.0 22.0 20.44 MB

Implementation of the Boundary Attack algorithm as described in Brendel, Wieland, Jonas Rauber, and Matthias Bethge. "Decision-Based Adversarial Attacks: Reliable Attacks Against Black-Box Machine Learning Models." arXiv preprint arXiv:1712.04248 (2017).

Python 100.00%

boundary-attack's People

Contributors

greentfrapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

boundary-attack's Issues

diff never reached to 1e-3

Hi,
I tried running the resnet based boundary attack, but I have a small question. According to the code the main loop should stop running, and finally it stops due to e_step > 500. When I checked the final adversarial image, it changed the image to eel, but the label for that image was not changed to sea lion (which is the aim of the attack). Can you explain why this issue is occurring?
Also, can you share whether your mean squared error value reduced to condition?

question about "reshape()" in funcion "orthogonal_perturbation" .

When I read line32-33 in funcion "orthogonal_perturbation" in boundary-attack-resnet.py, I find
"
diff = diff.reshape(3, 224, 224)
perturb = perturb.reshape(3, 224, 224),
"
why "reshape" is used, it will not simply change the order of channels.

In addition, I cannot undestand "perturb[i] -= np.dot(perturb[i], channel) * channel" in line35 in boundary-attack-resnet.py. I hope you can help me. Thank you very much.

Not the same height and width of image

In function 'orthogonal_perturbation',
for i, channel in enumerate(diff):
perturb[i] -= np.dot(perturb[i], channel) * channel
np.dot is matrix multiplication, if size of perturb[i] and channel is different, then came an error.

use for object detection

Hi! I know this algo is design for classification, but I wonder if this algorithm can successfully used to attack the object detector like ssd/yolo?

Thanks for answering.

question about get_diff error

I think you want to norm the perturbation according to channel. If so, in get_diff(), I think the reshape() should be changed by rollaxis(), because the reshape() cannot change channel last to channel first correctly. If I am wrong, can you tell me the reason of get_diff()? Thanks.
image

Trouble running boundary-attack-resnet.py

Hi,

I am having trouble running boundary-attack-resnet.py. The error is
"ValueError: Layer "resnet50" expects 1 input(s), but it received 10 input tensors."

Not so sure what to do.

Thanks

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.