ttengwang / PDVC

End-to-End Dense Video Captioning with Parallel Decoding (ICCV 2021)
MIT License
200 stars 23 forks source link

BLEU4/CIDEr #22

Closed cyy-1102 closed 2 years ago

cyy-1102 commented 2 years ago

I'm sorry to bother you again, professor. As for the two indicators BLEU4 and CIDEr of Dense Video Caption task in the paper, how can I get these two results?

ttengwang commented 2 years ago

Hi, youcan try the following command.

cd PDVC/densevid_eval3
python evaluate2018.py -v -s path/to/results.json
cyy-1102 commented 2 years ago

Hi, youcan try the following command.

cd PDVC/densevid_eval3
python evaluate2018.py -v -s path/to/results.json

I'm sorry, professor, I don't seem to understand you. I modified your code, then trained the model, and tested my trained model using 'eval.py'. In the generated 'val.log' file: METEOR, Recall, Precision, soda_c, para_Bleu_1-4, para_METEOR, para_ROUGE_L, para_CIDEr. No file to generate result.json. Can BLEU4/CIDEr be calculated directly using 'evaluate2018.py'? Don't I need to change the code while training the model?

ttengwang commented 2 years ago

To find the result json, you do not need to modify the code. After training, I believe you could find some JSON files in save/**/prediction/num*_epoch*_rerank*.json. These files are the generated results at each epoch.

After running eval.py, you can also find a json file in save/**/*.json which stores the generated captions of the best checkpoint.

Use evaluate2018.py to evaluate these files, you will get the score of all types of metrics.

cyy-1102 commented 2 years ago

To find the result json, you do not need to modify the code. After training, I believe you could find some JSON files in save/**/prediction/num*_epoch*_rerank*.json. These files are the generated results at each epoch.

After running eval.py, you can also find a json file in save/**/*.json which stores the generated captions of the best checkpoint.

Use evaluate2018.py to evaluate these files, you will get the score of all types of metrics.

thank you very much, professor~