Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offline-nemo-enc-dec-ctc-model.cc:Init:98 'normalize_type' does not exist in the metadata #670

Closed
dev-shvetsov opened this issue Nov 3, 2024 · 3 comments

Comments

@dev-shvetsov
Copy link

dev-shvetsov commented Nov 3, 2024

Hey.

I did https://k2-fsa.github.io/sherpa/onnx/install/macos.html , but got
sherpa-onnx/csrc/offline-nemo-enc-dec-ctc-model.cc:Init:98 'normalize_type' does not exist in the metadata
when ran

cd /path/to/sherpa-onnx

./build/bin/sherpa-onnx-offline \
  --nemo-ctc-model=./sherpa-onnx-nemo-ctc-giga-am-russian-2024-10-24/model.int8.onnx \
  --tokens=./sherpa-onnx-nemo-ctc-giga-am-russian-2024-10-24/tokens.txt \
  ./sherpa-onnx-nemo-ctc-giga-am-russian-2024-10-24/test_wavs/example.wav

from here https://k2-fsa.github.io/sherpa/onnx/pretrained_models/offline-ctc/nemo/russian.html .

Can someone help, please?

Full log:

OfflineRecognizerConfig(feat_config=FeatureExtractorConfig(sampling_rate=16000, feature_dim=80, low_freq=20, high_freq=-400, dither=0), model_config=OfflineModelConfig(transducer=OfflineTransducerModelConfig(encoder_filename="", decoder_filename="", joiner_filename=""), paraformer=OfflineParaformerModelConfig(model=""), nemo_ctc=OfflineNemoEncDecCtcModelConfig(model="./sherpa-onnx-nemo-ctc-giga-am-russian-2024-10-24/model.int8.onnx"), whisper=OfflineWhisperModelConfig(encoder="", decoder="", language="", task="transcribe", tail_paddings=-1), tdnn=OfflineTdnnModelConfig(model=""), zipformer_ctc=OfflineZipformerCtcModelConfig(model=""), wenet_ctc=OfflineWenetCtcModelConfig(model=""), sense_voice=OfflineSenseVoiceModelConfig(model="", language="auto", use_itn=False), moonshine=OfflineMoonshineModelConfig(preprocessor="", encoder="", uncached_decoder="", cached_decoder=""), telespeech_ctc="", tokens="./sherpa-onnx-nemo-ctc-giga-am-russian-2024-10-24/tokens.txt", num_threads=2, debug=False, provider="cpu", model_type="", modeling_unit="cjkchar", bpe_vocab=""), lm_config=OfflineLMConfig(model="", scale=0.5), ctc_fst_decoder_config=OfflineCtcFstDecoderConfig(graph="", max_active=3000), decoding_method="greedy_search", max_active_paths=4, hotwords_file="", hotwords_score=1.5, blank_penalty=0, rule_fsts="", rule_fars="")
Creating recognizer ...
./sherpa-onnx/sherpa-onnx/csrc/offline-nemo-enc-dec-ctc-model.cc:Init:98 'normalize_type' does not exist in the metadata

Thank you

@dev-shvetsov
Copy link
Author

@csukuangfj
Copy link
Collaborator

csukuangfj commented Nov 3, 2024

Fixed by k2-fsa/sherpa-onnx#1509

@dev-shvetsov
Copy link
Author

omg; works; ty man @csukuangfj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants