aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin2023-07-04 19:38:19 +0200
committerGitHub2023-07-04 19:38:19 +0200
commita48652dfd83f81c1acd1cdad37ce8c631bafb2f6 (patch)
tree79b30da0c3097a8b8a8e136e163cad52d4837f46
parentc4f567fc97741c26cbd4c51d8927bdd1ca579d82 (diff)
parentdbd399496587cf84b09af92e07b89c36c8f695ad (diff)
Merge pull request #2 from derNarr/fix-inferHEADmain
tuple in inferrence should have six elements as well
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index f278846..f8e54da 100644
--- a/main.py
+++ b/main.py
@@ -169,7 +169,7 @@ def test():
def infer(file_):
model.load_state_dict(torch.load("target/model-final.ckpt"))
wav, sr = torchaudio.load(file_)
- inputs = preprocess([(wav, sr, "")])[0]
+ inputs = preprocess([(wav, sr, "", None, None, None)])[0]
with torch.no_grad():
outputs = model(inputs)
inferred = ctc_decode(outputs)