Skip to content
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

MME-realworld benchmark如何设置local path? #676

Open
ZihaoZheng98 opened this issue Dec 19, 2024 · 2 comments
Open

MME-realworld benchmark如何设置local path? #676

ZihaoZheng98 opened this issue Dec 19, 2024 · 2 comments

Comments

@ZihaoZheng98
Copy link

代码中自动下载数据总是因网络停止,单独下载后如何修改代码来使用嗯?

@ZihaoZheng98
Copy link
Author

解决了 image_mcq.py的665行改成本地路径就行。不知道VLMEvalKit是否可以在run.py里增加一个参数来统一指定本地路径呢?

@kennymckormick
Copy link
Member

Hi, @ZihaoZheng98 ,
可以通过设置 LMUData 环境变量来控制:

  1. VLMEvalKit 默认将所有数据保存在 $LMUData (可设置的环境变量) 目录下,代码中由 LMUDataRoot() 获取这一路径;当 LMUData 变量未设置时,将默认为 $HOME/LMUData/
  2. 如需使用本地的数据文件,下载完成后复制入 $LMUData 即可

参考代码:

def LMUDataRoot():

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants