Skip to content
GitLab
Menu
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.voice
Commits
87c3bf5a
Commit
87c3bf5a
authored
Feb 23, 2017
by
Pavel KORSHUNOV
Browse files
Allow to train asvspoof2017 on both train and dev sets
parent
7de67590
Pipeline
#7468
failed with stages
in 14 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/voice/database/asvspoof2017.py
View file @
87c3bf5a
...
...
@@ -79,5 +79,11 @@ class ASVspoof2017PadDatabase(PadDatabase):
"""
purposes
=
self
.
convert_purposes
(
purposes
,
(
'genuine'
,
'spoof'
),
(
'real'
,
'attack'
))
if
protocol
==
'largetrain'
:
if
groups
==
'train'
:
groups
=
(
'train'
,
'dev'
)
if
groups
==
'dev'
:
groups
=
'eval'
objects
=
self
.
__db
.
objects
(
protocol
=
protocol
,
groups
=
groups
,
purposes
=
purposes
,
**
kwargs
)
return
[
ASVspoof2017PadFile
(
f
)
for
f
in
objects
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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