Skip to content

Commit

Permalink
remove unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed May 2, 2024
1 parent 8edd9bd commit f8707d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sphinx_rtd_theme
sphinx
sphinxcontrib-youtube==1.1.0
10 changes: 1 addition & 9 deletions egs/librispeech/ASR/zipformer/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
import argparse
import logging
import math
import time
from typing import List

import k2
Expand Down Expand Up @@ -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]

Expand Down Expand Up @@ -369,17 +366,12 @@ def token_ids_to_words(token_ids: List[int]) -> str:
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")


Expand Down

0 comments on commit f8707d7

Please sign in to comment.