Evaluation: 0%| | 0/100 [00:00<?, ?it/s]
Traceback (most recent call last):
File "test.py", line 141, in
scores = predict_captions(model, dict_dataloader_test, text_field, out_file)
File "test.py", line 31, in predict_captions
for it, ((img_id, images, pixels), caps_gt) in enumerate(iter(dataloader)):
File "C:\Users\77526\miniconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 628, in next
data = self._next_data()
File "C:\Users\77526\miniconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 671, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\Users\77526\miniconda3\envs\torch\lib\site-packages\torch\utils\data_utils\fetch.py", line 56, in fetch
data = self.dataset.getitems(possibly_batched_index)
TypeError: 'generator' object is not callable
Evaluation: 0%| | 0/100 [00:00<?, ?it/s] Traceback (most recent call last): File "test.py", line 141, in
scores = predict_captions(model, dict_dataloader_test, text_field, out_file)
File "test.py", line 31, in predict_captions
for it, ((img_id, images, pixels), caps_gt) in enumerate(iter(dataloader)):
File "C:\Users\77526\miniconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 628, in next
data = self._next_data()
File "C:\Users\77526\miniconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 671, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\Users\77526\miniconda3\envs\torch\lib\site-packages\torch\utils\data_utils\fetch.py", line 56, in fetch
data = self.dataset.getitems(possibly_batched_index)
TypeError: 'generator' object is not callable