Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.db.morph
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
Model registry
Operate
Environments
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.db.morph
Commits
a75d0692
Commit
a75d0692
authored
5 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Moved metadata to sampleset
parent
41b4a4c3
No related branches found
No related tags found
1 merge request
!3
Moved metadata to sampleset
Pipeline
#39634
failed
5 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/db/morph/database.py
+6
-6
6 additions, 6 deletions
bob/db/morph/database.py
bob/db/morph/protocol.py
+1
-1
1 addition, 1 deletion
bob/db/morph/protocol.py
with
7 additions
and
7 deletions
bob/db/morph/database.py
+
6
−
6
View file @
a75d0692
...
...
@@ -102,7 +102,7 @@ class Database:
@property
def
allow_scoring_with_all_biometric_references
(
self
):
# This allows some optimization during the scoring stage
return
self
.
protocol
.
allow_scoring_with_all_references
return
self
.
protocol
.
allow_scoring_with_all_
biometric_
references
def
background_model_samples
(
self
):
"""
Returns :py:class:`Sample`
'
s to train a background model (group
...
...
@@ -414,6 +414,11 @@ class Database:
key
=
self
.
_subject_to_key
(
subject
),
path
=
path
,
subject
=
subject
,
date_of_birth
=
row
.
dob
,
photo_date
=
row
.
doa
,
age_phd
=
row
.
age
,
sex
=
row
.
gender
,
rac
=
row
.
race
,
)
# SampleSet needs a 'references' field, if in probes.
if
references_ids
!=
None
:
...
...
@@ -437,11 +442,6 @@ class Database:
key
=
path
,
subject
=
subject
,
annotations
=
self
.
_eyes_annotations
(
file
.
split
(
'
.
'
)[
0
]),
date_of_birth
=
row
.
dob
,
photo_date
=
row
.
doa
,
age_phd
=
row
.
age
,
sex
=
row
.
gender
,
rac
=
row
.
race
,
)
)
if
covariate
!=
None
:
...
...
This diff is collapsed.
Click to expand it.
bob/db/morph/protocol.py
+
1
−
1
View file @
a75d0692
...
...
@@ -83,7 +83,7 @@ class Protocol:
if
self
.
name
==
"
verification_fold3
"
:
self
.
shuffle_seed
=
3
# Scoring with all references is True for all protocols (yet).
self
.
allow_scoring_with_all_references
=
True
self
.
allow_scoring_with_all_
biometric_
references
=
True
def
genders
(
self
):
"""
Returns the gender(s) concerned by this protocol
...
...
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