-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Quick Solution
-
python version:
3.8
|3.9
-
pip source:
https://pypi.org
(default)
Here are some problems that occurred in the previous issues. Due to the updating of dependency packages and code, these contents have certain timeliness.
这里是一些在issues中被提出过的问题,因为依赖与代码的更新,这些内容具有一定的时效性
This error is due to an update that add a new feature, which is controled by all_in_mem
in config.json
. The config.json
in your preprocessed dataset saved previously did not include this key.
这个错误是由于添加了一个新功能,且由config.json
中的all_in_mem
来控制,之前保存的预处理完的数据集中的config.json
没有包含这个键。
-
-
Update your
config.json
by executingpython preprocess_flist_config.py
. Note: It will also generate a newfilelist/train.txt
执行python preprocess_flist_config.py
来更新config.json
。注意:此操作会同时生成一个新的filelist/train.txt
-
So it is more recommended to add a
all_in_mem
inconfig.json
manually.
所以更建议手动添加一个all_in_mem
到config.json
-
"port": "8001",
- "keep_ckpts": 3
+ "keep_ckpts": 3,
+ "all_in_mem": false
},
"data": {
This error is due to the n_speaker
in config.json
does not match the actual number of speaker embidding weight in models(G_0.pth, D_0.pth).
这个错误是config.json
中的n_speaker
与模型中说话人的数量对不上而导致的
This is likely because you are training with a model that has been used by others.
这很可能是因为你正在使用一份被别人使用过的模型来训练
-
-
output with shape[*,256] doesn't match the broadcast shape[200,256]
- Set the
n_speaker
inconfig.json
to200
, and so on if there is another number.
把config.json
里的n_speaker
改成200
,如果是其他数字则以此类推
- Set the
-
output with shape[*,256] doesn't match the broadcast shape[2,256]
- Set the
n_speaker
inconfig.json
to2
, and so on if there is another number.
把config.json
里的n_speaker
改成2
,如果是其他数字则以此类推
- Set the
-
Traceback (most recent call last):
File "train.py", line 435, in <module>
main()
File "train.py", line 59, in main
cpurun(0, 1, hps)
File "train.py", line 174, in cpurun
train_and_evaluate(rank, epoch, hps, [net_g, net_d], [optim_g, optim_d], [scheduler_g, scheduler_d],
File "train.py", line 219, in train_and_evaluate
pred_lf0, loss_f0, norm_f0 = net_g(c, c_lengths, f0,uv, mel, mel_lengths, spk_id=spkid)
File "C:\Users\29099\.conda\envs\vits4.0v2\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "G:\so-vits-svc\models.py", line 985, in forward
noise_x = self.dec_noise(p_z, y_mask)
File "C:\Users\29099\.conda\envs\vits4.0v2\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "G:\so-vits-svc\models.py", line 621, in forward
istft_x = torch.istft(spec, self.fft_size, self.hop_size, self.win_size, self.window.to(amp), False,
RuntimeError: istft requires a complex-valued input tensor matching the output from stft with return_complex=True.
-
- Try not to use
pytorch 2.0
.
尝试不使用pytorch 2.0
- Try not to use
Process Process-1:
Traceback (most recent call last):
File "init.pxd", line 943, in numpy.import_array
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem .
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/anaconda3/envs/sovits/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/data/anaconda3/envs/sovits/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/data/home/gxl/so-vits-svc/preprocess_hubert_f0.py", line 44, in process_batch
process_one(filename, hmodel)
File "/data/home/gxl/so-vits-svc/preprocess_hubert_f0.py", line 34, in process_one
f0 = utils.compute_f0_dio(wav, sampling_rate=sampling_rate, hop_length=hop_length)
File "/data/home/gxl/so-vits-svc/utils.py", line 156, in compute_f0_dio
import pyworld
File "/data/anaconda3/envs/sovits/lib/python3.8/site-packages/pyworld/init.py", line 7, in
from .pyworld import *
File "pyworld/pyworld.pyx", line 6, in init pyworld.pyworld
File "init.pxd", line 945, in numpy.import_array
ImportError: numpy.core.multiarray failed to import
-
pip install numpy==1.23.5
pip install -U scipy librosa numba
-
pip install numpy==1.23.5
if numpy is overwrote