-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't run the code #6
Comments
Hi, Make sure you build and install the llava inside this repo, if you need to use any vision representation implemented in this repo. If you use an existing environment for LLava-Next, I don't think it will be compatible with the lmms-eval in this repo. Also, if you only need to run lmms-eval to do feature extraction for A score, you do not have to use the lmms-eval in this repo. You can use the one you can successfully run. Let me know if you have any further issue. Thanks! |
Thank you for your response. I apologize that my previous description was not very clear. I am currently trying to complete the calculation of the A score. My llava package and lmms-eval package are both installed in the specified directory under the current project. The command line I used is: I hava no idea where the bug comes from. Maybe have you came across to this bug? If not, I am considering moving the code in "the law" to "LLava-Next" and "lmms-eval" which I have tested, thus I can obtain the ingenious code from the "the law" project, I'll really appreciate it if you can give some tips. |
@dingyue772 Thanks for your clarification. I personally never encountered this conflict. However, I did encounter "LLaVA not installed" for lmms-eval, but it is not because of the version conflict between two packages. That was because for some reason my llava was not built successfully, but the error is not very obvious. I rebuilt and solve the issue. For A score feature extraction, you only need to change 3 places mentioned here. I hope if you end up using your own version combination, it does not cause difference in reproducing A score. Let me know if you cannot reproduce A score because of this. Sorry for not being very helpful, and I will keep the issue open to see if others can find a solution. |
Thanks for the ingenious research work, but I get stuck when I want to replicate your work. I followed the tips in README, I use a conda environment with
transformers=4.37.2
,lmms-eval=0.2.3.dev0
andllava=1.7.0.dev0
. with this environment, I can run lmms-eval and LLaVA-Next.But when I tried to run the "law_of" code, I encountered LLaVA is not installed and then in "Law_of_Vision_Representation_in_MLLMs/llava/eval/lmms-eval/lmms_eval/models/llava.py",
get_model_name_from_path
is not defined. I am so confused by the problem.The text was updated successfully, but these errors were encountered: