From f8707d7e06cc24d1ca683be9a66cd86474a5c78a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 May 2024 19:21:55 +0900 Subject: [PATCH] remove unrelated changes --- docs/requirements.txt | 3 +++ egs/librispeech/ASR/zipformer/pretrained.py | 10 +--------- 2 files changed, 4 insertions(+), 9 deletions(-) create mode 100644 docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000000..925a31089a --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,3 @@ +sphinx_rtd_theme +sphinx +sphinxcontrib-youtube==1.1.0 diff --git a/egs/librispeech/ASR/zipformer/pretrained.py b/egs/librispeech/ASR/zipformer/pretrained.py index ab6216e26c..de06528932 100755 --- a/egs/librispeech/ASR/zipformer/pretrained.py +++ b/egs/librispeech/ASR/zipformer/pretrained.py @@ -111,7 +111,6 @@ 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 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")