-
Notifications
You must be signed in to change notification settings - Fork 85
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
about vlmeval/evaluate/multiple_choice.py #228
Comments
一个数据集中,每道题的选项个数可能是不一致的,有的题目有ABC三个选项,有的只有AB选项。这个函数用在 evaluation 阶段,获取题目给出的对应选项及内容 |
okok,那跟我理解的一样,但是这个函数好像取不到MMStar的选项,可能麻烦您要修改一下啦 |
我打印了一下 ret,可以抽取到这种字典吧 |
不能,我改后可以取到这种 |
请检查下代码版本?这个是在目前github代码版本上测试的 InternVL-Chat-V1-5 MMStar
|
好的好的 |
请问作者,关于这个函数的用处是什么呢?在我评估MMStar时,这个build_choices好像没有起到任何的作用,并且好像还会导致匹配错误。
def build_choices(item):
ret = {}
for ch in string.ascii_uppercase:
if ch in item and (not pd.isna(item[ch])):
ret[ch] = item[ch]
return ret
是不是要提取“Options: ”后面的选项及其内容?
The text was updated successfully, but these errors were encountered: