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
I got an error when I tried to run test.py.
Maximum supported image dimension is 65500 pixels
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev\pydevd.py", line 1683, in
main()
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev\pydevd.py", line 1677, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev\pydevd.py", line 1087, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/tagan-master/test.py", line 63, in
save_image(img, os.path.join(args.output_root, 'original.jpg'), pad_value=1)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\torchvision\utils.py", line 104, in save_image
im.save(filename)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\PIL\Image.py", line 1969, in save
save_handler(self, fp, filename)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\PIL\JpegImagePlugin.py", line 761, in _save
ImageFile._save(im, fp, [("jpeg", (0, 0)+im.size, 0, rawmode)], bufsize)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\PIL\ImageFile.py", line 519, in _save
raise IOError("encoder error %d when writing image file" % s)
OSError: encoder error -2 when writing image file
How can I solve it? Maybe someone could help...
The text was updated successfully, but these errors were encountered:
I got an error when I tried to run test.py.
Maximum supported image dimension is 65500 pixels
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev\pydevd.py", line 1683, in
main()
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev\pydevd.py", line 1677, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev\pydevd.py", line 1087, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2017.3\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/tagan-master/test.py", line 63, in
save_image(img, os.path.join(args.output_root, 'original.jpg'), pad_value=1)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\torchvision\utils.py", line 104, in save_image
im.save(filename)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\PIL\Image.py", line 1969, in save
save_handler(self, fp, filename)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\PIL\JpegImagePlugin.py", line 761, in _save
ImageFile._save(im, fp, [("jpeg", (0, 0)+im.size, 0, rawmode)], bufsize)
File "C:\Users\zwzhou\Anaconda3\lib\site-packages\PIL\ImageFile.py", line 519, in _save
raise IOError("encoder error %d when writing image file" % s)
OSError: encoder error -2 when writing image file
How can I solve it? Maybe someone could help...
The text was updated successfully, but these errors were encountered: