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
OpenDAS
opencompass
Commits
6405cd2d
Unverified
Commit
6405cd2d
authored
Oct 27, 2023
by
Fengzhe Zhou
Committed by
GitHub
Oct 27, 2023
Browse files
use example summarizer by default (#508)
parent
46e7ede9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
opencompass/utils/run.py
opencompass/utils/run.py
+6
-7
No files found.
opencompass/utils/run.py
View file @
6405cd2d
...
@@ -99,10 +99,9 @@ def get_config_from_arg(args) -> Config:
...
@@ -99,10 +99,9 @@ def get_config_from_arg(args) -> Config:
run_cfg
=
dict
(
num_gpus
=
args
.
num_gpus
))
run_cfg
=
dict
(
num_gpus
=
args
.
num_gpus
))
models
.
append
(
model
)
models
.
append
(
model
)
summarizer
=
{}
summarizer
=
args
.
summarizer
if
args
.
summarizer
is
not
None
else
'example'
if
args
.
summarizer
:
summarizers_dir
=
os
.
path
.
join
(
args
.
config_dir
,
'summarizers'
)
summarizers_dir
=
os
.
path
.
join
(
args
.
config_dir
,
'summarizers'
)
s
=
match_cfg_file
(
summarizers_dir
,
[
args
.
summarizer
])[
0
]
s
=
match_cfg_file
(
summarizers_dir
,
[
summarizer
])[
0
]
get_logger
().
info
(
f
'Loading
{
s
[
0
]
}
:
{
s
[
1
]
}
'
)
get_logger
().
info
(
f
'Loading
{
s
[
0
]
}
:
{
s
[
1
]
}
'
)
cfg
=
Config
.
fromfile
(
s
[
1
])
cfg
=
Config
.
fromfile
(
s
[
1
])
summarizer
=
cfg
[
'summarizer'
]
summarizer
=
cfg
[
'summarizer'
]
...
...
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