Giter Club home page Giter Club logo

Comments (2)

TGLTommy avatar TGLTommy commented on July 19, 2024

Describe the issue

Issue:

The file llava/eval/model_vqa_qbench.py is missing in the Release LLaVA-v1.6. Could you provide some insight into why this file was removed?

Additionally, I encountered a bug while using the file llava/eval/model_vqa_qbench.py from commit ac89962.

Command:

CUDA_VISIBLE_DEVICES=0 bash scripts/v1_5/eval/qbench.sh dev

Log:

Traceback (most recent call last):
  File "/root/anaconda3/envs/feat_align/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/root/anaconda3/envs/feat_align/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/data/root/Documents/CODES/FeatAlign/llava/eval/model_vqa_qbench.py", line 122, in <module>
    eval_model(args)
  File "/data/root/Documents/CODES/FeatAlign/llava/eval/model_vqa_qbench.py", line 99, in eval_model
    n_diff_input_output = (input_ids != output_ids[:, :input_token_len]).sum().item()
RuntimeError: The size of tensor a (77) must match the size of tensor b (5) at non-singleton dimension 1

Related issue: Q-Bench Evaluation Scripts for LLaVA-v1.5. #581

Thank you!

you can check it here : https://github.com/haotian-liu/LLaVA/pull/581/files#diff-24aa88b077252259843630f0a32315e0c252f04dfd7ede7bcee31e1ffe4c883b

from llava.

X1AOX1A avatar X1AOX1A commented on July 19, 2024

Thanks for your reply. Is it compatible with LLaVA with commit c121f04? I copied the file you mentioned, but I still encounter the same problem during evaluation:

Command:

CUDA_VISIBLE_DEVICES=0 bash scripts/v1_5/eval/qbench.sh dev

Log:

Traceback (most recent call last):
  File "/root/anaconda3/envs/feat_align/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/root/anaconda3/envs/feat_align/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/data/root/Documents/CODES/FeatAlign/llava/eval/model_vqa_qbench.py", line 122, in <module>
    eval_model(args)
  File "/data/root/Documents/CODES/FeatAlign/llava/eval/model_vqa_qbench.py", line 99, in eval_model
    n_diff_input_output = (input_ids != output_ids[:, :input_token_len]).sum().item()
RuntimeError: The size of tensor a (77) must match the size of tensor b (5) at non-singleton dimension 1

from llava.

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.