downloading model twice and docs

This commit is contained in:
游雁 2023-08-08 18:58:33 +08:00
parent 3f372b7ded
commit 9ad4790553
11 changed files with 12 additions and 10 deletions

View File

@ -11,6 +11,7 @@ def modelscope_infer(args):
model=args.model,
output_dir=args.output_dir,
batch_size=args.batch_size,
update_model=False,
param_dict={"decoding_model": args.decoding_mode, "hotword": args.hotword_txt}
)
inference_pipeline(audio_in=args.audio_in)

View File

@ -1 +1 @@
../TEMPLATE/README_zh.md
../../TEMPLATE/README_zh.md

View File

@ -1 +1 @@
../TEMPLATE/README_zh.md
../../TEMPLATE/README_zh.md

View File

@ -1 +1 @@
../TEMPLATE/README_zh.md
../../TEMPLATE/README_zh.md

View File

@ -20,7 +20,8 @@ def modelscope_infer_core(output_dir, split_dir, njob, idx):
task=Tasks.auto_speech_recognition,
model="damo/speech_paraformer-tiny-commandword_asr_nat-zh-cn-16k-vocab544-pytorch",
output_dir=output_dir_job,
batch_size=64
batch_size=64,
update_model=False,
)
audio_in = os.path.join(split_dir, "wav.{}.scp".format(idx))
inference_pipeline(audio_in=audio_in)

View File

@ -1 +1 @@
../TEMPLATE/README_zh.md
../../TEMPLATE/README_zh.md

View File

@ -1 +1 @@
../TEMPLATE/README_zh.md
../../TEMPLATE/README_zh.md

View File

@ -1 +1 @@
../TEMPLATE/README_zh.md
../../TEMPLATE/README_zh.md

View File

@ -1 +1 @@
../TEMPLATE/README_zh.md
../../TEMPLATE/README_zh.md

View File

@ -1 +1 @@
../TEMPLATE/README.md
../../TEMPLATE/README.md

View File

@ -1 +1 @@
../TEMPLATE/README_zh.md
../../TEMPLATE/README_zh.md