[GH-ISSUE #2581] 分离用fox的那个模型出错 #1838

Open
opened 2026-10-20 10:12:31 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @wfq1971 on GitHub (May 23, 2025).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2581

(most recent call last): File "/workspace/rvc/infer/modules/uvr5/modules.py", line 72, in uvr pre_fun.path_audio( File "/workspace/rvc/infer/modules/uvr5/mdxnet.py", line 240, in path_audio self.pred.prediction(input, vocal_root, others_root, format) File "/workspace/rvc/infer/modules/uvr5/mdxnet.py", line 209, in prediction save_audio( File "/workspace/rvc/infer/lib/audio.py", line 47, in save_audio buf = float_np_array_to_wav_buf(audio, sr, f32) File "/workspace/rvc/infer/lib/audio.py", line 35, in float_np_array_to_wav_buf wavfile.write(buf, sr, wav.astype(np.float32)) File "/root/miniconda3/lib/python3.10/site-packages/scipy/io/wavfile.py", line 824, in write fmt_chunk_data = struct.pack('<HHIIHH', format_tag, channels, fs, TypeError: only integer scalar arrays can be converted to a scalar index

Originally created by @wfq1971 on GitHub (May 23, 2025). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2581 (most recent call last): File "/workspace/rvc/infer/modules/uvr5/modules.py", line 72, in uvr pre_fun._path_audio_( File "/workspace/rvc/infer/modules/uvr5/mdxnet.py", line 240, in _path_audio_ self.pred.prediction(input, vocal_root, others_root, format) File "/workspace/rvc/infer/modules/uvr5/mdxnet.py", line 209, in prediction save_audio( File "/workspace/rvc/infer/lib/audio.py", line 47, in save_audio buf = float_np_array_to_wav_buf(audio, sr, f32) File "/workspace/rvc/infer/lib/audio.py", line 35, in float_np_array_to_wav_buf wavfile.write(buf, sr, wav.astype(np.float32)) File "/root/miniconda3/lib/python3.10/site-packages/scipy/io/wavfile.py", line 824, in write fmt_chunk_data = struct.pack('<HHIIHH', format_tag, channels, fs, TypeError: only integer scalar arrays can be converted to a scalar index
Author
Owner

@wfq1971 commented on GitHub (May 23, 2025):

audio.txt我修改了audio.py,请更新一下

<!-- gh-comment-id:2903181863 --> @wfq1971 commented on GitHub (May 23, 2025): [audio.txt](https://github.com/user-attachments/files/20403733/audio.txt)我修改了audio.py,请更新一下
Author
Owner

@wfq1971 commented on GitHub (May 23, 2025):

(most recent call last):
File "/workspace/rvc/infer/modules/uvr5/modules.py", line 72, in uvr
pre_fun.path_audio(
File "/workspace/rvc/infer/modules/uvr5/vr.py", line 109, in path_audio
pred, X_mag, X_phase = inference(
File "/workspace/rvc/infer/lib/uvr5_pack/utils.py", line 70, in inference
pred = _execute(
File "/workspace/rvc/infer/lib/uvr5_pack/utils.py", line 41, in _execute
pred = model.predict(X_mag_window, aggressiveness)
File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1931, in getattr
raise AttributeError(
AttributeError: 'CascadedNet' object has no attribute 'predict'

<!-- gh-comment-id:2903211605 --> @wfq1971 commented on GitHub (May 23, 2025): (most recent call last): File "/workspace/rvc/infer/modules/uvr5/modules.py", line 72, in uvr pre_fun._path_audio_( File "/workspace/rvc/infer/modules/uvr5/vr.py", line 109, in _path_audio_ pred, X_mag, X_phase = inference( File "/workspace/rvc/infer/lib/uvr5_pack/utils.py", line 70, in inference pred = _execute( File "/workspace/rvc/infer/lib/uvr5_pack/utils.py", line 41, in _execute pred = model.predict(X_mag_window, aggressiveness) File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1931, in __getattr__ raise AttributeError( AttributeError: 'CascadedNet' object has no attribute 'predict'
Author
Owner

@wfq1971 commented on GitHub (May 23, 2025):

另外一个vr模型也出错了

<!-- gh-comment-id:2903212049 --> @wfq1971 commented on GitHub (May 23, 2025): 另外一个vr模型也出错了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#1838
No description provided.