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'
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'