pharoAIsanders420 commited on
Commit
14c010e
·
verified ·
1 Parent(s): 2bb5072

update model card

Browse files
Files changed (1) hide show
  1. README.md +53 -0
README.md CHANGED
@@ -1,3 +1,56 @@
1
  ---
2
  license: mit
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ tags:
4
+ - audiocraft
5
+ - Musicgen
6
  ---
7
+
8
+ # micro-musicgen-jungle
9
+
10
+ Curated and trained by Aaron Abebe.
11
+
12
+ ![image/webp](https://cdn-uploads.huggingface.co/production/uploads/65829a887cec0a2080d4bb3f/mbtvUtbIUbZJ8DbxtIPUo.webp)
13
+
14
+ > [!WARNING]
15
+ > WARNING: **These models WILL sound bad to a lot of people.** The goal is not create pleasant sounding music,
16
+ > but to spark creativity by using the weird sounds of Neural Codecs for music production and sampling!
17
+
18
+ Micro-Musicgen is a new family of super small music generation models focussing on experimental music and latent space exploration capabilities.
19
+ These models have unique abilities and drawbacks which should enhance creativity when working with them while creating music.
20
+
21
+ - **only unconditional generation**: Trained without text-conditioning to reduce model size.
22
+ - **very fast generation times**: ~8secs for 10x 10sec samples.
23
+ - **permissive licensing**: The models are trained from scratch using royalty-free samples and handmade chops,
24
+ which allows them to be released via the MIT License.
25
+
26
+
27
+ The first entry in the series is a model trained on chopped jungle drum breaks called `micro-musicgen-jungle`.
28
+
29
+ If you find this model interesting, please consider:
30
+
31
+ - following me on [GitHub](https://github.com/aaronabebe)
32
+ - following me on [Twitter](https://twitter.com/mcaaroni)
33
+
34
+
35
+ ## Usage
36
+
37
+ Install my [audiocraft](https://github.com/facebookresearch/audiocraft) fork:
38
+
39
+ ```
40
+ pip install -U git+https://github.com/aaronabebe/audiocraft#egg=audiocraft
41
+ ```
42
+
43
+ Then, you should be able to load this model just like any other musicgen checkpoint here on the Hub:
44
+
45
+ ```python
46
+ import torchaudio
47
+ from audiocraft.models import MusicGen
48
+ from audiocraft.data.audio import audio_write
49
+ model = MusicGen.get_pretrained('pharoAIsanders420/micro-musicgen-jungle')
50
+ model.set_generation_params(duration=10)
51
+ wav = model.generate_unconditional(10)
52
+
53
+ for idx, one_wav in enumerate(wav):
54
+ # Will save under {idx}.wav, with loudness normalization at -14 db LUFS.
55
+ audio_write(f'{idx}', one_wav.cpu(), model.sample_rate, strategy="loudness", loudness_compressor=True)
56
+ ```