Hi,
This is a very excellent work for me ! Thank you a lot for providing the code in Pytorch.
When I finished the training part, I encountered the following problems during the verification,the resFlie is None,
reference: G:/SCA-image_captioning/data/annotations/captions_val2014.json
hypothesis: None
loading annotations into memory...
0:00:00.587429
creating index...
index created!
Traceback (most recent call last):
Loading and preparing results...
File "G:/SCA-image_captioning/evaluate.py", line 32, in
cocoRes = coco.loadRes(resFile)
File "G:\SCA-image_captioning\pycocotools\coco.py", line 275, in loadRes
anns = json.load(open(resFile))
TypeError: expected str, bytes or os.PathLike object, not NoneType
Hi, This is a very excellent work for me ! Thank you a lot for providing the code in Pytorch. When I finished the training part, I encountered the following problems during the verification,the resFlie is None,
reference: G:/SCA-image_captioning/data/annotations/captions_val2014.json hypothesis: None loading annotations into memory... 0:00:00.587429 creating index... index created! Traceback (most recent call last): Loading and preparing results...
cocoRes = coco.loadRes(resFile)
File "G:\SCA-image_captioning\pycocotools\coco.py", line 275, in loadRes
anns = json.load(open(resFile))
TypeError: expected str, bytes or os.PathLike object, not NoneType
File "G:/SCA-image_captioning/evaluate.py", line 32, in
Thank you very much!