Jakaria08 / EESRGAN

Small-Object Detection in Remote Sensing (satellite) Images with End-to-End Edge-Enhanced GAN and Object Detector Network
GNU General Public License v3.0
279 stars 70 forks source link

IndexError: list index out of range #21

Open Lee-Gao opened 3 years ago

Lee-Gao commented 3 years ago

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_FRCNNtrainer.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 commented 3 years ago

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

RakeshRaj97 commented 3 years ago

Same here

s0966066980 commented 3 years ago

Same here ! please authors help us solve the problem

yjg123456 commented 3 years ago

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 commented 2 years ago

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