Skip to content
GitLab
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.base
Commits
35a19d65
Commit
35a19d65
authored
May 21, 2018
by
Tiago de Freitas Pereira
Committed by
Amir MOHAMMADI
Jul 10, 2018
Browse files
Using the proper verify script depending on system
parent
b404f0d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/script/baseline.py
View file @
35a19d65
...
...
@@ -9,6 +9,7 @@ A script to run biometric recognition baselines
from
..
import
load_resource
from
.verify
import
main
as
verify
import
os
from
..baseline
import
get_available_databases
,
search_preprocessor
from
bob.extension.scripts.click_helper
import
verbosity_option
import
click
...
...
@@ -61,7 +62,7 @@ def baseline(ctx, baseline, database, **kwargs):
preprocessor
=
loaded_baseline
.
preprocessors
[
db
]
# this is the default sub-directory that is used
if
"-T"
in
ctx
.
args
or
"--temp-directory"
in
ctx
.
args
:
if
"-T"
in
ctx
.
args
or
"--temp-directory"
in
ctx
.
args
:
sub_directory
=
os
.
path
.
join
(
database
,
baseline
)
else
:
sub_directory
=
baseline
...
...
@@ -96,5 +97,15 @@ verbose = {verbose}
f
.
seek
(
0
)
verify
([
f
.
name
]
+
ctx
.
args
)
click
.
echo
(
"You may want to delete `{}' after the experiments are "
"finished running."
.
format
(
f
.
name
))
"finished running."
.
format
(
f
.
name
))
if
"gmm"
in
loaded_baseline
.
algorithm
:
from
bob.bio.gmm.script.verify_gmm
import
main
as
verify
elif
"isv"
in
loaded_baseline
.
algorithm
:
from
bob.bio.gmm.script.verify_isv
import
main
as
verify
elif
"ivector"
in
loaded_baseline
.
algorithm
:
from
bob.bio.gmm.script.verify_ivector
import
main
as
verify
else
:
from
.verify
import
main
as
verify
verify
(
parameters
+
ctx
.
args
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment