innnky / so-vits-svc

基于vits与softvc的歌声音色转换模型
GNU Affero General Public License v3.0
3.62k stars 6 forks source link

训练时出错 #128

Open AyasukaRan opened 1 year ago

AyasukaRan commented 1 year ago

-- Process 0 terminated with the following error: Traceback (most recent call last): File "C:\Users\19423\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\multiprocessing\spawn.py", line 69, in _wrap fn(i, *args) File "E:\so-vits-svc-32k\train.py", line 109, in run train_and_evaluate(rank, epoch, hps, [net_g, net_d], [optim_g, optim_d], [scheduler_g, scheduler_d], scaler, File "E:\so-vits-svc-32k\train.py", line 131, in train_and_evaluate for batch_idx, items in enumerate(train_loader): File "C:\Users\19423\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataloader.py", line 628, in next data = self._next_data() File "C:\Users\19423\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataloader.py", line 1333, in _next_data return self._process_data(data) File "C:\Users\19423\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataloader.py", line 1359, in _process_data data.reraise() File "C:\Users\19423\AppData\Local\Programs\Python\Python310\lib\site-packages\torch_utils.py", line 543, in reraise raise exception NotImplementedError: Caught NotImplementedError in DataLoader worker process 0. Original Traceback (most recent call last): File "C:\Users\19423\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\worker.py", line 302, in _worker_loop data = fetcher.fetch(index) File "C:\Users\19423\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\fetch.py", line 58, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "C:\Users\19423\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\fetch.py", line 58, in data = [self.dataset[idx] for idx in possibly_batched_index] File "E:\so-vits-svc-32k\data_utils.py", line 88, in getitem return self.get_audio(self.audiopaths[index][0]) File "E:\so-vits-svc-32k\data_utils.py", line 52, in get_audio spec = spectrogram_torch(audio_norm, self.filter_length, File "E:\so-vits-svc-32k\mel_processing.py", line 63, in spectrogram_torch y = torch.nn.functional.pad(y.unsqueeze(1), (int((n_fft-hop_size)/2), int((n_fft-hop_size)/2)), mode='reflect') NotImplementedError: Only 2D, 3D, 4D, 5D padding with non-constant padding are supported for now