-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unknown error in flac decoder #434
Comments
RuntimeError: Caught RuntimeError in DataLoader worker process 5. |
please reopen this issue with libsndfile, and provide the audio file as an example. |
Original Traceback (most recent call last):
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\torch\utils\data_utils\worker.py", line 308, in worker_loop
data = fetcher.fetch(index)
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\propj\AudioFixer\dataSET\AF_dataset.py", line 92, in getitem
wavs,sr=torchaudio.load(data_path)
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\torchaudio_backend\utils.py", line 203, in load
return backend.load(uri, frame_offset, num_frames, normalize, channels_first, format, buffer_size)
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\torchaudio_backend\soundfile.py", line 26, in load
return soundfile_backend.load(uri, frame_offset, num_frames, normalize, channels_first, format)
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\torchaudio_backend\soundfile_backend.py", line 230, in load
waveform = file.read(frames, dtype, always_2d=True)
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\soundfile.py", line 867, in read
frames = self._array_io('read', out, frames)
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\soundfile.py", line 1312, in _array_io
return self._cdata_io(action, cdata, ctype, frames)
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\soundfile.py", line 1322, in _cdata_io
_error_check(self._errorcode)
File "C:\Users\autumn.conda\envs\py10\lib\site-packages\soundfile.py", line 1357, in _error_check
raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
RuntimeError: Error : unknown error in flac decoder.
The problem seems to occur randomly, reading the same audio file will sometimes occur and sometimes not.
The text was updated successfully, but these errors were encountered: