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
0c76d950
Commit
0c76d950
authored
9 years ago
by
Manuel Günther
Browse files
Options
Downloads
Patches
Plain Diff
Added --parallel command line option to the bin/verify.py script (and all derived scripts).
parent
e45cd27c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/base/tools/algorithm.py
+1
-1
1 addition, 1 deletion
bob/bio/base/tools/algorithm.py
bob/bio/base/tools/command_line.py
+7
-0
7 additions, 0 deletions
bob/bio/base/tools/command_line.py
with
8 additions
and
1 deletion
bob/bio/base/tools/algorithm.py
+
1
−
1
View file @
0c76d950
...
@@ -165,7 +165,7 @@ def train_enroller(algorithm, extractor, force = False):
...
@@ -165,7 +165,7 @@ def train_enroller(algorithm, extractor, force = False):
train_features
=
read_features
(
train_files
,
reader
,
True
)
train_features
=
read_features
(
train_files
,
reader
,
True
)
# perform training
# perform training
logger
.
info
(
"
- Enrollment: training enroller
'
%s
'
using %d identities
:
"
,
fs
.
enroller_file
,
len
(
train_features
))
logger
.
info
(
"
- Enrollment: training enroller
'
%s
'
using %d identities
"
,
fs
.
enroller_file
,
len
(
train_features
))
algorithm
.
train_enroller
(
train_features
,
fs
.
enroller_file
)
algorithm
.
train_enroller
(
train_features
,
fs
.
enroller_file
)
...
...
This diff is collapsed.
Click to expand it.
bob/bio/base/tools/command_line.py
+
7
−
0
View file @
0c76d950
...
@@ -131,6 +131,8 @@ def command_line_parser(description=__doc__, exclude_resources_from=[]):
...
@@ -131,6 +131,8 @@ def command_line_parser(description=__doc__, exclude_resources_from=[]):
help
=
'
Performs score calibration after the scores are computed.
'
)
help
=
'
Performs score calibration after the scores are computed.
'
)
flag_group
.
add_argument
(
'
-z
'
,
'
--zt-norm
'
,
action
=
'
store_true
'
,
flag_group
.
add_argument
(
'
-z
'
,
'
--zt-norm
'
,
action
=
'
store_true
'
,
help
=
'
Enable the computation of ZT norms
'
)
help
=
'
Enable the computation of ZT norms
'
)
flag_group
.
add_argument
(
'
-r
'
,
'
--parallel
'
,
type
=
int
,
help
=
'
This flag is a shortcut for running the commands on the local machine with the given amount of parallel threads; equivalent to --grid bob.bio.base.grid.Grid(
"
local
"
, number_of_parallel_threads=X) --run-local-scheduler --stop-on-failure.
'
)
return
{
return
{
'
main
'
:
parser
,
'
main
'
:
parser
,
...
@@ -191,6 +193,11 @@ def initialize(parsers, command_line_parameters = None, skips = []):
...
@@ -191,6 +193,11 @@ def initialize(parsers, command_line_parameters = None, skips = []):
if
skip
not
in
args
.
execute_only
:
if
skip
not
in
args
.
execute_only
:
exec
(
"
args.skip_%s = True
"
%
(
skip
.
replace
(
"
-
"
,
"
_
"
)))
exec
(
"
args.skip_%s = True
"
%
(
skip
.
replace
(
"
-
"
,
"
_
"
)))
if
args
.
parallel
is
not
None
:
args
.
grid
=
[
'
bob.bio.base.grid.Grid(
"
local
"
, number_of_parallel_processes = %d)
'
%
args
.
parallel
]
args
.
run_local_scheduler
=
True
args
.
stop_on_failure
=
True
# logging
# logging
bob
.
core
.
log
.
set_verbosity_level
(
logger
,
args
.
verbose
)
bob
.
core
.
log
.
set_verbosity_level
(
logger
,
args
.
verbose
)
...
...
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