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
"git@developer.sourcefind.cn:yangql/composable_kernel-1.git" did not exist on "4f0fc72e913965d92d5410eb2a1c4a0e6b1fce6f"
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
Hide 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,13 +99,12 @@ def get_config_from_arg(args) -> Config:
...
@@ -99,13 +99,12 @@ 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
,
[
summarizer
])[
0
]
s
=
match_cfg_file
(
summarizers_dir
,
[
args
.
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'
]
return
Config
(
dict
(
models
=
models
,
datasets
=
datasets
,
return
Config
(
dict
(
models
=
models
,
datasets
=
datasets
,
summarizer
=
summarizer
),
summarizer
=
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