Hello! When I was trying to test the pretrained model on COCO, this error happened.
File "E:\xqj\paper\dl_and_ai_paper\image_inpainting\image_completion_code\tdanet-master\tdanet-master\dataloader\data_loader.py", line 81, in _load_text_idx
captions = self.captions[img_name]
KeyError: 'COCO_val2014_000000203564.jpg'
It seems that the dictionary constructed by the file 'caption.json' under coco doesn't have the key, which is in the file 'valid.flist'. Could you please upload the corresponding file or introduce your method for preprocessing caption-image mapping?
Hello! When I was trying to test the pretrained model on COCO, this error happened.
File "E:\xqj\paper\dl_and_ai_paper\image_inpainting\image_completion_code\tdanet-master\tdanet-master\dataloader\data_loader.py", line 81, in _load_text_idx captions = self.captions[img_name] KeyError: 'COCO_val2014_000000203564.jpg'
It seems that the dictionary constructed by the file 'caption.json' under coco doesn't have the key, which is in the file 'valid.flist'. Could you please upload the corresponding file or introduce your method for preprocessing caption-image mapping?