DeepGlobe Road Extraction Challenge Forum

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

> errors when evaluating

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: fanneilyang @ March 17, 2018, 10:47 p.m.

I will paste my solution also here:
@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.
Also, make sure that you png's has shape (1024, 1024, 3), not (1024, 1024) ;)

Posted by: dtomek @ March 17, 2018, 10:50 p.m.

Thanks so much brother, it does work.

Posted by: fanneilyang @ March 17, 2018, 11:22 p.m.

I also met the same problem.
I have made sure that *.png's have only values 0 or 255 . In addation, the png's has shape (1024, 1024, 3). But the results now is 0. Any one can provide some help?

Posted by: wei @ April 2, 2018, 11:57 a.m.

I also met the same problem.
I have made sure that *.png's have only values 0 or 255 . In addation, the png's has shape (1024, 1024, 3). But the results now is 0. Any one can provide some help?

Posted by: wei @ April 2, 2018, 11:57 a.m.

I have the same problem as @wei, can someone provide a solution

Posted by: xiaojian @ March 31, 2021, 3:25 a.m.
Post in this thread