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

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

IndexError: list index out of range #2127

Open dragonmastercale opened 3 months ago

dragonmastercale commented 3 months ago

When clicking on Train or one Click Train, I'm getting the following error, any help would be greatly appreciated!

Process Process-2: Traceback (most recent call last): File "F:\RVC\RVC1006Nvidia\infer\modules\train\train.py", line 213, in run utils.latest_checkpoint_path(hps.modeldir, "D*.pth"), net_d, optim_d File "F:\RVC\RVC1006Nvidia\infer\lib\train\utils.py", line 213, in latest_checkpoint_path x = f_list[-1] IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "multiprocessing\process.py", line 315, in _bootstrap File "multiprocessing\process.py", line 108, in run File "F:\RVC\RVC1006Nvidia\infer\modules\train\train.py", line 232, in run logger.info( UnboundLocalError: local variable 'logger' referenced before assignment INFO:JimiHendrixV2: INFO:JimiHendrixV2:loaded pretrained assets/pretrained_v2/f0D40k.pth INFO:JimiHendrixV2: F:\RVC\RVC1006Nvidia\runtime\lib\site-packages\torch\functional.py:641: UserWarning: stft with return_complex=False is deprecated. In a future pytorch release, stft will return complex tensors for all inputs, and return_complex=False will raise an error. Note: you can still call torch.view_as_real on the complex output to recover the old return format. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\SpectralOps.cpp:867.) return _VF.stft(input, n_fft, hop_length, win_length, window, # type: ignore[attr-defined]

wenluqi commented 1 day ago

im the I have the same problem

DEBUG:infer.lib.infer_pack.models:gin_channels: 256, self.spk_embed_dim: 109 Process Process-3: INFO:lxj-test-0:loaded pretrained assets/pretrained_v2/f0G48k.pth Traceback (most recent call last): File "/data/Retrieval-based-Voice-Conversion-WebUI-2.2.231006/infer/modules/train/train.py", line 213, in run utils.latest_checkpoint_path(hps.modeldir, "D*.pth"), net_d, optim_d File "/data/Retrieval-based-Voice-Conversion-WebUI-2.2.231006/infer/lib/train/utils.py", line 213, in latest_checkpoint_path x = f_list[-1] IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/anaconda3/envs/cosyvoice/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/root/anaconda3/envs/cosyvoice/lib/python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/data/Retrieval-based-Voice-Conversion-WebUI-2.2.231006/infer/modules/train/train.py", line 232, in run logger.info( UnboundLocalError: local variable 'logger' referenced before assignment /data/Retrieval-based-Voice-Conversion-WebUI-2.2.231006/infer/modules/train/train.py:234: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. torch.load(hps.pretrainG, map_location="cpu")["model"]