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

人声伴奏分离批量处理, 使用UVR5模型。 #1261

Open
plasx520 opened this issue Jun 30, 2024 · 1 comment
Open

人声伴奏分离批量处理, 使用UVR5模型。 #1261

plasx520 opened this issue Jun 30, 2024 · 1 comment

Comments

@plasx520
Copy link

image

Screenrecording_20240630_12165703kdqlbt.mp3.reformatted.wav->Traceback (most recent call last): File "C:\Users\plasx\Desktop\GPT-SoVITS-beta0217fix3\tools\uvr5\webui.py", line 81, in uvr pre_fun._path_audio_( File "C:\Users\plasx\Desktop\GPT-SoVITS-beta0217fix3\tools\uvr5\vr.py", line 121, in _path_audio_ wav_instrument = spec_utils.cmb_spectrogram_to_wave( File "C:\Users\plasx\Desktop\GPT-SoVITS-beta0217fix3\tools\uvr5\lib\lib_v5\spec_utils.py", line 400, in cmb_spectrogram_to_wave wave = librosa.resample( File "C:\Users\plasx\Desktop\GPT-SoVITS-beta0217fix3\runtime\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f return f(*args, **kwargs) File "C:\Users\plasx\Desktop\GPT-SoVITS-beta0217fix3\runtime\lib\site-packages\librosa\core\audio.py", line 606, in resample util.valid_audio(y, mono=False) File "C:\Users\plasx\Desktop\GPT-SoVITS-beta0217fix3\runtime\lib\site-packages\librosa\util\decorators.py", line 88, in inner_f return f(*args, **kwargs) File "C:\Users\plasx\Desktop\GPT-SoVITS-beta0217fix3\runtime\lib\site-packages\librosa\util\utils.py", line 294, in valid_audio raise ParameterError("Audio buffer is not finite everywhere") librosa.util.exceptions.ParameterError: Audio buffer is not finite everywhere

@SapphireLab
Copy link
Contributor

这个报错一般是对语音处理时, 判断到数据中存在无穷或者 NaN,即不是所有值都有限。
可能的解决方案:

  • 一般要检查一下你的语音文件有没有损坏。
    • 如果文件很大也可以先切分再做 UVR 这步,也可以定位出哪个语音片段有问题。
    • 也可能是 UVR5 代码的问题(毕竟他们仓库下面一大堆这个问题且无明确解决方案),这个需要后续看看能不能复现到。
  • 可以使用 UVR5 单独的客户端,可能就正常了。(具体可以参考文档

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants