Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.face
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.face
Merge requests
!14
[bob.db.replay] Fix model_ids
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[bob.db.replay] Fix model_ids
replay-fix
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Amir MOHAMMADI
requested to merge
replay-fix
into
master
8 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Fixes
#10 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
522361d3
1 commit,
8 years ago
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bob/bio/face/database/replay.py
+
3
−
2
Options
@@ -68,7 +68,7 @@ class ReplayBioDatabase(BioDatabase):
def
model_ids_with_protocol
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
# since the low-level API does not support verification straight-forward-ly, we improvise.
files
=
self
.
objects
(
groups
=
groups
,
protocol
=
protocol
)
files
=
self
.
objects
(
groups
=
groups
,
protocol
=
protocol
,
purposes
=
'
enroll
'
,
**
kwargs
)
return
sorted
(
set
(
f
.
client_id
for
f
in
files
))
def
objects
(
self
,
groups
=
None
,
protocol
=
None
,
purposes
=
None
,
model_ids
=
None
,
**
kwargs
):
@@ -104,7 +104,8 @@ class ReplayBioDatabase(BioDatabase):
elif
'
-spoof
'
in
protocol
:
protocol
=
protocol
.
replace
(
'
-spoof
'
,
''
)
# you need to replace probe with attack and real for the spoof protocols.
# I am adding the real here also to create positives scores also.
# You can add the real here also to create positives scores also
# but usually you get these scores when you run the licit protocol
if
'
probe
'
in
purposes
:
purposes
.
remove
(
'
probe
'
)
purposes
.
append
(
'
attack
'
)
Loading