DiffPure icon indicating copy to clipboard operation
DiffPure copied to clipboard

code problem about "attack_version"

Open kirtons opened this issue 1 year ago • 1 comments

in line 104 of eval_sde_adv.py, if attack_version == 'standard':
attack_list = ['apgd-ce', 'apgd-t', 'fab-t', 'square'] This attack_list is passed as an argument in the AutoAttack call in line 117. However, according to the definition in autoattack.py: if version in ['standard', 'plus', 'rand'] and attacks_to_run != []: raise ValueError("attacks_to_run will be overridden unless you use version='custom'") Is this a potential bug in the code?

image image

kirtons avatar Nov 16 '24 03:11 kirtons

in line 104 of eval_sde_adv.py, if attack_version == 'standard': attack_list = ['apgd-ce', 'apgd-t', 'fab-t', 'square'] This attack_list is passed as an argument in the AutoAttack call in line 117. However, according to the definition in autoattack.py: if version in ['standard', 'plus', 'rand'] and attacks_to_run != []: raise ValueError("attacks_to_run will be overridden unless you use version='custom'") Is this a potential bug in the code?

image image

I have the same question, I saw one closed issue which mentioned to delete some codes, but I dont know if there will be some mistakes.

Lastsource avatar Nov 28 '24 17:11 Lastsource