Skip to content

ouyangzhanning/coco-caption

 
 

Repository files navigation

Coco Evaluation

Evaluation codes for caption generation or machine translation.

Original code: COCO Caption

Also includes code from Visual Question Answering.

Update!: Now supports TER (using tercom) and sentence-level BLEU from Nematus! and sentence-level TER.

Requirements

  • java 1.8.0
  • python 2.7

Installation

export PYTHONPATH="/path/to/coco-caption:$PYTHONPATH"

Setup

  • You will first need to download the Stanford CoreNLP 3.6.0 code and models for use by SPICE. To do this, run: ./get_stanford_models.sh
  • Note: SPICE will try to create a cache of parsed sentences in ./pycocoevalcap/spice/cache/. This dramatically speeds up repeated evaluations. The cache directory can be moved by setting 'CACHE_DIR' in ./pycocoevalcap/spice. In the same file, caching can be turned off by removing the '-cache' argument to 'spice_cmd'.

References

Developers

  • Xinlei Chen (CMU)
  • Hao Fang (University of Washington)
  • Tsung-Yi Lin (Cornell)
  • Ramakrishna Vedantam (Virgina Tech)
  • Álvaro Peris (Universitat Politècnica de València)

Acknowledgement

  • David Chiang (University of Norte Dame)
  • Michael Denkowski (CMU)
  • Alexander Rush (Harvard University)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 95.8%
  • Python 3.6%
  • Other 0.6%