Git Product home page Git Product logo

Comments (2)

csukuangfj avatar csukuangfj commented on September 22, 2024 1

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.

GarlandZhang avatar GarlandZhang commented on September 22, 2024

Thank you this worked!

from icefall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.