mateo-19182 commited on
Commit
cb56d69
1 Parent(s): 3f945d3

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -0
README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - audiocraft
5
+ base_model: facebook/musicgen-small
6
+ ---
7
+
8
+
9
+ small model trained on 295 freely available drum breaks. No text conditioning was used (inspired by https://github.com/aaronabebe/micro-musicgen).
10
+
11
+ only trained for 5 epochs, liked the sound there but can resume training with continue_from=checkpoint.th
12
+
13
+
14
+ useful docs: https://github.com/facebookresearch/audiocraft/blob/main/docs/TRAINING.md
15
+
16
+
17
+ ```
18
+ dora run solver=musicgen/musicgen_base_32khz model/lm/model_scale=small conditioner=none dataset.batch_size=5 dset=audio/breaks.yaml dataset.valid.num_samples=1 generate.every=10000 evaluate.every=10000 optim.optimizer=adamw optim.lr=1e-4 optim.adam.weight_decay=0.01 checkpoint.save_every=5
19
+ ```
20
+
21
+
22
+ use:
23
+
24
+ ```
25
+ import torchaudio
26
+ from audiocraft.models import MusicGen
27
+ from audiocraft.data.audio import audio_write
28
+ model = MusicGen.get_pretrained('mateo-19182/all-the-breaks')
29
+ model.set_generation_params(duration=10)
30
+ wav = model.generate_unconditional(10)
31
+
32
+ for idx, one_wav in enumerate(wav):
33
+ audio_write(f'{idx}', one_wav.cpu(), model.sample_rate, strategy="loudness", loudness_compressor=True)
34
+ ```