DeepGlobe Road Extraction Challenge Forum

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

> [Error when submitting]: BadZipfile: File is not a zip file

Hi,
I was trying to submit my solution.
I packed predited *.png images to zip. (`zip submission.zip ./*` in directory with masks)
After uploading I am getting following error:
```
Traceback (most recent call last):
File "/worker/worker.py", line 275, in run
bundles = get_bundle(root_dir, 'run', bundle_url)
File "/worker/worker.py", line 142, in get_bundle
metadata[k] = get_bundle(bundle_path, k, v)
File "/worker/worker.py", line 142, in get_bundle
metadata[k] = get_bundle(bundle_path, k, v)
File "/worker/worker.py", line 101, in get_bundle
with ZipFile(bundle_file.file, 'r') as z:
File "/usr/local/lib/python2.7/zipfile.py", line 770, in __init__
self._RealGetContents()
File "/usr/local/lib/python2.7/zipfile.py", line 813, in _RealGetContents
raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file
```

Posted by: dtomek @ March 14, 2018, 1:21 p.m.

Could you try the zip command with -r option?

Posted by: jinghuang @ March 14, 2018, 10:40 p.m.

I tried, same error.

Posted by: dtomek @ March 14, 2018, 11:11 p.m.

Do you maybe know is it only me or it happens to other users and their zip files too?

Posted by: dtomek @ March 14, 2018, 11:12 p.m.

Hi dtomek,

As far as we know it only happened to your submission. The unzip function is handled by the CodaLab system so it's possible they didn't support certain kinds of zip files.
What operation system and zip tool are you using? Could you try a different tool, or reduce the file size (by, e.g., binarizing the results) and try it again?

Posted by: gamesorry @ March 15, 2018, 9:55 p.m.

I come to the same errors when conducting evaluation.

Posted by: fanneilyang @ March 17, 2018, 10:39 p.m.

It seems that binarization of results helps, thank you @gamesorry, @jinghuang!
@fanneilyang - make sure that *.png's have only values 0 or 255 (or whatever greater than 128). This will make zip much smaller and working.

Posted by: dtomek @ March 17, 2018, 10:47 p.m.
Post in this thread