Code Monkey home page Code Monkey logo

biased_boundary_attack's People

Contributors

ttbrunner avatar

Stargazers

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

Watchers

 avatar

biased_boundary_attack's Issues

Can this code to conduct experiments of the original boundary attack?

Dear sir:
I am preparing a paper, I want to use your code to conduct experiments of both the original boundary attack and biased boundary attack. If I set USE_PERLIN_BIAS = False, USE_MASK_BIAS = False, USE_SURROGATE_BIAS = False in bench_settings.py.
Does this code produce the results exactly the same with the original boundary attack?

Release the indices for sampled 1000 images

Hi,

Thank you for the interesting paper and releasing the code.

I wonder if you can provide the indices of 1000 sampled images you use in the paper for all those methods? I would like to reproduce the results and make some fair comparison for my modification.

Thanks in advance!

How to accelerate attack speed?

I found it is too slow when I attack a large network in CIFAR-10 dataset. Because my experiments need attacking 1000 images. It will take 1 month!
I found the reason is that you feed only 1 image to network every time. (in def _eval_sample)
Can this code modify to batch image feed version to boost speed?
We first collect a batch of candidate, stats = candidate_future.result() into a block-queue, and then batch feed to network?
What about this proposal? What do you suggest?

I have a question about "dot = np.vdot(sampling_dir, source_direction)"

In line 231 in generate_boundary_sample of biased_boundary_attack.py, does "vdot" in "dot = np.vdot(sampling_dir, source_direction)" computes between two images of 3 channels? That's to say, if the shape of image is (224, 224, 3), the shape of sampling_dir here is also (224, 224, 3), and we get one numpy value after np.vdot. Is it right? 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.