Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

IndexError: list index out of range #7

Open
peryion opened this issue Apr 11, 2021 · 0 comments
Open

IndexError: list index out of range #7

peryion opened this issue Apr 11, 2021 · 0 comments

Comments

@peryion
Copy link

peryion commented Apr 11, 2021

Traceback (most recent call last):
File "train.py", line 375, in
train(start_epoch)
File "train.py", line 362, in train
loss = evaluate_one_epoch()
File "train.py", line 290, in evaluate_one_epoch
for batch_idx, batch_data_label in enumerate(TEST_DATALOADER):
File "/home/zhipy/miniconda3/envs/imvote/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in next
data = self._next_data()
File "/home/zhipy/miniconda3/envs/imvote/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 838, in _next_data
return self._process_data(data)
File "/home/zhipy/miniconda3/envs/imvote/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 881, in _process_data
data.reraise()
File "/home/zhipy/miniconda3/envs/imvote/lib/python3.7/site-packages/torch/_utils.py", line 394, in reraise
raise self.exc_type(msg)
IndexError: Caught IndexError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/zhipy/miniconda3/envs/imvote/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/home/zhipy/miniconda3/envs/imvote/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/zhipy/miniconda3/envs/imvote/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/zhipy/Program/imvotenet/sunrgbd/sunrgbd_detection_dataset.py", line 141, in getitem
calib_K = np.reshape(np.array([float(x) for x in calib_lines[1].rstrip().split(' ')]), (3,3), 'F')
IndexError: list index out of range


I get this error while trying to train imvotenet.

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

No branches or pull requests

1 participant