Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.spear
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.spear
Commits
9b8ec8a0
There was a problem fetching the pipeline summary.
Commit
9b8ec8a0
authored
8 years ago
by
Marc FERRAS
Browse files
Options
Downloads
Patches
Plain Diff
nist_sre12 update
parent
6210aa43
Branches
Branches containing commit
No related tags found
1 merge request
!43
Add nistsre12 db
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/spear/config/database/nist_sre12.py
+0
-1
0 additions, 1 deletion
bob/bio/spear/config/database/nist_sre12.py
bob/bio/spear/database/nist_sre12.py
+4
-4
4 additions, 4 deletions
bob/bio/spear/database/nist_sre12.py
with
4 additions
and
5 deletions
bob/bio/spear/config/database/nist_sre12.py
+
0
−
1
View file @
9b8ec8a0
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
from
bob.bio.spear.database
import
NistSre12BioDatabase
from
bob.bio.spear.database
import
NistSre12BioDatabase
#nist_sre12_directory = "/idiap/resource/database/nist_sre"
nist_sre12_directory
=
"
[YOUR_NIST_SRE12_DIRECTORY]
"
nist_sre12_directory
=
"
[YOUR_NIST_SRE12_DIRECTORY]
"
...
...
This diff is collapsed.
Click to expand it.
bob/bio/spear/database/nist_sre12.py
+
4
−
4
View file @
9b8ec8a0
...
@@ -23,11 +23,11 @@ class NistSre12BioFile(AudioBioFile):
...
@@ -23,11 +23,11 @@ class NistSre12BioFile(AudioBioFile):
"""
"""
super
(
NistSre12BioFile
,
self
).
__init__
(
client_id
=
f
.
client_id
,
path
=
f
.
path
,
file_id
=
f
.
id
)
super
(
NistSre12BioFile
,
self
).
__init__
(
client_id
=
f
.
client_id
,
path
=
f
.
path
,
file_id
=
f
.
id
)
self
.
__
f
=
f
self
.
f
=
f
self
.
path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
self
.
__
f
.
path
),
self
.
__
f
.
id
)
self
.
path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
self
.
f
.
path
),
self
.
f
.
id
)
def
load
(
self
,
directory
=
None
,
extension
=
'
.sph
'
):
def
load
(
self
,
directory
=
None
,
extension
=
'
.sph
'
):
rate
,
data
=
self
.
__
f
.
load
(
directory
,
extension
)
rate
,
data
=
self
.
f
.
load
(
directory
,
extension
)
data
=
np
.
cast
[
'
float
'
](
data
)
data
=
np
.
cast
[
'
float
'
](
data
)
return
rate
,
data
return
rate
,
data
...
@@ -49,7 +49,7 @@ class NistSre12BioFile(AudioBioFile):
...
@@ -49,7 +49,7 @@ class NistSre12BioFile(AudioBioFile):
"""
"""
# assure that directory and extension are actually strings
# assure that directory and extension are actually strings
# create the path
# create the path
return
str
(
os
.
path
.
join
(
directory
or
''
,
os
.
path
.
dirname
(
self
.
__
f
.
path
),
self
.
__
f
.
id
+
(
extension
or
''
)))
return
str
(
os
.
path
.
join
(
directory
or
''
,
os
.
path
.
dirname
(
self
.
f
.
path
),
self
.
f
.
id
+
(
extension
or
''
)))
class
NistSre12BioDatabase
(
BioDatabase
):
class
NistSre12BioDatabase
(
BioDatabase
):
...
...
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