Comments (2)
I receive an error trying to decode using ctc-decoding
ctc-decoding
is tested with a model using vocab size 500. To fix
[F] /usr/share/miniconda/envs/k2/conda-bld/k2_1631619831677/work/k2/csrc/array.h:501:void k2::Array1<T>::Init(k2::ContextPtr, int32_t, k2::Dtype) [with T = char; k2::ContextPtr = std::shared_ptr<k2::Context>; int32_t = int] Check failed: size >= 0 (-1383015021 vs. 0) Array size MUST be greater than or equal to 0, given :-1383015021
please change
to
modified=True,
if you are using a model with vocab size 5000.
Also, you may need to reduce the value of --max-duration
.
(Currently, you are using 300. It is OK for a model with vocab size 500).
Sorry that this is not documented. There is an ongoing PR to fix it (https://github.com/k2-fsa/icefall/pull/91/files)
and there are discussions about it (#70 (comment))
As for the second error,
_pickle.UnpicklingError: invalid load key, 'v'
I think you skipped an essential step listed in https://icefall.readthedocs.io/en/latest/recipes/librispeech/conformer_ctc.html#download-the-pre-trained-model
git lfs install
To fix that, please first install git-lfs
(using sudo apt-get install git-lfs
if you are using Ubuntu),
go to the pre-trained model repo
and run
cd icefall_asr_librispeech_conformer_ctc
git lfs pull
After that, everything should work.
BTW, please use the pre-trained model in https://github.com/csukuangfj/icefall-asr-conformer-ctc-bpe-500
to test ctc-decoding if you don't modify any code.
from icefall.
Thank you this worked!
from icefall.
Related Issues (20)
- Feature extraction for 5000 hours of data HOT 4
- Plans to make installation simpler HOT 14
- How to use an external RNN-LM (mono-lingual) with a bilingual ASR? HOT 3
- json.decoder.JSONDecodeError,when I run wenetspeech prepare.sh HOT 1
- kaldi经典的强制对齐算法怎么在k2实现呢 HOT 1
- export a non-stream onnx model from a streaming pytorch model HOT 6
- A question about the data preparation on AMI corpus HOT 9
- Decoding conformer_ctc trained on TIMIT with ctc-decoding HOT 24
- 关于wenetspeech的指标是不是有一点问题 HOT 5
- What is the purpose of --lr-hours config in LibriHeavy recipe? HOT 2
- Using a BTC/OTC in the training Zipformer instead of Conformer. HOT 10
- Decoding Issue: fast beam search nbest LG HOT 1
- Is there any recipe for a Spanish model? HOT 1
- Is it possible to do reverberation on the fly? HOT 9
- Mamba implementation under icefall HOT 1
- Seeking advice on parameter configuration and settings for large-scale ASR models HOT 1
- initial decoder input in onnx decoding results in deletion errors HOT 1
- 使用sherpa-onnx-streaming-zipformer-ctc-multi-zh-hans-2023-12-13模型进行语音识别,每次重新启动时都有首字不能识别的问题。 HOT 1
- Decoding using LM with Contextual biasing (Hotwords)
- Integrating Phone-Based lang (Lexicon ) into Zipformer Model HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icefall.