This commit is contained in:
Joseph Keshet
2016-07-03 09:56:29 +03:00
parent e5be2a7978
commit ec22f6a446
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ from helpers.textgrid import *
from helpers.utilities import *
import shutil
def predict_from_times(wav_filename, preds_filename, begin, end):
tmp_features_filename = tempfile._get_default_tempdir() + "/" + next(tempfile._get_candidate_names()) + ".txt"
print tmp_features_filename
+1 -1
View File
@@ -35,7 +35,7 @@ for line in f_file:lines('*l') do
end
end
local X = data[{{},{2,-1}}]
model = torch.load('Tracking_model.dat')
model = torch.load('tracking_model.dat')
local myPrediction = model:forward(X)
p_file:write('NAME,F1,F2,F3,F4\n')
for p=1, (#myPrediction)[1] do