facebookresearch / audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.
MIT License
20.23k stars 2.03k forks source link

Persisting Error after generation #308

Open dotorn opened 9 months ago

dotorn commented 9 months ago

Hi, been diving into audio craft recently but I've run into this issue since the first time I tried generating something. As the prompt finishes to load to 100% it spins for a bit then cancels and says there was an error.

245759390-18369ad9-73fc-4da2-9997-21033d9887d4 245759477-02abf229-8ed6-4c2e-9bfc-18a1a4033079

This is what shows up in my terminal when it happens:

Capture d’écran 2023-10-12 à 10 04 45

Saw a topic about this a few month ago but couldn't find a solution to this problem.. Does anyone has an idea what is going on? I sadly don't know enough about programming to know what PosixPath is and why it's found instead of the string...

0xlws commented 9 months ago

hey @dotorn i think youre using an outdated version of the repo, could you try to use the latest and see if the issue persists? this line i suspect gave that error

0xlws commented 9 months ago

and btw

...what PosixPath is and why it's found instead of the string...

PosixPath is a Python tool for dealing with file paths. inside the screenshot i can see the PosixPath('path'). the error is because the code expected normal text called a string, but received a PosixPath object instead (which can be easy to miss due to layers of abstraction) . a solution in the code would be to call the str() method to convert it a normal string again (or just directly use the string path instead). hope it helps