mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-27 02:34:21 +00:00
remove unrelated changes
This commit is contained in:
parent
8edd9bd72b
commit
f8707d7e06
3
docs/requirements.txt
Normal file
3
docs/requirements.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
sphinx_rtd_theme
|
||||||
|
sphinx
|
||||||
|
sphinxcontrib-youtube==1.1.0
|
@ -111,7 +111,6 @@ Note: ./zipformer/exp/pretrained.pt is generated by ./zipformer/export.py
|
|||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import math
|
import math
|
||||||
import time
|
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
import k2
|
import k2
|
||||||
@ -315,8 +314,6 @@ def main():
|
|||||||
waves = [w.to(device) for w in waves]
|
waves = [w.to(device) for w in waves]
|
||||||
|
|
||||||
logging.info("Decoding started")
|
logging.info("Decoding started")
|
||||||
start_time = time.time()
|
|
||||||
|
|
||||||
features = fbank(waves)
|
features = fbank(waves)
|
||||||
feature_lengths = [f.size(0) for f in features]
|
feature_lengths = [f.size(0) for f in features]
|
||||||
|
|
||||||
@ -370,11 +367,6 @@ def main():
|
|||||||
else:
|
else:
|
||||||
raise ValueError(f"Unsupported method: {params.method}")
|
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"
|
s = "\n"
|
||||||
for filename, hyp in zip(params.sound_files, hyps):
|
for filename, hyp in zip(params.sound_files, hyps):
|
||||||
s += f"{filename}:\n{hyp}\n\n"
|
s += f"{filename}:\n{hyp}\n\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user