Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.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.pad.face
Commits
15a4dc21
Commit
15a4dc21
authored
6 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[database] small fix in CASIA-SURF
parent
de183c93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!87
Chalearn pad
Pipeline
#26876
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/database/casiasurf.py
+3
-3
3 additions, 3 deletions
bob/pad/face/database/casiasurf.py
with
3 additions
and
3 deletions
bob/pad/face/database/casiasurf.py
+
3
−
3
View file @
15a4dc21
...
@@ -144,7 +144,7 @@ class CasiaSurfPadDatabase(PadDatabase):
...
@@ -144,7 +144,7 @@ class CasiaSurfPadDatabase(PadDatabase):
The protocol for which the samples should be retrieved.
The protocol for which the samples should be retrieved.
purposes : :py:class:`str`
purposes : :py:class:`str`
The purposes for which Sample objects should be retrieved.
The purposes for which Sample objects should be retrieved.
Usually it is either
'
real
'
or
'
attack
'
, but could be
'
unknown
'
as well
Usually it is either
'
real
'
or
'
attack
'
model_ids
model_ids
This parameter is not supported in PAD databases yet.
This parameter is not supported in PAD databases yet.
...
@@ -160,9 +160,9 @@ class CasiaSurfPadDatabase(PadDatabase):
...
@@ -160,9 +160,9 @@ class CasiaSurfPadDatabase(PadDatabase):
# for training
# for training
lowlevel_purposes
=
[]
lowlevel_purposes
=
[]
if
'
train
'
in
groups
and
purposes
==
'
real
'
:
if
'
train
'
in
groups
and
'
real
'
in
purposes
:
lowlevel_purposes
.
append
(
'
real
'
)
lowlevel_purposes
.
append
(
'
real
'
)
if
'
train
'
in
groups
and
purposes
==
'
attack
'
:
if
'
train
'
in
groups
and
'
attack
'
in
purposes
:
lowlevel_purposes
.
append
(
'
attack
'
)
lowlevel_purposes
.
append
(
'
attack
'
)
# for dev and eval
# for dev and eval
...
...
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