From 1aef1f085840bafc0b574619364e6ac2c6b11618 Mon Sep 17 00:00:00 2001 From: huangyuxin Date: Mon, 18 Oct 2021 02:03:09 +0000 Subject: [PATCH 1/2] fix the bug of import ctc decoder --- deepspeech/modules/ctc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deepspeech/modules/ctc.py b/deepspeech/modules/ctc.py index 1f9886752..565a11e15 100644 --- a/deepspeech/modules/ctc.py +++ b/deepspeech/modules/ctc.py @@ -23,9 +23,9 @@ from deepspeech.utils.log import Log logger = Log(__name__).getlog() try: - from deepspeech.decoders.swig_wrapper import ctc_beam_search_decoder_batch # noqa: F401 - from deepspeech.decoders.swig_wrapper import ctc_greedy_decoder # noqa: F401 - from deepspeech.decoders.swig_wrapper import Scorer # noqa: F401 + from deepspeech.decoders.ctcdecoder.swig_wrapper import ctc_beam_search_decoder_batch # noqa: F401 + from deepspeech.decoders.ctcdecoder.swig_wrapper import ctc_greedy_decoder # noqa: F401 + from deepspeech.decoders.ctcdecoder.swig_wrapper import Scorer # noqa: F401 except Exception as e: logger.info("ctcdecoder not installed!") From 55654ee335e50c06f5699c167f01d1f2a4cebf8c Mon Sep 17 00:00:00 2001 From: huangyuxin Date: Tue, 19 Oct 2021 02:40:59 +0000 Subject: [PATCH 2/2] fix the bug of doc in benchmark --- tests/benchmark/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/benchmark/README.md b/tests/benchmark/README.md index 411f89dad..71d5f91b8 100644 --- a/tests/benchmark/README.md +++ b/tests/benchmark/README.md @@ -1,5 +1,5 @@ ### Prepare the environment -Please follow the instructions shown in [here](https://github.com/PaddlePaddle/DeepSpeech/blob/develop/docs/src/install.md) to install the Deepspeech first. +Please follow the instructions shown in [here](../../docs/source/install.md) to install the Deepspeech first. ### File list └── benchmark # 模型名