FunAudioLLM / SenseVoice

Multilingual Voice Understanding Model
https://funaudiollm.github.io/
Other
3.34k stars 307 forks source link

执行 python .\demo_funasr.py 报错 ImportError: cannot import name 'rich_transcription_postprocess' from 'funasr.utils.postprocess_utils' 是怎么回事 #39

Closed anstonjie closed 3 months ago

anstonjie commented 3 months ago

(venv) PS E:\ai3\SenseVoice> python .\demo_funasr.py Traceback (most recent call last): File "E:\ai3\SenseVoice\demo_funasr.py", line 7, in from funasr.utils.postprocess_utils import rich_transcription_postprocess ImportError: cannot import name 'rich_transcription_postprocess' from 'funasr.utils.postprocess_utils' (E:\ai3\SenseVoice\venv\lib\site-packages\funasr\utils\postprocess_utils.py) (venv) PS E:\ai3\SenseVoice>

lucasjinreal commented 3 months ago

ImportError: cannot import name 'rich_transcription_postprocess' from 'funasr.utils.postprocess_utils'

Snailgoo commented 3 months ago

ImportError: cannot import name 'rich_transcription_postprocess' from 'funasr.utils.postprocess_utils'

lucasjinreal commented 3 months ago

@LauraGPT

badarrrr commented 3 months ago

ImportError: cannot import name 'rich_transcription_postprocess' from 'funasr.utils.postprocess_utils' (/root/miniconda3/lib/python3.9/site-packages/funasr/utils/postprocess_utils.py)

v3ucn commented 3 months ago

pip install funasr==1.1.1

lucasjinreal commented 3 months ago

Why not update your code but force users to using an older funasr? I am quite unable to understand.

v3ucn commented 3 months ago

Why not update your code but force users to using an older funasr? I am quite unable to understand.

I guess it's because big versions may not be backward compatible with each other

lucasjinreal commented 3 months ago

I guess what I mean is that why not update your code...

lucasjinreal commented 3 months ago

Oh, this is a merge, so I guess what I mean is why you not write pip install funasr>=1.1.1 and attach a time when does this version comes to pypi?

At the time I post the issue, the latest version is old.

anstonjie commented 3 months ago

thank you i run pip install funasr==1.1.1 is ok

At 2024-07-16 14:15:40, "刘悦" @.***> wrote:

Why not update your code but force users to using an older funasr? I am quite unable to understand.

I guess it's because big versions may not be backward compatible with each other

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

anstonjie commented 3 months ago

thank you

At 2024-07-16 14:22:03, "MagicSource" @.***> wrote:

Oh, this is a merge, so I guess what I mean is why you not write pip install funasr>=1.1.1 and attach a time when does this version comes to pypi?

At the time I post the issue, the latest version is old.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>