Zoky-2020 / SGA

Set-level Guidance Attack: Boosting Adversarial Transferability of Vision-Language Pre-training Models. [ICCV 2023 Oral]
https://arxiv.org/abs/2307.14061
MIT License
47 stars 3 forks source link

CLIP(CNN) #1

Closed chenpan0103 closed 1 year ago

chenpan0103 commented 1 year ago

Excuse me, the existing code only gives the code about ALBEF, TCL, CLIP(VIT), I did not find CLIP(CNN), what should I do if I want to use it?

Sammy42779 commented 1 year ago

Hello, if you want to use CLIP(CNN), directly change the "image_encoder" from "ViT-B/16" to "RN101" since we use ResNet-101 as the base architecture for the image encoder (Sec. 5.1).

chenpan0103 commented 1 year ago

Thanks for your reply, it does work. By the way, I have one more question. How can I reproduce the results of attack methods other than SGA in the table? Only the SGA code seems to have been given image

chenpan0103 commented 1 year ago

Sorry to bother you, it seems that the code from CLIP to TCL or ALBEF is missing. I would appreciate it if you could provide it.

Zoky-2020 commented 1 year ago

Thanks for your reply, it does work. By the way, I have one more question. How can I reproduce the results of attack methods other than SGA in the table? Only the SGA code seems to have been given image

We will update the related codes soon. Here is the official repo. of Co-Attack, https://github.com/adversarial-for-goodness/Co-Attack. PGD and BERT-Attack are modified based on 'Towards Deep Learning Models Resistant to Adversarial Attacks (https://arxiv.org/abs/1706.06083)' and 'BERT-ATTACK: Adversarial Attack Against BERT Using BERT' (https://arxiv.org/abs/2004.09984), respectively. And Sep-Attack denotes the combination of PGD and BERT-Attack. All the official repositories are accessible.

Zoky-2020 commented 1 year ago

Sorry to bother you, it seems that the code from CLIP to TCL or ALBEF is missing. I would appreciate it if you could provide it.

Thanks for your interest in our work. The code towards clip2albef is available now; see in eval_clip-vit2albef_flickr.py

chenpan0103 commented 1 year ago

Sorry to bother you, it seems that the code from CLIP to TCL or ALBEF ,is missing. I would appreciate it if you could provide it.

Thanks for your interest in our work. The code towards clip2albef is available now; see in eval_clip-vit2albef_flickr.py

Thank you very much for your efforts to update the code, looking forward to your subsequent code updates. In addition, I would appreciate it if you could upload TCL2ALBEF ,ALBEF2TCL, CLIP2CLIP in SGA first when you are free. Thanks again for your reply.