Skip to content

Commit

Permalink
Update MUSICGEN_STYLE.md
Browse files Browse the repository at this point in the history
text-and-style conditioning generation sample fix
  • Loading branch information
escfrya authored Nov 11, 2024
1 parent f593185 commit 95fc402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/MUSICGEN_STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ model.set_style_conditioner_params(
melody, sr = torchaudio.load('./assets/electronic.mp3')

descriptions = ["8-bit old video game music", "Chill lofi remix", "80s New wave with synthesizer"]
wav = model.generate_with_chroma(descriptions=["8-bit old video game music"],
wav = model.generate_with_chroma(descriptions=descriptions,
melody[None].expand(3, -1, -1), sr) # generates 3 samples.

for idx, one_wav in enumerate(wav):
Expand Down

0 comments on commit 95fc402

Please sign in to comment.