anhquan0412 / animation-classification

Deep learning model to identify a scene/character from 10 different animated movies
29 stars 13 forks source link

Facing issue while running the classificaton interpretation #4

Open balajib363 opened 3 years ago

balajib363 commented 3 years ago

IndexError: Caught IndexError in DataLoader worker process 0. Original Traceback (most recent call last): File "/home/balaji/anaconda3/envs/mooid/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop data = fetcher.fetch(index) File "/home/balaji/anaconda3/envs/mooid/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/balaji/anaconda3/envs/mooid/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/balaji/anaconda3/envs/mooid/lib/python3.6/site-packages/fastai/data_block.py", line 655, in getitem if self.item is None: x,y = self.x[idxs],self.y[idxs] File "/home/balaji/anaconda3/envs/mooid/lib/python3.6/site-packages/fastai/data_block.py", line 120, in getitem if isinstance(idxs, Integral): return self.get(idxs) File "/home/balaji/anaconda3/envs/mooid/lib/python3.6/site-packages/fastai/vision/data.py", line 270, in get fn = super().get(i) File "/home/balaji/anaconda3/envs/mooid/lib/python3.6/site-packages/fastai/data_block.py", line 75, in get return self.items[i] IndexError: index 0 is out of bounds for axis 0 with size 0

balajib363 commented 3 years ago

Let me know, how to handle this.