Commit 1a722387 authored by Hannah MUCKENHIRN's avatar Hannah MUCKENHIRN

Small modifications

parent f20aebeb
...@@ -93,6 +93,7 @@ print("number of utterances: " .. validSet.nData) ...@@ -93,6 +93,7 @@ print("number of utterances: " .. validSet.nData)
for i = 1,validSet.nData do for i = 1,validSet.nData do
print(i)
local nbVoicedFrames=0 local nbVoicedFrames=0
local score=0 local score=0
target=validSet:get_label(c) target=validSet:get_label(c)
......
-- use: savePaths listfile_real listfile_attack outputfile -- use: torch saveVAD.lua listfile_real listfile_attack outputfile
vad_table={} vad_table={}
for l in io.lines(arg[1]) do for l in io.lines(arg[1]) do
......
...@@ -13,7 +13,7 @@ function SpeechDataset:__init(config) ...@@ -13,7 +13,7 @@ function SpeechDataset:__init(config)
self.label=torch.load(config.labelfile); self.label=torch.load(config.labelfile);
print("data loaded") print("data loaded")
self.path = nil self.path = nil
if config.pathfile ~= nil then if config.pathfile ~= "" then
self.path = torch.load(config.pathfile) self.path = torch.load(config.pathfile)
end end
...@@ -224,7 +224,7 @@ end ...@@ -224,7 +224,7 @@ end
function SpeechDataset:get_path(k) function SpeechDataset:get_path(k)
if self.path == nil then if self.path == nil then
return nil return ""
end end
return self.path[self.map[k][1]] return self.path[self.map[k][1]]
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment