zhvng / open-musiclm

Implementation of MusicLM, a text to music model published by Google Research, with a few modifications.
https://arxiv.org/abs/2301.11325
MIT License
522 stars 59 forks source link

empty data_processor #14

Closed taalua closed 1 year ago

taalua commented 1 year ago

Hi,

For some reason, the data processor return empty in preprocess.py: inputs = next(self.dl_iter)

inputs is empty, however, files.append(file) in data.py are okay, all files in data/fma_large are appended correctly.

Thank you for your help.

zhvng commented 1 year ago

it could be an issue with loading the data here. The try/except is there to ignore corrupted files but it hides other errors.

When this happened to me, it was because I didn't have ffmpeg installed. Does loading an mp3 file with torchaudio.load work without try/except?

taalua commented 1 year ago

thank you, it's ffmpeg issue.