Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.face
Commits
564212df
Commit
564212df
authored
Jun 16, 2015
by
Manuel Günther
Browse files
baselines evaluation by default takes the default protocol
parent
cde00256
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/face/script/baselines.py
View file @
564212df
...
...
@@ -279,10 +279,16 @@ def main(command_line_parameters = None):
logger
.
warn
(
"Skipping algorithm '%s' since the results cannot be found."
,
algorithm
)
continue
if
len
(
protocols
)
>
1
:
logger
.
warn
(
"There are several protocols found in directory '%s'. Here, we use protocol '%s'."
,
os
.
path
.
join
(
result_dir
,
algorithm
),
protocols
[
0
])
nonorm_sub_dir
=
os
.
path
.
join
(
algorithm
,
protocols
[
0
],
'nonorm'
)
ztnorm_sub_dir
=
os
.
path
.
join
(
algorithm
,
protocols
[
0
],
'ztnorm'
)
# load the default protocol of the database
protocol
=
bob
.
bio
.
base
.
load_resource
(
args
.
database
,
"database"
).
protocol
if
protocol
not
in
protocols
:
protocol
=
protocols
[
0
]
logger
.
warn
(
"There are several protocols found in directory '%s'. Here, we use protocol '%s'."
,
os
.
path
.
join
(
result_dir
,
algorithm
),
protocols
[
0
])
else
:
protocol
=
protocols
[
0
]
nonorm_sub_dir
=
os
.
path
.
join
(
algorithm
,
protocol
,
'nonorm'
)
ztnorm_sub_dir
=
os
.
path
.
join
(
algorithm
,
protocol
,
'ztnorm'
)
# collect the resulting files
if
os
.
path
.
exists
(
os
.
path
.
join
(
result_dir
,
nonorm_sub_dir
,
'scores-dev'
)):
...
...
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