我试图从这里运行代码https://github.com/pytorch/examples/tree/master/fast_neural_style,我从终端python neural_style/neural_style.py eval --content-image ./images/content-images/amber.jpg --model ./saved_models/mosaic.pth --output-image a.jpg --cuda 0运行以下命令,其中a.jpg是输出图像,但每次我都会收到错误:Traceback (most recent call last):
File "neural_style/neural_style.py", line 240, in
main()
File "neural_style/neural_style.py", line 236, in main
stylize(args)
File "neural_style/neural_style.py", line 150, in stylize
utils.save_image(args.output_image, output[0])
File "C:\Users\Lenovo\Documents\fast_neural_style\neural_style\utils.py", line 19, in save_image
img.save(filename)
File "C:\Users\Lenovo\Anaconda3\lib\site-packages\PIL\Image.py", line 1991, in save
fp = builtins.open(filename, "w+b")
FileNotFoundEr