Open jS5t3r opened 1 year ago
Hi @jS5t3r ,
Thank you for pointing this out. I've just updated the code, and I'm optimistic that this update resolves the resolution parameter setting issue.
Regarding parameter optimization, I suggest focusing on the three key loss weights: --attack_loss_weight
, --cross_attn_loss_weight
, and --self_attn_loss_weight
. By varying these values, you can fine-tune the attack for either more imperceptibility or increased transferability. Additionally, consider adjusting parameters such as --iterations
, --diffusion_steps
, and --start_step
for further customization.
Thanks, where u change that can solve the resolution issues?
Hi @jS5t3r ,
Thank you for pointing this out. I've just updated the code, and I'm optimistic that this update resolves the resolution parameter setting issue.
Regarding parameter optimization, I suggest focusing on the three key loss weights:
--attack_loss_weight
,--cross_attn_loss_weight
, and--self_attn_loss_weight
. By varying these values, you can fine-tune the attack for either more imperceptibility or increased transferability. Additionally, consider adjusting parameters such as--iterations
,--diffusion_steps
, and--start_step
for further customization.
Hi @youyuanyi ,
You can refer to the commit here for the details of the changes.
Hope this can help.
Thank you very much!
I want the generated attacks to have an image size of 256x256.
For that, I thought to change the param
res
to 256An error shows up then
Besides that, I assume that some parameters must be optimized so that the attack is strong on different parameters. Which parameters are important?