patrickvonplaten commited on
Commit
bf84200
1 Parent(s): 6f6277b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -47,6 +47,7 @@ apt get install ffmpeg
47
 
48
  ```py
49
  import torchaudio
 
50
  from audiocraft.models import MusicGen
51
  from audiocraft.data.audio import audio_write
52
 
@@ -57,7 +58,6 @@ descriptions = ['happy rock', 'energetic EDM', 'sad jazz']
57
 
58
  wav = model.generate(descriptions) # generates 3 samples.
59
 
60
- wav = model.generate_with_chroma(descriptions, melody[None].expand(3, -1, -1), sr)
61
  for idx, one_wav in enumerate(wav):
62
  # Will save under {idx}.wav, with loudness normalization at -14 db LUFS.
63
  audio_write(f'{idx}', one_wav.cpu(), model.sample_rate, strategy="loudness")
 
47
 
48
  ```py
49
  import torchaudio
50
+
51
  from audiocraft.models import MusicGen
52
  from audiocraft.data.audio import audio_write
53
 
 
58
 
59
  wav = model.generate(descriptions) # generates 3 samples.
60
 
 
61
  for idx, one_wav in enumerate(wav):
62
  # Will save under {idx}.wav, with loudness normalization at -14 db LUFS.
63
  audio_write(f'{idx}', one_wav.cpu(), model.sample_rate, strategy="loudness")