Open tnb1021 opened 1 year ago
It does not support evaluation on arbitrary image. You have to evaluate on coco or flickr30k, or you need to create your dataset in the same way as the coco format.
I prepared and ran the same format as coco and got the same error. Is there anything else needed other than the files in the following command?
python tools/eval.py --input_json data/dataset_cub_test.json --input_fc_dir data/cubtalk-test_fc/ --input_att_dir data/cubtalk-test_att/ --input_label_h5 none --num_images -1 --model log_fc/model-best.pth --infos_path log_fc/infos_fc-best.pkl --language_eval 1 --force 1
I use "cub" dataset.
You need to prepare a Json file in coco-caption folder too.
Similar to https://github.com/ruotianluo/ImageCaptioning.pytorch/tree/master/data#flickr30k.
You also need to add a line to let the coco-caption to read this Json file.
I want to evaluate trained models using CIDER, but i can't it. When language_eval=0, it can be evaluated, but when language_eval=1, an error occurs.I want to use language_eval. tried:
then:
This error has been reported in other issues, but all seem to be resolved by setting --force=1 and language_eval=0. I can eliminate the error with those conditions too, but what can I do to run with language_eval=1?