NVIDIA / tacotron2

Tacotron 2 - PyTorch implementation with faster-than-realtime inference
BSD 3-Clause "New" or "Revised" License
5.11k stars 1.39k forks source link

"Failed to interpret file %s as a pickle" % repr(file)) OSError: Failed to interpret file '../data_collection/wav_audio/audio_75_0.wav' as a pickle #596

Open lojer19 opened 1 year ago

lojer19 commented 1 year ago

I got this error in the iteration. Please help.

Starting Epoch: 0 Iteration: 0 0%| | 0/24 [00:00<?, ?it/s] 0%| | 0/10000 [00:02<?, ?it/s] Traceback (most recent call last): File "colab_notebook.py", line 373, in train(output_directory, log_directory, checkpoint_path, warm_start, n_gpus, rank, group_name, hparams, log_directory2) File "colab_notebook.py", line 250, in train for i, batch in tqdm(enumerate(train_loader), total=len(train_loader)): File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\tqdm\std.py", line 1178, in iter for obj in iterable: File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\torch\utils\data\dataloader.py", line 521, in next data = self._next_data() File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\torch\utils\data\dataloader.py", line 1203, in _next_data return self._process_data(data) File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\torch\utils\data\dataloader.py", line 1229, in _process_data data.reraise() File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\torch_utils.py", line 434, in reraise raise exception OSError: Caught OSError in DataLoader worker process 0. Original Traceback (most recent call last): File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\numpy\lib\npyio.py", line 460, in load return pickle.load(fid, **pickle_kwargs) _pickle.UnpicklingError: unpickling stack underflow

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\torch\utils\data_utils\worker.py", line 287, in _worker_loop data = fetcher.fetch(index) File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\torch\utils\data_utils\fetch.py", line 49, in data = [self.dataset[idx] for idx in possibly_batched_index] File "C:\Users\Raytrack\Desktop\fyp\tacotron2\data_utils.py", line 61, in getitem return self.get_mel_text_pair(self.audiopaths_and_text[index]) File "C:\Users\Raytrack\Desktop\fyp\tacotron2\data_utils.py", line 34, in get_mel_text_pair mel = self.get_mel(audiopath) File "C:\Users\Raytrack\Desktop\fyp\tacotron2\data_utils.py", line 49, in get_mel melspec = torch.from_numpy(np.load(filename, allow_pickle=True)) File "C:\Users\Raytrack\anaconda3\envs\torch1101\lib\site-packages\numpy\lib\npyio.py", line 463, in load "Failed to interpret file %s as a pickle" % repr(file)) OSError: Failed to interpret file '../data_collection/wav_audio/audio_75_0.wav' as a pickle