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
3797c15f
Commit
3797c15f
authored
4 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Implemented a mechanism to get the partition_size
parent
de050b46
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!180
[dask] Preparing bob.bio.base for dask pipelines
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/base/script/vanilla_biometrics.py
+3
-3
3 additions, 3 deletions
bob/bio/base/script/vanilla_biometrics.py
bob/bio/base/script/vanilla_biometrics_ztnorm.py
+6
-5
6 additions, 5 deletions
bob/bio/base/script/vanilla_biometrics_ztnorm.py
with
9 additions
and
8 deletions
bob/bio/base/script/vanilla_biometrics.py
+
3
−
3
View file @
3797c15f
...
...
@@ -220,7 +220,7 @@ def vanilla_biometrics(
"
biometric_algorithm
"
,
BioAlgorithmCheckpointWrapper
,
)
or
not
isinstance_nested
(
and
not
isinstance_nested
(
pipeline
,
"
biometric_algorithm
"
,
BioAlgorithmLegacy
)
):
...
...
@@ -236,8 +236,8 @@ def vanilla_biometrics(
if
dask_client
is
not
None
and
not
isinstance_nested
(
pipeline
.
biometric_algorithm
,
"
biometric_algorithm
"
,
BioAlgorithmDaskWrapper
):
n_objects
=
(
len
(
background_model_samples
)
+
len
(
biometric_references
)
+
len
(
probes
)
n_objects
=
max
(
len
(
background_model_samples
)
,
len
(
biometric_references
)
,
len
(
probes
)
)
pipeline
=
dask_vanilla_biometrics
(
pipeline
,
...
...
This diff is collapsed.
Click to expand it.
bob/bio/base/script/vanilla_biometrics_ztnorm.py
+
6
−
5
View file @
3797c15f
...
...
@@ -229,9 +229,10 @@ def vanilla_biometrics_ztnorm(
# Patching the pipeline in case of ZNorm and checkpointing it
pipeline
=
ZTNormPipeline
(
pipeline
)
pipeline
.
ztnorm_solver
=
ZTNormCheckpointWrapper
(
pipeline
.
ztnorm_solver
,
os
.
path
.
join
(
output
,
"
normed-scores
"
)
)
if
checkpoint
:
pipeline
.
ztnorm_solver
=
ZTNormCheckpointWrapper
(
pipeline
.
ztnorm_solver
,
os
.
path
.
join
(
output
,
"
normed-scores
"
)
)
background_model_samples
=
database
.
background_model_samples
()
zprobes
=
database
.
zprobes
(
proportion
=
ztnorm_cohort_proportion
)
...
...
@@ -246,8 +247,8 @@ def vanilla_biometrics_ztnorm(
if
dask_client
is
not
None
and
not
isinstance_nested
(
pipeline
.
biometric_algorithm
,
"
biometric_algorithm
"
,
BioAlgorithmDaskWrapper
):
n_objects
=
(
len
(
background_model_samples
)
+
len
(
biometric_references
)
+
len
(
probes
)
n_objects
=
max
(
len
(
background_model_samples
)
,
len
(
biometric_references
)
,
len
(
probes
)
)
pipeline
=
dask_vanilla_biometrics
(
pipeline
,
...
...
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