鱼C论坛

 找回密码
 立即注册
查看: 1027|回复: 1

insanely-fast-whisper 的告警如下,该怎么弄呢?

[复制链接]
发表于 2024-1-1 20:20:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x


insanely-fast-whisper --file-name test.mp3

/root/.local/share/pipx/venvs/insanely-fast-whisper/lib/python3.10/site-packages/pyannote/audio/core/io.py:43: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call.
  torchaudio.set_audio_backend("soundfile")
/root/.local/share/pipx/venvs/insanely-fast-whisper/lib/python3.10/site-packages/torch_audiomentations/utils/io.py:27: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call.
  torchaudio.set_audio_backend("soundfile")
Traceback (most recent call last):
  File "/root/.local/bin/insanely-fast-whisper", line 8, in <module>
    sys.exit(main())
  File "/root/.local/share/pipx/venvs/insanely-fast-whisper/lib/python3.10/site-packages/insanely_fast_whisper/cli.py", line 94, in main
    pipe = pipeline(
  File "/root/.local/share/pipx/venvs/insanely-fast-whisper/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 967, in pipeline
    tokenizer = AutoTokenizer.from_pretrained(
  File "/root/.local/share/pipx/venvs/insanely-fast-whisper/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 787, in from_pretrained
    return tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
  File "/root/.local/share/pipx/venvs/insanely-fast-whisper/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2028, in from_pretrained
    return cls._from_pretrained(
  File "/root/.local/share/pipx/venvs/insanely-fast-whisper/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2260, in _from_pretrained
    tokenizer = cls(*init_inputs, **init_kwargs)
  File "/root/.local/share/pipx/venvs/insanely-fast-whisper/lib/python3.10/site-packages/transformers/models/whisper/tokenization_whisper_fast.py", line 166, in __init__
    super().__init__(
  File "/root/.local/share/pipx/venvs/insanely-fast-whisper/lib/python3.10/site-packages/transformers/tokenization_utils_fast.py", line 111, in __init__
    fast_tokenizer = TokenizerFast.from_file(fast_tokenizer_file)
Exception: EOF while parsing a value at line 1 column 0
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2024-1-1 20:20:54 | 显示全部楼层
这个告警信息是由于使用的库中的特定函数已被弃用而导致的。不过,它并不会影响程序的正常运行。如果你确定程序可以正常工作,你可以忽略这些告警。

若想消除这些告警,可以尝试更新相关的库文件。在终端中执行以下命令:
pip install --upgrade torchaudio transformers

如果更新后仍然出现这些告警,可以尝试修改代码,将`torchaudio.set_audio_backend("soundfile")`这行代码注释掉或删除。这行代码是设置音频后端的,但在最新版本的库中已经不再需要,因此可以移除。

希望这些解决方案能够帮助你解决问题!

以上回复来自 FishC AI 小助理,如未能正确解答您的问题,请继续追问。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-9-21 21:43

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表