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
a1e30d2e
Commit
a1e30d2e
authored
5 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Implemented in the scoring step of the Vanilla-pipeline
parent
072055bf
No related branches found
No related tags found
1 merge request
!180
[dask] Preparing bob.bio.base for dask pipelines
Pipeline
#37708
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/base/script/vanilla_biometrics.py
+15
-7
15 additions, 7 deletions
bob/bio/base/script/vanilla_biometrics.py
with
15 additions
and
7 deletions
bob/bio/base/script/vanilla_biometrics.py
+
15
−
7
View file @
a1e30d2e
...
...
@@ -209,18 +209,26 @@ def vanilla_biometrics(
from
bob.bio.base.pipelines.vanilla_biometrics.annotated_legacy
import
SampleLoaderAnnotated
as
SampleLoader
loader
=
SampleLoader
(
pipeline
)
counter
=
0
for
g
in
group
:
for
g
in
group
:
with
open
(
os
.
path
.
join
(
output
,
f
"
scores-
{
g
}
"
),
"
w
"
)
as
f
:
for
biometric_reference
in
database
.
references
(
group
=
g
):
subject
=
biometric_reference
.
subject
print
(
f
"
BIOMETRIC REFERENCE
{
counter
}
-
{
subject
}
"
)
counter
+=
1
# Spliting the references in small chunks
n_workers
=
3
biometric_references
=
database
.
references
(
group
=
g
)
offset
=
0
step
=
len
(
biometric_references
)
//
n_workers
biometric_references_chunks
=
[]
for
i
in
range
(
n_workers
-
1
):
biometric_references_chunks
.
append
(
biometric_references
[
offset
:
offset
+
step
])
offset
+=
step
biometric_references_chunks
.
append
(
biometric_references
[
offset
:])
for
biometric_reference
in
biometric_references_chunks
:
result
=
biometric_pipeline
(
database
.
background_model_samples
(),
[
biometric_reference
]
,
biometric_reference
,
database
.
probes
(
group
=
g
),
loader
,
algorithm
,
...
...
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