fix args.

This commit is contained in:
Joseph Keshet
2016-06-27 14:58:42 -05:00
parent 41f9796624
commit f9c9437c68
+1 -1
View File
@@ -23,7 +23,7 @@ def main(wav_filename, preds_filename, begin, end):
tmp_features_filename = tempfile._get_default_tempdir() + "/" + next(tempfile._get_candidate_names()) + ".txt"
print tmp_features_filename
if args.begin > 0.0 or args.end > 0.0:
if begin > 0.0 or end > 0.0:
features.create_features(wav_filename, tmp_features_filename, begin, end)
easy_call("th load_estimation_model.lua " + tmp_features_filename + ' ' + preds_filename)
else: