DiffAttack icon indicating copy to clipboard operation
DiffAttack copied to clipboard

An unrestricted attack based on diffusion models that can achieve both good transferability and imperceptibility.

Results 21 DiffAttack issues
Sort by recently updated
recently updated
newest added

Hello, I am interested in using your DiffAttack on 1D sequences with the aim to make them adversarial against 1D Neural Net classifier (for the specific type of sequences )....

Hi Chen, great work for adversarial attack using diffusion models, I am trying to run your code but getting the following errors: python main.py --model_name "inception" --save_dir output --images_root demo/images...

According to the commit https://github.com/huggingface/diffusers/commit/e828232780554d54bdb527d3390fab0be042b72a#diff-852d5806e41c100ee99c68c9e1059bfad9c0177e6f4416f0faf5a2f2a6a64067 `CrossAttention` has renamed to `Attention` And some forward parameters have changed. Related: https://github.com/WindVChen/DiffAttack/issues/2 Note: This PR is provided as a code snippet for reference and...

I want the generated attacks to have an image size of 256x256. For that, I thought to change the param `res` to 256 ```bash python main.py --model_name resnet18 --save_dir $save_dir...

Your code currently operates one image at a time, is it possible to adjust the batch_size operation? I look forward to hearing from you!

Wanted to ask about how to verify performance against samples for defense methods, you didn't quite understand that part. Looking forward to your reply, thanks a million.

*********Transfer to deit-b******** Traceback (most recent call last): File "/usr/local/miniconda3/envs/students/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/local/miniconda3/envs/students/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/usr/local/miniconda3/envs/students/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in...

Sorry to interrupt, code error Traceback (most recent call last). File "main.py", line 153, in adv_image, clean_acc, adv_acc = run_diffusion_attack(tmp_image, label[ind:ind + 1]. File "main.py", line 72, in run_diffusion_attack adv_image,...

I want to train your model, but I couldn't find the corresponding train.py. How can I train this model?

'HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /stabilityai/stable-diffusion-2-base/resolve/main/model_index.json (Caused by ConnectTimeoutError(, 'Connection to huggingface.co timed out. (connect timeout=10)'))' thrown while requesting HEAD https://huggingface.co/stabilityai/stable-diffusion-2-base/resolve/main/model_index.json