Comments (7)
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.
I do face the same thing. The function does not create any adversarial image.
from adversarial-example---fgsm.
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.
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.
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.
your advgenerator does not perturb the image. Thats what I am telling you.
from adversarial-example---fgsm.
I'll check once again and update the repo.
from adversarial-example---fgsm.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adversarial-example---fgsm.