CorentinJ / Real-Time-Voice-Cloning

Clone a voice in 5 seconds to generate arbitrary speech in real-time
Other
51.65k stars 8.66k forks source link

Error when training encoder #1198

Open terminatormlp opened 1 year ago

terminatormlp commented 1 year ago

Hello, I am appealing to all who can and want to help. so I have a problem when I run encoder training, the first time everything is working fine and then gives an error. here it is: .......... Step 110 Loss: 3.9845 EER: 0.4027 Step time: mean: 31023ms std: 39773ms

Average execution time over 10 steps: Blocking, waiting for batch (threaded) (10/10): mean: 26881ms std: 38848ms Data to cpu (10/10): mean: 1ms std: 0ms Forward pass (10/10): mean: 966ms std: 37ms Loss (10/10): mean: 32ms std: 2ms Backward pass (10/10): mean: 2471ms std: 54ms Parameter update (10/10): mean: 7ms std: 1ms Extras (visualizations, saving) (10/10): mean: 0ms std: 1ms

........Traceback (most recent call last): File "Z:\Real-Time-Voice-Cloning-master\encoder_train.py", line 44, in train(**vars(args)) File "Z:\Real-Time-Voice-Cloning-master\encoder\train.py", line 71, in train for step, speaker_batch in enumerate(loader, init_step): File "C:\Users\Professional\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\utils\data\dataloader.py", line 634, in next data = self._next_data() File "C:\Users\Professional\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\utils\data\dataloader.py", line 1326, in _next_data return self._process_data(data) File "C:\Users\Professional\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\utils\data\dataloader.py", line 1372, in _process_data data.reraise() File "C:\Users\Professional\AppData\Local\Programs\Python\Python39\lib\site-packages\torch_utils.py", line 644, in reraise raise exception Exception: Caught Exception in DataLoader worker process 2. Original Traceback (most recent call last): File "C:\Users\Professional\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\utils\data_utils\worker.py", line 308, in _worker_loop data = fetcher.fetch(index) File "C:\Users\Professional\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\utils\data_utils\fetch.py", line 54, in fetch return self.collate_fn(data) File "Z:\Real-Time-Voice-Cloning-master\encoder\data_objects\speaker_verification_dataset.py", line 55, in collate return SpeakerBatch(speakers, self.utterances_per_speaker, partials_n_frames) File "Z:\Real-Time-Voice-Cloning-master\encoder\data_objects\speaker_batch.py", line 9, in init self.partials = {s: s.random_partial(utterances_per_speaker, n_frames) for s in speakers} File "Z:\Real-Time-Voice-Cloning-master\encoder\data_objects\speaker_batch.py", line 9, in self.partials = {s: s.random_partial(utterances_per_speaker, n_frames) for s in speakers} File "Z:\Real-Time-Voice-Cloning-master\encoder\data_objects\speaker.py", line 34, in random_partial self._load_utterances() File "Z:\Real-Time-Voice-Cloning-master\encoder\data_objects\speaker.py", line 18, in _load_utterances self.utterance_cycler = RandomCycler(self.utterances) File "Z:\Real-Time-Voice-Cloning-master\encoder\data_objects\random_cycler.py", line 14, in init raise Exception("Can't create RandomCycler from an empty collection") Exception: Can't create RandomCycler from an empty collection

what wrong? How can I fix it?