Comments (12)
I found, set c to 10 or up(1 is not enough), CW attack can changed image to adversarial image with high success rate
from adversarial-attacks-pytorch.
Please let me know the error situation.
from adversarial-attacks-pytorch.
Sir, I also encounter this issue, I found when I use the parameters default in your code, the success rate of adversarial attack is close to 0. Cause I do not check the original paper about C&W, so I am not sure how to do. Can you help me ? @Harry24k
from adversarial-attacks-pytorch.
Sir, I also encounter this issue, I found when I use the parameters default in your code, the success rate of adversarial attack is close to 0. Cause I do not check the original paper about C&W, so I am not sure how to do. Can you help me ? @Harry24k
With default c, you can't easily get adversarial images. Set higher c like 1.
I also used c=1
in the demo.
from adversarial-attacks-pytorch.
from adversarial-attacks-pytorch.
set c like 1, I tried, but the code doesn't work too.I also check the souce code, i found the source code are not wrong.So i dont know where is wrong.
from adversarial-attacks-pytorch.
Let me try, thanks for your precious experience! @xieshisheng
from adversarial-attacks-pytorch.
By the way, sir, how do you set iters and lr? @xieshisheng
from adversarial-attacks-pytorch.
I dont change iters and lr.
source code
"loss1 = nn.MSELoss(reduction='sum')(a, images)
loss2 = torch.sum(self.c*f(a))"
i think MSEELoss force new image as same as old image, if c is small ,gradient of loss2 is small . So the "adversarial" image is just as same as image, but not truly adversarial image.
from adversarial-attacks-pytorch.
from adversarial-attacks-pytorch.
hhhhh, maybe large iteration is more effective.I‘ll try it later.thank you
from adversarial-attacks-pytorch.
from adversarial-attacks-pytorch.
Related Issues (20)
- Adversarial attacks for YOLOv8 Detection task HOT 1
- [QUESTION]How to use Square or Pixle to attack? HOT 3
- FileNotFoundError: [WinError 3] The system cannot find the path specified: './data/imagenet' HOT 1
- [BUG] Applying attacks on 2 instances of the same model gives too far away results HOT 1
- [BUG] FAB is not working HOT 3
- [BUG]The one-pixel attack is not working as expected. It seems not work? HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: './data/imagenet_class_index.json' HOT 2
- [BUG] The implementation of eps-ball in MI-FGSM HOT 1
- [QUESTION] HOT 1
- [BUG] Bugs in the f function of cw.py HOT 2
- [QUESTION]BIM and PGD have the same output HOT 6
- [QUESTION] I have got confused by the code description HOT 3
- [BUG] JSMA massive gpu memory consumption HOT 9
- Difference in robust accuracies for Autoattack HOT 1
- Using Saved model for generating adversarial samples. HOT 1
- Implementation of SuperDeepFool attack HOT 1
- set_normalization_used HOT 4
- [QUESTION] using torchattacks on HuggingFace transformer models HOT 2
- requests package version
- Errors when downloading models from model zoom HOT 1
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-attacks-pytorch.