text
text copied to clipboard
NameError: name 'CriterionType' is not defined
I am trying to decode a fine-tuned ASR model,fine-tuned using the vakyansh toolkit using the this script and the following command line:-
python ../../utils/inference/infer.py ${data_path} --task audio_pretraining
--nbest 1 --path ${checkpoint_path} --gen-subset ${subset} --results-path ${result_path} --w2l-decoder viterbi
--lm-weight 2 --word-score -1 --sil-weight 0 --criterion ctc --labels ltr --max-tokens 6000000
--post-process letter --model-overrides "{'w2v_path':'${pretrained_model_path}'}"
But it is showing the following error:-
Traceback (most recent call last):
File "../../utils/inference/infer.py", line 428, in
@tlikhomanenko, I am also facing the same problem. Can you please suggest a solution to this?