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.
The unprompted examples created by generate_audio aren't unprompted. Since the call for prompted and unprompted is the same both will do audio continuation. By setting prompted_duration = None for the unprompted case we will not do audio continuations. I also added an assert on the output to make sure this would be caught in the future.
The unprompted examples created by
generate_audio
aren't unprompted. Since the call for prompted and unprompted is the same both will do audio continuation. By settingprompted_duration = None
for the unprompted case we will not do audio continuations. I also added an assert on the output to make sure this would be caught in the future.