whisper-large-v2-turbo

This commit is contained in:
游雁 2024-10-11 14:29:49 +08:00
parent b207ac3dda
commit ad6673a529
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@
from funasr import AutoModel
model = AutoModel(
model="iic/Whisper-large-v3",
model="Whisper-large-v3-turbo",
vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",
vad_kwargs={"max_single_segment_time": 30000},
)

View File

@ -12,8 +12,8 @@ from funasr import AutoModel
# model = AutoModel(model="Whisper-large-v2", hub="openai")
model = AutoModel(
model="Whisper-large-v3-turbo",
# vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",
# vad_kwargs={"max_single_segment_time": 30000},
vad_model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch",
vad_kwargs={"max_single_segment_time": 30000},
hub="openai",
)

View File

@ -54,7 +54,7 @@ def main_hydra(cfg: DictConfig):
chinese_name=model_name,
)
except Exception as e:
print(f"Create_model failed! {str(e)}, {traceback.format_exc()}")
print(f"Create_model failed! {str(e)}")
print(f"model url: https://modelscope.cn/models/{model_id}")
@ -70,7 +70,7 @@ def main_hydra(cfg: DictConfig):
"""
TOKEN="fadd1abb-4df6-4807-9051-5ab01ac81071"
model_id="iic/Whisper-large-v3-turbo"
model_dir="/Users/zhifu/Downloads/Whisper-large-v3-turbo"
model_dir="/cpfs_speech/zhifu.gzf/init_model/Whisper-large-v3-turbo"
python -m funasr.download.upload_model ++TOKEN=${TOKEN} ++model_id=${model_id} ++model_dir=${model_dir}
"""