Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
textmonkey_pytorch
Commits
5eeb4aa1
Unverified
Commit
5eeb4aa1
authored
May 08, 2024
by
echo840
Committed by
GitHub
May 08, 2024
Browse files
Update evaluate_vqa.py
parent
33268d8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
eval/evaluate_vqa.py
eval/evaluate_vqa.py
+2
-2
No files found.
eval/evaluate_vqa.py
View file @
5eeb4aa1
...
...
@@ -495,7 +495,7 @@ if __name__ == '__main__':
random
.
seed
(
args
.
seed
)
for
k
,
_
in
ds_collections
.
items
():
if
"vizwiz_val"
in
k
:
prompt
=
'<img>{}</img> {} When the provided information is insufficient, respond with "
U
nanswerable". Answer:'
prompt
=
'<img>{}</img> {} When the provided information is insufficient, respond with "
u
nanswerable". Answer:
'
else
:
prompt
=
'<img>{}</img>{} Answer:'
prompt
=
'<img>{}</img>{} Answer:
'
evaluate
(
model
,
tokenizer
,
prompt
,
args
,
k
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment