RVC-Project / Retrieval-based-Voice-Conversion-WebUI

Easily train a good VC model with voice data <= 10 mins!
MIT License
23.25k stars 3.49k forks source link

人声伴奏分离时报错:TypeError: load() takes 1 positional argument but 3 positional arguments (and 2 keyword-only arguments) were given #1961

Open liangcaodba opened 5 months ago

liangcaodba commented 5 months ago

Traceback (most recent call last): File "/Users/tal/Documents/Retrieval-based-Voice-Conversion-WebUI/infer/modules/uvr5/modules.py", line 55, in uvr pre_fun._pathaudio( File "/Users/tal/Documents/Retrieval-based-Voice-Conversion-WebUI/infer/modules/uvr5/vr.py", line 63, in _pathaudio ) = librosa.core.load( # 理论上librosa读取可能对某些音频有bug,应该上ffmpeg读取,但是太麻烦了弃坑 TypeError: load() takes 1 positional argument but 3 positional arguments (and 2 keyword-only arguments) were given ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developers built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)

arbaz686 commented 3 months ago

There is a mismatch between the arguments provided to the librosa.core.load function and what the function expects. This is likely due to an update in the librosa library that has changed the function's signature.

Check the arguments of librosa.load - (If librosa has been updated, the expected arguments might have changed.)

  1. path
  2. sr
  3. mono