Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
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.base
Commits
35a19d65
Commit
35a19d65
authored
6 years ago
by
Tiago de Freitas Pereira
Committed by
Amir MOHAMMADI
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Using the proper verify script depending on system
parent
b404f0d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!156
Using the proper verify script depending on system
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/base/script/baseline.py
+13
-2
13 additions, 2 deletions
bob/bio/base/script/baseline.py
with
13 additions
and
2 deletions
bob/bio/base/script/baseline.py
+
13
−
2
View file @
35a19d65
...
@@ -9,6 +9,7 @@ A script to run biometric recognition baselines
...
@@ -9,6 +9,7 @@ A script to run biometric recognition baselines
from
..
import
load_resource
from
..
import
load_resource
from
.verify
import
main
as
verify
from
.verify
import
main
as
verify
import
os
from
..baseline
import
get_available_databases
,
search_preprocessor
from
..baseline
import
get_available_databases
,
search_preprocessor
from
bob.extension.scripts.click_helper
import
verbosity_option
from
bob.extension.scripts.click_helper
import
verbosity_option
import
click
import
click
...
@@ -61,7 +62,7 @@ def baseline(ctx, baseline, database, **kwargs):
...
@@ -61,7 +62,7 @@ def baseline(ctx, baseline, database, **kwargs):
preprocessor
=
loaded_baseline
.
preprocessors
[
db
]
preprocessor
=
loaded_baseline
.
preprocessors
[
db
]
# this is the default sub-directory that is used
# 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
)
sub_directory
=
os
.
path
.
join
(
database
,
baseline
)
else
:
else
:
sub_directory
=
baseline
sub_directory
=
baseline
...
@@ -96,5 +97,15 @@ verbose = {verbose}
...
@@ -96,5 +97,15 @@ verbose = {verbose}
f
.
seek
(
0
)
f
.
seek
(
0
)
verify
([
f
.
name
]
+
ctx
.
args
)
verify
([
f
.
name
]
+
ctx
.
args
)
click
.
echo
(
"
You may want to delete `{}
'
after the experiments are
"
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
)
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