Closed zhanght021 closed 1 week ago
During the training process of the RefCOCO dataset, the following error will occur.
File "/home/XXXXX/SimVG-main/simvg/apis/train.py", line 49, in train_model for batch, inputs in enumerate(loader): File "/usr/local/python3.10.12/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 630, in next data = self._next_data() File "/usr/local/python3.10.12/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 673, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/usr/local/python3.10.12/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 52, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/usr/local/python3.10.12/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 52, in data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/XXXXX/SimVG-main/simvg/datasets/base.py", line 70, in getitem results = self.pipeline(results) File "/home/XXXXX/SimVG-main/simvg/datasets/pipelines/compose.py", line 22, in call results = transform(results) File "/home/XXXXX/SimVG-main/simvg/datasets/pipelines/loading.py", line 275, in call results = self._load_expression_tokenize_beit3(results) File "/home/XXXXX/SimVG-main/simvg/datasets/pipelines/loading.py", line 162, in _load_expression_tokenize_beit3 expression = expressions[self.random_ind] KeyError: 0
I have update the grefcoco dataset link.
plz re-download the grefcoco dataset and pull the newest version of the code.
During the training process of the RefCOCO dataset, the following error will occur.
File "/home/XXXXX/SimVG-main/simvg/apis/train.py", line 49, in train_model for batch, inputs in enumerate(loader): File "/usr/local/python3.10.12/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 630, in next data = self._next_data() File "/usr/local/python3.10.12/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 673, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/usr/local/python3.10.12/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 52, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/usr/local/python3.10.12/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 52, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/XXXXX/SimVG-main/simvg/datasets/base.py", line 70, in getitem
results = self.pipeline(results)
File "/home/XXXXX/SimVG-main/simvg/datasets/pipelines/compose.py", line 22, in call
results = transform(results)
File "/home/XXXXX/SimVG-main/simvg/datasets/pipelines/loading.py", line 275, in call
results = self._load_expression_tokenize_beit3(results)
File "/home/XXXXX/SimVG-main/simvg/datasets/pipelines/loading.py", line 162, in _load_expression_tokenize_beit3
expression = expressions[self.random_ind]
KeyError: 0