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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.base
Commits
cb83794d
Commit
cb83794d
authored
4 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Fixed partition size isse with the ZT-Norm pipeline
parent
a1749e67
No related branches found
No related tags found
1 merge request
!234
Fixed issues in the ScoreWriter
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/base/pipelines/vanilla_biometrics/vanilla_biometrics.py
+14
-5
14 additions, 5 deletions
...o/base/pipelines/vanilla_biometrics/vanilla_biometrics.py
with
14 additions
and
5 deletions
bob/bio/base/pipelines/vanilla_biometrics/vanilla_biometrics.py
+
14
−
5
View file @
cb83794d
...
...
@@ -101,7 +101,9 @@ def execute_vanilla_biometrics(
for
group
in
groups
:
score_file_name
=
os
.
path
.
join
(
output
,
f
"
scores-
{
group
}
"
)
score_file_name
=
os
.
path
.
join
(
output
,
f
"
scores-
{
group
}
"
+
"
.csv
"
if
write_metadata_scores
else
""
)
biometric_references
=
database
.
references
(
group
=
group
)
probes
=
database
.
probes
(
group
=
group
)
...
...
@@ -246,13 +248,20 @@ def execute_vanilla_biometrics_ztnorm(
if
dask_client
is
not
None
and
not
isinstance_nested
(
pipeline
.
biometric_algorithm
,
"
biometric_algorithm
"
,
BioAlgorithmDaskWrapper
):
# Scaling up
if
dask_n_workers
is
not
None
and
not
isinstance
(
dask_client
,
str
):
dask_client
.
cluster
.
scale
(
dask_n_workers
)
n_objects
=
max
(
len
(
background_model_samples
),
len
(
biometric_references
),
len
(
probes
)
)
pipeline
=
dask_vanilla_biometrics
(
pipeline
,
partition_size
=
dask_get_partition_size
(
dask_client
.
cluster
,
n_objects
),
)
partition_size
=
None
if
not
isinstance
(
dask_client
,
str
):
partition_size
=
dask_get_partition_size
(
dask_client
.
cluster
,
n_objects
)
if
dask_partition_size
is
not
None
:
partition_size
=
dask_partition_size
pipeline
=
dask_vanilla_biometrics
(
pipeline
,
partition_size
=
partition_size
,)
logger
.
info
(
f
"
Running vanilla biometrics for group
{
group
}
"
)
allow_scoring_with_all_biometric_references
=
(
...
...
This diff is collapsed.
Click to expand it.
Laurent COLBOIS
@lcolbois
mentioned in merge request
!236 (merged)
·
4 years ago
mentioned in merge request
!236 (merged)
mentioned in merge request !236
Toggle commit list
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