1Konny / FGSM

Simple pytorch implementation of FGSM and I-FGSM
276 stars 71 forks source link

question #6

Open zhongyubunenghunl opened 1 year ago

zhongyubunenghunl commented 1 year ago

python main.py --mode generate --iteration 1 --epsilon 0.03 --load_ckpt best_acc.tar Traceback (most recent call last): File "main.py", line 75, in main(args) File "main.py", line 39, in main iteration=args.iteration) File "G:\FGSM-master\solver.py", line 213, in generate pad_value=0.5) File "F:\anaconda\envs\cw\lib\site-packages\torchvision\utils.py", line 105, in save_image im.save(filename) File "F:\anaconda\envs\cw\lib\site-packages\PIL\Image.py", line 2237, in save fp = builtins.open(filename, "w+b") OSError: [Errno 22] Invalid argument: 'output\main\legitimate(t:-1,e:0.03,i:1).jpg'