From f65f76793ab4011745f75e4a57579d31a387e7bb Mon Sep 17 00:00:00 2001 From: pengzhendong <275331498@qq.com> Date: Thu, 8 Jan 2026 13:40:20 +0800 Subject: [PATCH] install funasr from pypi --- decode.py | 4 +++- demo1.py | 4 +++- docs/finetune.md | 2 +- docs/fintune_zh.md | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/decode.py b/decode.py index 61fd4ba..e3f3ccb 100644 --- a/decode.py +++ b/decode.py @@ -2,7 +2,6 @@ import os import hydra import torch -from funasr import AutoModel from omegaconf import DictConfig, ListConfig, OmegaConf @@ -28,6 +27,9 @@ def main_hydra(cfg: DictConfig): if torch.backends.mps.is_available() else "cpu" ) + + from funasr import AutoModel + model = AutoModel( model=model_dir, trust_remote_code=True, diff --git a/demo1.py b/demo1.py index f99181f..19cc270 100644 --- a/demo1.py +++ b/demo1.py @@ -1,5 +1,4 @@ import torch -from funasr import AutoModel def main(): @@ -11,6 +10,9 @@ def main(): if torch.backends.mps.is_available() else "cpu" ) + + from funasr import AutoModel + model = AutoModel( model=model_dir, trust_remote_code=True, diff --git a/docs/finetune.md b/docs/finetune.md index 563c6ce..d4fc6a3 100644 --- a/docs/finetune.md +++ b/docs/finetune.md @@ -5,7 +5,7 @@ ## Requirements ``` -pip install git+https://github.com/modelscope/FunASR +pip install funasr>=1.3.0 ``` ## Data Prepare diff --git a/docs/fintune_zh.md b/docs/fintune_zh.md index 5a621e5..25e8394 100644 --- a/docs/fintune_zh.md +++ b/docs/fintune_zh.md @@ -5,7 +5,7 @@ ## 安装训练环境 ``` -pip install git+https://github.com/modelscope/FunASR +pip install funasr>=1.3.0 ``` ## 数据准备