fuel-convert Bad Zip File Error "File is not a zip file"

42 views
Skip to first unread message

Datt Goswami

unread,
Feb 26, 2017, 10:35:26 PM2/26/17
to fuel-users
Hello Everyone,

When I try converting the dogs_vs_cat dataset using fuel-convert it is giving me BadZipFile Error.

The hdf5 file is being generated, but I am not sure about how to check if its proper or not.

I did try the same for the mnist dataset and it worked perfectly.

Attaching the screenshot of the error.

I tried searching for the error online and tried solving it, but was not able to get it to work.

Thank you,
Datt
Screen Shot 2017-02-26 at 10.30.37 PM.png

Dmitriy Serdyuk

unread,
Feb 27, 2017, 3:17:41 PM2/27/17
to fuel-users

You can always open the dataset using h5py. Try this in a python shell:

f = h5py.File('<path_to_datset>')
print(f.keys())  # List of sources in the dataset
print(f[f.keys()[0]])  # First source
print(f[f.keys()[0]][0])  # First value stored for the first source

Try to check if the data you downloaded is uncorrupted, I suspect that the problems might be here.

BTW, the best way to represent textual information is text, just copy and paste the error log in the future.

Reply all
Reply to author
Forward
0 new messages