Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.face
Commits
6f636bf0
Commit
6f636bf0
authored
Dec 06, 2019
by
Guillaume HEUSCH
Browse files
[BRSU] modif according to Amir's comments
parent
e2cbc5fe
Pipeline
#35717
passed with stage
in 18 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/face/database/brsu.py
View file @
6f636bf0
...
...
@@ -36,10 +36,7 @@ class BRSUPadFile(VideoPadFile):
of the BRSU database, in the bob.db.brsu.models.py file.
"""
self
.
s
=
s
if
not
isinstance
(
s
.
attack_type
,
str
):
attack_type
=
str
(
s
.
attack_type
)
else
:
attack_type
=
s
.
attack_type
attack_type
=
str
(
s
.
attack_type
)
if
attack_type
==
'0'
:
attack_type
=
None
...
...
@@ -81,7 +78,7 @@ class BRSUPadDatabase(PadDatabase):
"""
def
__init__
(
self
,
protocol
=
't
rain
'
,
original_directory
=
rc
[
'bob.db.brsu.directory'
],
original_extension
=
None
,
**
kwargs
):
def
__init__
(
self
,
protocol
=
't
est
'
,
original_directory
=
rc
[
'bob.db.brsu.directory'
],
original_extension
=
None
,
**
kwargs
):
"""Init function
Parameters
...
...
@@ -116,7 +113,7 @@ class BRSUPadDatabase(PadDatabase):
def
objects
(
self
,
groups
=
None
,
protocol
=
't
rain
'
,
protocol
=
't
est
'
,
purposes
=
None
,
model_ids
=
None
,
**
kwargs
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment