Skip to content

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

Open

Description

@a897456

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?

Activity

  1. a897456 commented on Apr 7, 2024

    @a897456
    Author

    #388

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

  2. bastibe commented on Apr 8, 2024

    @bastibe
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions