GithubHelp home page GithubHelp logo

Comments (7)

rahul411 avatar rahul411 commented on June 9, 2024

It's strange that you are not able to get the desired results. I saved the attacked image as a png and used the inference.py file to visualize the segmented output. It seems to work.
Also about the target image, it is supposed to be different from the actual labels. Since we want to fool the model into believing something else. This will make the model produce gradients which are propagated all the way up to the image, resulting in a perturbed image.

from adversarial-example---fgsm.

hosnasattar avatar hosnasattar commented on June 9, 2024

I do face the same thing. The function does not create any adversarial image.

from adversarial-example---fgsm.

rahul411 avatar rahul411 commented on June 9, 2024

Did you try running the inference.py with the saved adv_image obtained from adversarialExample.py ? Note: the adv_image looks exactly the same as the input image and visually you won't be able to make out any difference. @hosna

from adversarial-example---fgsm.

hosnasattar avatar hosnasattar commented on June 9, 2024

I tried that. The inference works but not the adv image generator. If inference works on some image samples does not validate the correctness of your advexample code.

from adversarial-example---fgsm.

rahul411 avatar rahul411 commented on June 9, 2024

The inference code is just for viewing the segmentation output of PSPNet. It's not specific for any image. You can try feeding the original image from the cityscapes dataset, you should get the output. So the image generated from advexample code generates a perturbed image, which when passed through the PSPNet for segmentation, the model generates output similar to ones shown in the results tab.

from adversarial-example---fgsm.

hosnasattar avatar hosnasattar commented on June 9, 2024

your advgenerator does not perturb the image. Thats what I am telling you.

from adversarial-example---fgsm.

rahul411 avatar rahul411 commented on June 9, 2024

I'll check once again and update the repo.

from adversarial-example---fgsm.

Related Issues (6)

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.