Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.face
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.face
Commits
97e30256
Commit
97e30256
authored
9 years ago
by
Manuel Günther (aka. Gunther, Guenther)
Browse files
Options
Downloads
Plain Diff
Merge pull request #5 from bioidiap/183amir-patch-1
Update baselines.py
parents
cb7a6b88
f46c5e9b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/script/baselines.py
+6
-6
6 additions, 6 deletions
bob/bio/face/script/baselines.py
with
6 additions
and
6 deletions
bob/bio/face/script/baselines.py
+
6
−
6
View file @
97e30256
...
@@ -177,8 +177,8 @@ def main(command_line_parameters = None):
...
@@ -177,8 +177,8 @@ def main(command_line_parameters = None):
# Check the database configuration file
# Check the database configuration file
has_eyes
=
args
.
database
!=
'
atnt
'
has_eyes
=
args
.
database
!=
'
atnt
'
has_zt_norm
=
args
.
database
in
(
'
banca
'
,
'
mobio
'
,
'
multipie
'
,
'
scface
'
)
has_zt_norm
=
args
.
database
in
(
'
banca
'
,
'
mobio
-female
'
,
'
mobio-image
'
,
'
mobio-male
'
,
'
multipie
'
,
'
scface
'
)
has_eval
=
args
.
database
in
(
'
banca
'
,
'
mobio
'
,
'
multipie
'
,
'
scface
'
,
'
xm2vts
'
)
has_eval
=
args
.
database
in
(
'
banca
'
,
'
mobio
-female
'
,
'
mobio-image
'
,
'
mobio-male
'
,
'
multipie
'
,
'
scface
'
,
'
xm2vts
'
)
if
not
args
.
evaluate
:
if
not
args
.
evaluate
:
...
@@ -330,24 +330,24 @@ def main(command_line_parameters = None):
...
@@ -330,24 +330,24 @@ def main(command_line_parameters = None):
# first, run the nonorm evaluation
# first, run the nonorm evaluation
if
result_zt_dev
:
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
:
else
:
command
=
[
cmd
.
replace
(
'
xxx
'
,
''
)
for
cmd
in
base_command
]
command
=
[
cmd
.
replace
(
'
xxx
'
,
''
)
for
cmd
in
base_command
]
command
+=
[
'
--dev-files
'
]
+
result_dev
command
+=
[
'
--dev-files
'
]
+
result_dev
if
result_eval
:
if
result_eval
:
command
+=
[
'
--eval-files
'
]
+
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
:
if
not
args
.
dry_run
:
subprocess
.
call
(
command
)
subprocess
.
call
(
command
)
# now, also run the ZT norm evaluation, if available
# now, also run the ZT norm evaluation, if available
if
result_zt_dev
:
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
command
+=
[
'
--dev-files
'
]
+
result_zt_dev
if
result_zt_eval
:
if
result_zt_eval
:
command
+=
[
'
--eval-files
'
]
+
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
:
if
not
args
.
dry_run
:
subprocess
.
call
(
command
)
subprocess
.
call
(
command
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment