Coder Social home page Coder Social logo

pycocoevalcap's Introduction

Microsoft COCO Caption Evaluation Tools

Modified the code to work with Python 3.

Requirements

  • Python 3.x
  • Java 1.8
  • pycocotools

Tested on

  • Windows 10, Python 3.5.

To fix Windows JVM memory error:

Add the following in System Variables
    Variable name : _JAVA_OPTIONS
    Variable value : -Xmx1024M


Original code : https://github.com/tylin/coco-caption

pycocoevalcap's People

Contributors

sks3i avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pycocoevalcap's Issues

error:broken pipe

I'm getting a broken pipe error when calculating the evaluation results And the calculated evaluation results also showed errors
{'testlen': 0, 'reflen': 0, 'guess': [0, 0, 0, 0], 'correct': [0, 0, 0, 0]}
ratio: 1e-06
Bleu_1: 0.000
Bleu_2: 0.000
Bleu_3: 0.000
Bleu_4: 0.000
computing METEOR score...
Traceback (most recent call last):
File "/home/zhangc/groundingLMM/eval/gcg/evaluate.py", line 285, in
main()
File "/home/zhangc/groundingLMM/eval/gcg/evaluate.py", line 269, in main
coco_eval.evaluate()
File "/home/zhangc/miniconda3/envs/glamm/lib/python3.10/site-packages/pycocoevalcap/eval.py", line 57, in evaluate
score, scores = scorer.compute_score(gts, res)
File "/home/zhangc/miniconda3/envs/glamm/lib/python3.10/site-packages/pycocoevalcap/meteor/meteor.py", line 41, in compute_score
self.meteor_p.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

can this code run on linux?

I run this code normally on my win10 computer, but it occurs this problem when it runs on Linux server:
No such file or directory: 'java' : 'java'.
so, I want to know if this code can run on linux when I configure the Java environment on Linux?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.