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

about vlmeval/evaluate/multiple_choice.py #228

Closed
mary-0830 opened this issue Jun 20, 2024 · 6 comments
Closed

about vlmeval/evaluate/multiple_choice.py #228

mary-0830 opened this issue Jun 20, 2024 · 6 comments

Comments

@mary-0830
Copy link

mary-0830 commented Jun 20, 2024

请问作者,关于这个函数的用处是什么呢?在我评估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: ”后面的选项及其内容?

@junming-yang
Copy link
Collaborator

junming-yang commented Jun 20, 2024

一个数据集中,每道题的选项个数可能是不一致的,有的题目有ABC三个选项,有的只有AB选项。这个函数用在 evaluation 阶段,获取题目给出的对应选项及内容

@mary-0830
Copy link
Author

一个数据集中,每道题的选项个数可能是不一致的,有的题目有ABC三个选项,有的只有AB选项。这个函数用来获取题目给出的对应选项有哪些。

okok,那跟我理解的一样,但是这个函数好像取不到MMStar的选项,可能麻烦您要修改一下啦

@junming-yang
Copy link
Collaborator

我打印了一下 ret,可以抽取到这种字典吧
{'A': 'the Dominican Republic', 'B': 'Grenada', 'C': 'Dominica', 'D': 'Haiti'}

@mary-0830
Copy link
Author

我打印了一下 ret,可以抽取到这种字典吧 {'A': 'the Dominican Republic', 'B': 'Grenada', 'C': 'Dominica', 'D': 'Haiti'}

不能,我改后可以取到这种

@junming-yang
Copy link
Collaborator

junming-yang commented Jun 20, 2024 via email

@mary-0830
Copy link
Author

请检查下代码版本?这个是在目前github代码版本上测试的 InternVL-Chat-V1-5 MMStar

好的好的

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

No branches or pull requests

2 participants