Ok, I run it in Jupyter Notebook, after a change in https://gist.github.com/erogol/97516ad65b44dbddb8cd694953187c5b?short_path=221d607
and I received other errors… I wonder why I am receiving errors, while @erogol did not in his Notebook run.
Any idea?
I would like to contribute to the project with Polish, however I am still facing problems.
> Epoch 0/1000
Traceback (most recent call last):
File "train.py", line 704, in <module>
main(args)
File "train.py", line 615, in main
global_step, epoch)
File "train.py", line 100, in train
for num_iter, data in enumerate(data_loader):
File "/home/marta/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 819, in __next__
return self._process_data(data)
File "/home/marta/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 846, in _process_data
data.reraise()
File "/home/marta/anaconda3/lib/python3.7/site-packages/torch/_utils.py", line 385, in reraise
raise self.exc_type(msg)
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/marta/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/home/marta/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/marta/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/marta/Desktop/inż/TTS/tts_namespace/TTS/datasets/TTSDataset.py", line 164, in __getitem__
return self.load_data(idx)
File "/home/marta/Desktop/inż/TTS/tts_namespace/TTS/datasets/TTSDataset.py", line 110, in load_data
wav = np.asarray(self.load_wav(wav_file), dtype=np.float32)
File "/home/marta/Desktop/inż/TTS/tts_namespace/TTS/datasets/TTSDataset.py", line 68, in load_wav
audio = self.ap.load_wav(filename)
File "/home/marta/Desktop/inż/TTS/tts_namespace/TTS/utils/audio.py", line 239, in load_wav
x, sr = sf.read(filename)
File "/home/marta/anaconda3/lib/python3.7/site-packages/soundfile.py", line 257, in read
subtype, endian, format, closefd) as f:
File "/home/marta/anaconda3/lib/python3.7/site-packages/soundfile.py", line 627, in __init__
self._file = self._open(file, mode_int, closefd)
File "/home/marta/anaconda3/lib/python3.7/site-packages/soundfile.py", line 1182, in _open
"Error opening {0!r}: ".format(self.name))
File "/home/marta/anaconda3/lib/python3.7/site-packages/soundfile.py", line 1355, in _error_check
raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
RuntimeError: Error opening '../LJSpeech-1.1/wavs/LJ002-0020.wav': System error