GithubHelp home page GithubHelp logo

adversarial-example---fgsm's People

Contributors

rahul411 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

adversarial-example---fgsm's Issues

How to get model/model.ckpt-0?

I run "python adversarialExample.py" and get the error.
How to solve it or just commet the line?

raceback (most recent call last):
File "adversarialExample.py", line 155, in
adversarial(img_path,label)
File "adversarialExample.py", line 138, in adversarial
loader.restore(sess, 'model/model.ckpt-0')
File "/home/jack/.local/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1538, in restore
+ compat.as_text(save_path))
ValueError: The passed save_path is not a valid checkpoint: model/model.ckpt-0

tensorflow.python.framework.errors_impl.InternalError: Dst tensor is not initialized.

When I run adversarialExample.py I am getting this error.
I test it with TF 1.8.0 also in the latest version of tensorflow. My machine is 3x NVidia Tesla P40 with 22GB
memory

raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InternalError: Dst tensor is not initialized.
[[Node: conv4_22_1x1_increase/Conv2D-0-1-TransposeNCHWToNHWC-LayoutOptimizer/_2025 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:GPU:1", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_3008_conv4_22_1x1_increase/Conv2D-0-1-TransposeNCHWToNHWC-LayoutOptimizer", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:1"]]
[[Node: adversarial/Mean/_3087 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:1", send_device_incarnation=1, tensor_name="edge_5391_adversarial/Mean", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

checkpoint error

I tried to run the code but it is showing the error as model is not present "tensorflow.python.framework.errors_impl.NotFoundError: model; No such file or directory"
You did not add any folder named model kindly update the repo!ASAP
@rahul411

adv_img not producing attack

Thanks for writing this up. I have a few doubts I was hoping you could help with.

When I save the output adv_img and plug it into hellochick's PSPNet for verification, the segmentation result comes out the same as the original. In other words, no segmentation attack occurs.

I experienced this problem once when working with PNGs, where the gradients are reversed because PNGs don't save as far as float32 precision. To work around this I saved the adv_img as a numpy .npy vector to retain all the original information.

Also, I noticed your segmented target image is different than your input image.

Can you please tell me how you were able to save the attack image and visualize the segmented attack image?

Thank you for your time.

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.