Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File is not a zip file #130

Open
wlcosta opened this issue Aug 5, 2021 · 0 comments
Open

File is not a zip file #130

wlcosta opened this issue Aug 5, 2021 · 0 comments

Comments

@wlcosta
Copy link

wlcosta commented Aug 5, 2021

Hey!
I have a private dataset in which I am using MeshCNN for classification. However, at epoch 4, a random error occurred:

zipfile.BadZipFile: Caught BadZipFile in DataLoader worker process 1.
Original Traceback (most recent call last):
  File "/home/wlc2/anaconda3/envs/meshcnn/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
    data = fetcher.fetch(index)
  File "/home/wlc2/anaconda3/envs/meshcnn/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/wlc2/anaconda3/envs/meshcnn/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/media/wlc2/MeshCNN/data/classification_data.py", line 27, in __getitem__
    mesh = Mesh(file=path, opt=self.opt, hold_history=False, export_folder=self.opt.export_folder)
  File "/media/wlc2/MeshCNN/models/layers/mesh.py", line 16, in __init__
    fill_mesh(self, file, opt)
  File "/media/wlc2/MeshCNN/models/layers/mesh_prepare.py", line 9, in fill_mesh
    mesh_data = np.load(load_path, encoding='latin1', allow_pickle=True)
  File "/home/wlc2/anaconda3/envs/meshcnn/lib/python3.6/site-packages/numpy/lib/npyio.py", line 426, in load
    pickle_kwargs=pickle_kwargs)
  File "/home/wlc2/anaconda3/envs/meshcnn/lib/python3.6/site-packages/numpy/lib/npyio.py", line 182, in __init__
    _zip = zipfile_factory(fid)
  File "/home/wlc2/anaconda3/envs/meshcnn/lib/python3.6/site-packages/numpy/lib/npyio.py", line 112, in zipfile_factory
    return zipfile.ZipFile(file, *args, **kwargs)
  File "/home/wlc2/anaconda3/envs/meshcnn/lib/python3.6/zipfile.py", line 1131, in __init__
    self._RealGetContents()
  File "/home/wlc2/anaconda3/envs/meshcnn/lib/python3.6/zipfile.py", line 1198, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

And no, I don't have any zipfiles on my dataset. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant