stevehuanghe / image_captioning

Image captioning models in PyTorch
Apache License 2.0
37 stars 10 forks source link

The validation issues with SCA-CNN #7

Open Sun-WeiZhen opened 4 years ago

Sun-WeiZhen commented 4 years ago

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

Thank you very much!