You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.按照示例进行自定义参数调用
python testimport.py --attack_method "FGSM" --evaluation_method "ALDp" --model_dir ""
出错提示
['FGSM', '', 'attack_param/FGSM/fgsm_01.xml'] ALDp
Traceback (most recent call last):
File "testimport.py", line 242, in
main(args=arguments)
File "testimport.py", line 91, in main
adv_xs_npy = r_a.gen_attack_Samples()
File "D:\Code\Robustness\venv\AISafety\test/..\EvalBox\Analysis\Rebust_Eval.py", line 283, in gen_attack_Samples
device, model, att, att_name = self.setting_device(model_dir, self.model_name)
File "D:\Code\Robustness\venv\AISafety\test/..\EvalBox\Analysis\evaluation_base.py", line 196, in setting_device
model = self.get_model(model_dir, model_name, device)
File "D:\Code\Robustness\venv\AISafety\test/..\EvalBox\Analysis\evaluation_base.py", line 167, in get_model
model = eval(model_name)(pretrained = True)
File "", line 1, in
NameError: name 'Models' is not defined
The text was updated successfully, but these errors were encountered:
1.按照API接口文档8.1. 参考实例1(白盒攻击)参数设置时
--Scale_ImageSize
(375,500)
--Crop_ImageSize
(375,500)
报错
testimport.py: error: argument --Scale_ImageSize: invalid int value: '(375,500)'
2.按照示例进行自定义参数调用
python testimport.py --attack_method "FGSM" --evaluation_method "ALDp" --model_dir ""
出错提示
['FGSM', '', 'attack_param/FGSM/fgsm_01.xml'] ALDp
Traceback (most recent call last):
File "testimport.py", line 242, in
main(args=arguments)
File "testimport.py", line 91, in main
adv_xs_npy = r_a.gen_attack_Samples()
File "D:\Code\Robustness\venv\AISafety\test/..\EvalBox\Analysis\Rebust_Eval.py", line 283, in gen_attack_Samples
device, model, att, att_name = self.setting_device(model_dir, self.model_name)
File "D:\Code\Robustness\venv\AISafety\test/..\EvalBox\Analysis\evaluation_base.py", line 196, in setting_device
model = self.get_model(model_dir, model_name, device)
File "D:\Code\Robustness\venv\AISafety\test/..\EvalBox\Analysis\evaluation_base.py", line 167, in get_model
model = eval(model_name)(pretrained = True)
File "", line 1, in
NameError: name 'Models' is not defined
The text was updated successfully, but these errors were encountered: