Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CNN-voice-PAD
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
biometric
CNN-voice-PAD
Commits
1a722387
Commit
1a722387
authored
Oct 02, 2017
by
Hannah MUCKENHIRN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small modifications
parent
f20aebeb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
forward.lua
forward.lua
+1
-0
saveVAD.lua
saveVAD.lua
+1
-1
speech_dataset.lua
speech_dataset.lua
+2
-2
No files found.
forward.lua
View file @
1a722387
...
...
@@ -93,6 +93,7 @@ print("number of utterances: " .. validSet.nData)
for
i
=
1
,
validSet
.
nData
do
print
(
i
)
local
nbVoicedFrames
=
0
local
score
=
0
target
=
validSet
:
get_label
(
c
)
...
...
saveVAD.lua
View file @
1a722387
-- use:
savePaths
listfile_real listfile_attack outputfile
-- use:
torch saveVAD.lua
listfile_real listfile_attack outputfile
vad_table
=
{}
for
l
in
io.lines
(
arg
[
1
])
do
...
...
speech_dataset.lua
View file @
1a722387
...
...
@@ -13,7 +13,7 @@ function SpeechDataset:__init(config)
self
.
label
=
torch
.
load
(
config
.
labelfile
);
print
(
"data loaded"
)
self
.
path
=
nil
if
config
.
pathfile
~=
nil
then
if
config
.
pathfile
~=
""
then
self
.
path
=
torch
.
load
(
config
.
pathfile
)
end
...
...
@@ -224,7 +224,7 @@ end
function
SpeechDataset
:
get_path
(
k
)
if
self
.
path
==
nil
then
return
nil
return
""
end
return
self
.
path
[
self
.
map
[
k
][
1
]]
end
...
...
Write
Preview
Markdown
is supported
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