Giter VIP home page Giter VIP logo

Comments (5)

clevercaicai avatar clevercaicai commented on September 14, 2024

{'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

from groundinglmm.

clevercaicai avatar clevercaicai commented on September 14, 2024

The value returned in the tokenizer is none
/home/zhangc/miniconda3/envs/glamm/lib/python3.10/site-packages/pycocoevalcap/tokenizer/ptbtokenizer.py
p_tokenizer = subprocess.Popen(cmd, cwd=path_to_jar_dirname,
stdout=subprocess.PIPE)
print("111",p_tokenizer.communicate(input=sentences.rstrip()))
token_lines = p_tokenizer.communicate(input=sentences.rstrip())[0]
print("token_lines",token_lines)
token_lines = token_lines.decode()
lines = token_lines.split('\n')

from groundinglmm.

mmaaz60 avatar mmaaz60 commented on September 14, 2024

Hi @clevercaicai

Thank you for your interest in our work. I tried running the GCG evaluation again, however can't reproduce the error you are getting. I suspect there might something went wrong during inference. Can you please try to repeat the evaluation process following the official docs at run_evaluation.sh and see if the problem persists. Further,

  1. After running inference using eval/gcg/infer.py, please make sure that the results directory has 8177 json files corresponding to each video.
  2. It is good idea to analyze the contents of a few predictions to verify if the model is generating reasonable outputs. If not, there may be some issues with the checkpoints or the transformers version.

I hope it will help. Thank You.

from groundinglmm.

clevercaicai avatar clevercaicai commented on September 14, 2024

Thanks again for your answer, the problem may be with the subprocess library, which I solved by using os.system. Now all the indicators are calculated correctly.

from groundinglmm.

mmaaz60 avatar mmaaz60 commented on September 14, 2024

Thanks @clevercaicai for the update, do let me know if you have any further question or face any other issue. Thanks

from groundinglmm.

Related Issues (20)

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.