File "run_heapq.py", line 308, in train_epoch for idx, batch in enumerate(pbar): File "/opt/conda/lib/python3.8/site-packages/tqdm/std.py", line 1195, in __iter__ for obj in iterable: File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 517, in __next__ data = self._next_data() File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 557, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "run_heapq.py", line 270, in __getitem__ data = self.encode_dataset(data) File "run_heapq.py", line 182, in encode_dataset match, word_idx_start, word_idx_end = find_candidates(answer_list, words, questions, boxes) File "run_heapq.py", line 126, in find_candidates question_points = find_points(questions, words_list, boxes, ngrams=3) File "run_heapq.py", line 99, in find_points bb2 = boxes[idx+(len(question)//2)] IndexError: list index out of range
개요
8 이슈를 담은 코드 수행 중 나타난 오류
세부사항
File "run_heapq.py", line 308, in train_epoch for idx, batch in enumerate(pbar): File "/opt/conda/lib/python3.8/site-packages/tqdm/std.py", line 1195, in __iter__ for obj in iterable: File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 517, in __next__ data = self._next_data() File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 557, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "run_heapq.py", line 270, in __getitem__ data = self.encode_dataset(data) File "run_heapq.py", line 182, in encode_dataset match, word_idx_start, word_idx_end = find_candidates(answer_list, words, questions, boxes) File "run_heapq.py", line 126, in find_candidates question_points = find_points(questions, words_list, boxes, ngrams=3) File "run_heapq.py", line 99, in find_points bb2 = boxes[idx+(len(question)//2)] IndexError: list index out of range