remove unrelated changes

This commit is contained in:
root 2024-05-02 19:21:55 +09:00
parent 8edd9bd72b
commit f8707d7e06
2 changed files with 4 additions and 9 deletions

3
docs/requirements.txt Normal file
View File

@ -0,0 +1,3 @@
sphinx_rtd_theme
sphinx
sphinxcontrib-youtube==1.1.0

View File

@ -111,7 +111,6 @@ Note: ./zipformer/exp/pretrained.pt is generated by ./zipformer/export.py
import argparse
import logging
import math
import time
from typing import List
import k2
@ -315,8 +314,6 @@ def main():
waves = [w.to(device) for w in waves]
logging.info("Decoding started")
start_time = time.time()
features = fbank(waves)
feature_lengths = [f.size(0) for f in features]
@ -369,17 +366,12 @@ def main():
hyps.append(token_ids_to_words(hyp))
else:
raise ValueError(f"Unsupported method: {params.method}")
end_time = time.time()
elapsed_seconds = end_time - start_time
logging.info(f"elapsed seconds:, {elapsed_seconds}")
s = "\n"
for filename, hyp in zip(params.sound_files, hyps):
s += f"{filename}:\n{hyp}\n\n"
logging.info(s)
logging.info("Decoding Done")