Skip to content
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

soundfile.LibsndfileError: Error : unknown error in flac decoder. #430

Open
a897456 opened this issue Apr 7, 2024 · 2 comments
Open

soundfile.LibsndfileError: Error : unknown error in flac decoder. #430

a897456 opened this issue Apr 7, 2024 · 2 comments

Comments

@a897456
Copy link

a897456 commented Apr 7, 2024

Epoch:1
Steps : 0, Gen Loss Total : 29.366, Dis Loss Total : 3.910, s/b : 1.833
......
Steps : 1390, Gen Loss Total : 15.950, Dis Loss Total : 2.581, s/b : 0.525
Steps : 1400, Gen Loss Total : 20.574, Dis Loss Total : 2.378, s/b : 0.534
Traceback (most recent call last):
File "E:\000\naturalspeech2-pytorch-main\04_soundstream_0407.py", line 166, in
main()
File "E:\000\naturalspeech2-pytorch-main\04_soundstream_0407.py", line 163, in main
train(a)
File "E:\000\naturalspeech2-pytorch-main\04_soundstream_0407.py", line 69, in train
for i ,batch in enumerate(train_dataloader):
File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\torch\utils\data\dataloader.py", line 630, in next
data = self._next_data()
File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\torch\utils\data\dataloader.py", line 674, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "E:\000\naturalspeech2-pytorch-main\dataset.py", line 46, in getitem
audio, sampling_rate = soundfile.read(filename)
File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 288, in read
data = f.read(frames, dtype, always_2d, fill_value, out)
File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 895, in read
frames = self._array_io('read', out, frames)
File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 1344, in _array_io
return self._cdata_io(action, cdata, ctype, frames)
File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 1354, in _cdata_io
_error_check(self._errorcode)
File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 1407, in _error_check
raise LibsndfileError(err, prefix=prefix)
soundfile.LibsndfileError: Error : unknown error in flac decoder.

can anyone help me?

@a897456
Copy link
Author

a897456 commented Apr 7, 2024

#388

same problem, but librosa 0.10.1 requires soundfile>=0.12.1, but you have soundfile 0.12.0 which is incompatible.

@bastibe
Copy link
Owner

bastibe commented Apr 8, 2024

The update to 0.12.2 has been sitting in my pipeline for a while, but I haven't gotten around to testing it on the three platforms yet.

Ideally, I'd like to have a test suite to run automatically on Windows, Linux, MacOS. If you want to speed up the release process, please help out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants