Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

遇到了一点问题,不是很明白 #842

Open
ooooolong opened this issue Dec 19, 2024 · 2 comments
Open

遇到了一点问题,不是很明白 #842

ooooolong opened this issue Dec 19, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@ooooolong
Copy link

ooooolong commented Dec 19, 2024

我的error如下:

no GPU or NPU found, use CPU instead
text:   0%|          | 1/384(max) [00:00,  9.46it/s]We detected that you are passing `past_key_values` as a tuple of tuples. This is deprecated and will be removed in v4.47. Please convert your cache or use an appropriate `Cache` class (https://huggingface.co/docs/transformers/kv_cache#legacy-cache-format)
text:   1%|▏         | 5/384(max) [00:00, 16.68it/s]
code:   1%|          | 17/2048(max) [00:00, 31.02it/s]
Traceback (most recent call last):
  File "E:\24work\finalWork\ChatTTS\inference.py", line 29, in <module>
    torchaudio.save("output1.wav", torch.from_numpy(wavs[0]), 24000)
  File "E:\Anaconda\Lib\site-packages\torchaudio\_backend\utils.py", line 312, in save
    backend = dispatcher(uri, format, backend)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Anaconda\Lib\site-packages\torchaudio\_backend\utils.py", line 222, in dispatcher
    raise RuntimeError(f"Couldn't find appropriate backend to handle uri {uri} and format {format}.")
RuntimeError: Couldn't find appropriate backend to handle uri output1.wav and format None.

我有两点疑问:
1、
image
wo'de我的compile参数已经设置成了True,为什么依然无法使用GPU呢?我的电脑是存在GPU的,难道compile参数不是用于启用GPU加速运算的吗?

2、即主要的Runtimeerror的报错!
略急!期待你的回复!感谢!!!

@ooooolong
Copy link
Author

抱歉,出于我的疏忽,我的torch装的是2.5.1+cpu版本,但是关于runtimeerror我依然没解决

@fumiama
Copy link
Member

fumiama commented Jan 7, 2025

安装ffmpeg相关库。

@fumiama fumiama added the documentation Improvements or additions to documentation label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants