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

Small modifications

parent f20aebeb
......@@ -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)
......
-- 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
......
......@@ -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
......
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