Open jiajiaxiaoskx opened 1 week ago
Hi! For the first question, you can directly download the mask and image .png files from https://huggingface.co/datasets/YijunYang280/MMA_Diffusion_adv_images_benchmark
Regarding the .pt files, both are identical. We provided them to make it easier for users to employ our attack methods. You can also find the same safety checker in the SDv1.5 checkpoint by yourself.
thanks!
When I was running image attack code, another error came.
attack successful top1 rate: 0.75
Traceback (most recent call last):
File "/data4/skx/MMA-Diffusion/src/image_space_attack/image_editing_attack.py", line 528, in
I do not if the error is related to the "open_clip_preprocess.pt" or the version of torchvision. Thanks!
It seems there is a package conflict issue. The file open_clip_preprocess.pt is quite simple, containing only normalization parameters (i.e., mean and variance). If changing the version does not resolve the issue, you can rewrite this part by following OpenClip's preprocessing code.
Your work is particularly amazing! I have two questions I’d like to ask.
In your image attack code, you commented out the mask section, causing some variables to be referenced without being defined. How should I modify the code to run it properly?
What is the purpose of the safetychecker.pt file in the image_space_attack folder in the GitHub repository, and how does it differ from the safety_checker.pt from Hugging Face?
Thank you!