diff options
author | Marvin | 2023-07-04 19:38:19 +0200 |
---|---|---|
committer | GitHub | 2023-07-04 19:38:19 +0200 |
commit | a48652dfd83f81c1acd1cdad37ce8c631bafb2f6 (patch) | |
tree | 79b30da0c3097a8b8a8e136e163cad52d4837f46 | |
parent | c4f567fc97741c26cbd4c51d8927bdd1ca579d82 (diff) | |
parent | dbd399496587cf84b09af92e07b89c36c8f695ad (diff) |
tuple in inferrence should have six elements as well
-rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |