NTIRE 2021 Image Deblurring Challenge - Track2. JPEG Artifacts Forum

Go back to competition Back to thread list Post in this thread

> "OSError: image file is truncated" when uploading

Dear Committee:

Would you please check this error please? I get about 28.10dB/0.7958 on my server using the evaluation code, but when I upload, the following error raises.

Sincerely,
hellosr

==============================ERROR INFORMATION=====================================
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.

0%| | 0/300 [00:00I", c, o)[0]
struct.error: unpack_from requires a buffer of at least 4 bytes for unpacking 4 bytes at offset 0 (actual buffer size is 0)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/imageio/plugins/pillow.py", line 669, in pil_try_read
im.getdata()[0]
File "/opt/conda/lib/python3.8/site-packages/PIL/Image.py", line 1271, in getdata
self.load()
File "/opt/conda/lib/python3.8/site-packages/PIL/ImageFile.py", line 253, in load
raise OSError("image file is truncated") from e
OSError: image file is truncated

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/codalab/tmp7BShIy/run/program/evaluate.py", line 98, in
psnr, ssim = evaluate_submission(ref_imgs, res_imgs)
File "/tmp/codalab/tmp7BShIy/run/program/evaluate.py", line 85, in evaluate_submission
res_im = imageio.imread(res_list[i])
File "/opt/conda/lib/python3.8/site-packages/imageio/core/functions.py", line 265, in imread
reader = read(uri, format, "i", **kwargs)
File "/opt/conda/lib/python3.8/site-packages/imageio/core/functions.py", line 186, in get_reader
return format.get_reader(request)
File "/opt/conda/lib/python3.8/site-packages/imageio/core/format.py", line 170, in get_reader
return self.Reader(self, request)
File "/opt/conda/lib/python3.8/site-packages/imageio/core/format.py", line 221, in __init__
self._open(**self.request.kwargs.copy())
File "/opt/conda/lib/python3.8/site-packages/imageio/plugins/pillow.py", line 298, in _open
return PillowFormat.Reader._open(self, pilmode=pilmode, as_gray=as_gray)
File "/opt/conda/lib/python3.8/site-packages/imageio/plugins/pillow.py", line 135, in _open
pil_try_read(self._im)
File "/opt/conda/lib/python3.8/site-packages/imageio/plugins/pillow.py", line 680, in pil_try_read
raise ValueError(error_message)
ValueError: Could not load ""
Reason: "image file is truncated"
Please see documentation at: http://pillow.readthedocs.io/en/latest/installation.html#external-libraries

Posted by: hellosr @ Jan. 11, 2021, 8:55 a.m.

I have tried four times.

Posted by: hellosr @ Jan. 11, 2021, 8:56 a.m.

Change a zip file and the problem solved.
Still confused why?
Perhaps because of the Great Firewall in China?

Posted by: hellosr @ Jan. 11, 2021, 11:08 a.m.

Hi hellosr,

I looked into your submitted files.
In your failed submission, the file 20_00000089.png is not complete and cannot be opened by image readers.
In your successful submission, the file was ok.

Next time, you can check if your files are valid by trying to read them by your image readers or via python Pillow or imageio.

Best,
Seungjun

Posted by: SeungjunNah @ Jan. 12, 2021, 4:29 a.m.

Dear Dr. Nah:

Thank you! It is ok on my Windows system before zipping. There may be something error with my WinRAR. When I zip on Ubuntu everything is ok.

Si,
hellosr

Posted by: hellosr @ Jan. 12, 2021, 9:42 a.m.

Dear committee:

Would you please inform me whether failed submissions count?

Thanks!

Posted by: hellosr @ Jan. 13, 2021, 12:21 p.m.

We deleted your duplicated erroneous submissions.
The first erroneous submission counts.
However, such a deduction is not possible in the testing phase.

Best,
Seungjun

Posted by: SeungjunNah @ Jan. 14, 2021, 5:09 a.m.

@Seungjun Thanks!

Posted by: hellosr @ Jan. 14, 2021, 9:20 a.m.

A correction here:
the failed submissions do not count towards your maximum allowed submissions in each of the phases of the challenge.

Posted by: Radu @ Jan. 15, 2021, 4:41 p.m.

@Radu
Thanks for your reply!

Posted by: hellosr @ Jan. 17, 2021, 5:24 p.m.
Post in this thread