-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when Evaluate on COCO test set #176
Comments
Got the same issue too! |
Weird:
In principle the if statement above should assure that the iter_coutner is within range. |
Excuse me.I encountered the same problem as you. How do you slove it?Thanks! |
I encountered the same problem.The cause is the number of images in |
And btw, the key name in the npz file in |
Thanks. I will fix it. |
when I write this order,something wrong with it.
DataLoader loading json file: data/cocotest.json
vocab size is 9487
DataLoader loading h5 file: data/cocotest_bu_fc data/cocotest_bu_att data/cocotalk_box none
read 40775 image features
assigned 0 images to split train
assigned 0 images to split val
assigned 40775 images to split test
Traceback (most recent call last):
File "eval.py", line 100, in
loader = DataLoader(opt)
File "/content/gdrive/Shared drives/cfhyxxj798577670/1/dataloader.py", line 303, in init
self.iters[split] = iter(self.loaders[split])
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 279, in iter
return _MultiProcessingDataLoaderIter(self)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 746, in init
self._try_put_index()
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 861, in _try_put_index
index = self._next_index()
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 339, in _next_index
return next(self._sampler_iter) # may raise StopIteration
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/sampler.py", line 200, in iter
for idx in self.sampler:
File "/content/gdrive/Shared drives/cfhyxxj798577670/1/dataloader.py", line 370, in next
elem = (self.index_list[self.iter_counter], self.iter_counter+1, wrapped)
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: