mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
| .. | ||
| data | ||
| infer.py | ||
| README.md | ||
ModelScope Model
How to finetune and infer using a pretrained ModelScope Model
Inference
Or you can use the finetuned model for inference directly.
task=Tasks.punctuation, model='damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch',
- Setting parameters in
modelscope_common_infer.sh- model: damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch # pre-trained model, download from modelscope
- text_in: input path, text or url
- output_dir: the result dir
- Then you can run the pipeline to infer with:
python ./infer.py