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
193c77e1
Commit
193c77e1
authored
Nov 22, 2023
by
lvskiller
Browse files
data
parent
a69eefd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
eval/evaluate_vqa.py
eval/evaluate_vqa.py
+6
-6
No files found.
eval/evaluate_vqa.py
View file @
193c77e1
...
@@ -33,9 +33,9 @@ ds_collections = {
...
@@ -33,9 +33,9 @@ ds_collections = {
'metric'
:
'anls'
,
'metric'
:
'anls'
,
'max_new_tokens'
:
100
,
'max_new_tokens'
:
100
,
},
},
'chartqa
_ureader
'
:
{
'chartqa'
:
{
'train'
:
'data/chartqa/train_augmented.jsonl'
,
'train'
:
'data/chartqa/train_augmented.jsonl'
,
'test'
:
'data/chartqa/chartqa
_ureader
.jsonl'
,
'test'
:
'data/chartqa/chartqa.jsonl'
,
'metric'
:
'relaxed_accuracy'
,
'metric'
:
'relaxed_accuracy'
,
'max_new_tokens'
:
100
,
'max_new_tokens'
:
100
,
},
},
...
@@ -55,19 +55,19 @@ ds_collections = {
...
@@ -55,19 +55,19 @@ ds_collections = {
},
},
'deepform'
:
{
'deepform'
:
{
'train'
:
''
,
'train'
:
''
,
'test'
:
'data/
ureader/
test_DeepForm.jsonl'
,
'test'
:
'data/test_DeepForm.jsonl'
,
'metric'
:
'accuracy'
,
'metric'
:
'accuracy'
,
'max_new_tokens'
:
100
,
'max_new_tokens'
:
100
,
},
},
'KLC'
:
{
'KLC'
:
{
'train'
:
''
,
'train'
:
''
,
'test'
:
'data/
ureader/
test_KleisterCharity.jsonl'
,
'test'
:
'data/test_KleisterCharity.jsonl'
,
'metric'
:
'accuracy'
,
'metric'
:
'accuracy'
,
'max_new_tokens'
:
100
,
'max_new_tokens'
:
100
,
},
},
'WTQ'
:
{
'WTQ'
:
{
'train'
:
''
,
'train'
:
''
,
'test'
:
'data/
ureader/
test_WikiTableQuestions.jsonl'
,
'test'
:
'data/test_WikiTableQuestions.jsonl'
,
'metric'
:
'accuracy'
,
'metric'
:
'accuracy'
,
'max_new_tokens'
:
100
,
'max_new_tokens'
:
100
,
},
},
...
@@ -374,7 +374,7 @@ def evaluate(model,tokenizer,prompt,args,dataset_name):
...
@@ -374,7 +374,7 @@ def evaluate(model,tokenizer,prompt,args,dataset_name):
'answer'
:
answer
,
'answer'
:
answer
,
'annotation'
:
[
annotation
],
'annotation'
:
[
annotation
],
})
})
elif
dataset_name
in
[
"chartqa
_ureader
"
]:
elif
dataset_name
in
[
"chartqa"
]:
outputs
.
append
({
outputs
.
append
({
'image_path'
:
image_path
,
'image_path'
:
image_path
,
'answer'
:
answer
,
'answer'
:
answer
,
...
...
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