Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.face
Commits
97e30256
Commit
97e30256
authored
Mar 09, 2016
by
Manuel Günther (aka. Gunther, Guenther)
Browse files
Merge pull request #5 from bioidiap/183amir-patch-1
Update baselines.py
parents
cb7a6b88
f46c5e9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/face/script/baselines.py
View file @
97e30256
...
...
@@ -177,8 +177,8 @@ def main(command_line_parameters = None):
# Check the database configuration file
has_eyes
=
args
.
database
!=
'atnt'
has_zt_norm
=
args
.
database
in
(
'banca'
,
'mobio'
,
'multipie'
,
'scface'
)
has_eval
=
args
.
database
in
(
'banca'
,
'mobio'
,
'multipie'
,
'scface'
,
'xm2vts'
)
has_zt_norm
=
args
.
database
in
(
'banca'
,
'mobio
-female'
,
'mobio-image'
,
'mobio-male
'
,
'multipie'
,
'scface'
)
has_eval
=
args
.
database
in
(
'banca'
,
'mobio
-female'
,
'mobio-image'
,
'mobio-male
'
,
'multipie'
,
'scface'
,
'xm2vts'
)
if
not
args
.
evaluate
:
...
...
@@ -330,24 +330,24 @@ def main(command_line_parameters = None):
# first, run the nonorm evaluation
if
result_zt_dev
:
command
=
[
cmd
.
replace
(
'xxx'
,
'_
dev
'
)
for
cmd
in
base_command
]
command
=
[
cmd
.
replace
(
'xxx'
,
'_
nonorm
'
)
for
cmd
in
base_command
]
else
:
command
=
[
cmd
.
replace
(
'xxx'
,
''
)
for
cmd
in
base_command
]
command
+=
[
'--dev-files'
]
+
result_dev
if
result_eval
:
command
+=
[
'--eval-files'
]
+
result_eval
logger
.
info
(
"Executing command:
\n
%s"
,
bob
.
bio
.
base
.
tools
.
command_line
(
command
))
logger
.
info
(
"Executing command
(nonorm)
:
\n
%s"
,
bob
.
bio
.
base
.
tools
.
command_line
(
command
))
if
not
args
.
dry_run
:
subprocess
.
call
(
command
)
# now, also run the ZT norm evaluation, if available
if
result_zt_dev
:
command
=
[
cmd
.
replace
(
'xxx'
,
'_
eval
'
)
for
cmd
in
base_command
]
command
=
[
cmd
.
replace
(
'xxx'
,
'_
ztnorm
'
)
for
cmd
in
base_command
]
command
+=
[
'--dev-files'
]
+
result_zt_dev
if
result_zt_eval
:
command
+=
[
'--eval-files'
]
+
result_zt_eval
logger
.
info
(
"Executing command:
\n
%s"
,
bob
.
bio
.
base
.
tools
.
command_line
(
command
))
logger
.
info
(
"Executing command
(ztnorm)
:
\n
%s"
,
bob
.
bio
.
base
.
tools
.
command_line
(
command
))
if
not
args
.
dry_run
:
subprocess
.
call
(
command
)
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