-
Notifications
You must be signed in to change notification settings - Fork 70
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
IndexError: list index out of range #21
Comments
Me too,please authors help us solve the problem,I will be very grateful! |
Same here |
Same here ! please authors help us solve the problem |
|
Hello, everyone, may I ask whether this problem has been solved? I have the same problem now and would like to know how to solve it. Thank you very much @yjg123456 @Lee-Gao @s0966066980 @RakeshRaj97 |
When I ran train.py, I ran into the same problem. According to what you said, the path of the dataset was confirmed to be no problem. But the same problem still occurs. So I want to know if there is a good solution.
Traceback (most recent call last):
File "train.py", line 103, in
main(config)
File "train.py", line 82, in main
trainer.train()
File "G:\new co\EESRGAN-master\trainer\cowc_GAN_FRCNN_trainer.py", line 75, in train
for _, (image, targets) in enumerate(self.data_loader):
File "D:\anaconda\envs\TensorFlow113\lib\site-packages\torch\utils\data\dataloader.py", line 560, in next
batch = self.collate_fn([self.dataset[i] for i in indices])
File "D:\anaconda\envs\TensorFlow113\lib\site-packages\torch\utils\data\dataloader.py", line 560, in
batch = self.collate_fn([self.dataset[i] for i in indices])
File "G:\new co\EESRGAN-master\scripts_for_datasets\COWC_EESRGAN_FRCNN_dataset.py", line 33, in getitem
annotation_path = os.path.join(self.data_dir_gt, self.annotation[idx])
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: