Skip to content
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

Open
Lee-Gao opened this issue Mar 14, 2021 · 5 comments
Open

IndexError: list index out of range #21

Lee-Gao opened this issue Mar 14, 2021 · 5 comments

Comments

@Lee-Gao
Copy link

Lee-Gao commented Mar 14, 2021

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

@yjg123456
Copy link

Me too,please authors help us solve the problem,I will be very grateful!

@RakeshRaj97
Copy link

Same here

@s0966066980
Copy link

Same here ! please authors help us solve the problem

@yjg123456
Copy link

Same here
the "self.annotation" is empty. i think the reason is the "/Super_Resolution/Datasets/COWC/DetectionPatches_256x256/Potsdam_ISPRS/LR/x4/" don not have ".txt" file. i have no idea to slove it

@YanADingggg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants