Spaces:
Sleeping
Sleeping
merge
Browse files
README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
---
|
|
|
2 |
title: 'VampNet: Music Generation with Masked Transformers'
|
|
|
|
|
|
|
3 |
emoji: 🤖
|
4 |
colorFrom: gray
|
5 |
colorTo: gray
|
@@ -7,7 +11,10 @@ sdk: gradio
|
|
7 |
sdk_version: 3.36.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
|
|
10 |
duplicated_from: hugggof/vampnet
|
|
|
|
|
11 |
---
|
12 |
|
13 |
# VampNet
|
|
|
1 |
---
|
2 |
+
<<<<<<< HEAD
|
3 |
title: 'VampNet: Music Generation with Masked Transformers'
|
4 |
+
=======
|
5 |
+
title: "VampNet: Music Generation with Masked Transformers"
|
6 |
+
>>>>>>> main
|
7 |
emoji: 🤖
|
8 |
colorFrom: gray
|
9 |
colorTo: gray
|
|
|
11 |
sdk_version: 3.36.1
|
12 |
app_file: app.py
|
13 |
pinned: false
|
14 |
+
<<<<<<< HEAD
|
15 |
duplicated_from: hugggof/vampnet
|
16 |
+
=======
|
17 |
+
>>>>>>> main
|
18 |
---
|
19 |
|
20 |
# VampNet
|
app.py
CHANGED
@@ -22,6 +22,7 @@ interface = Interface(
|
|
22 |
coarse_ckpt="./models/vampnet/coarse.pth",
|
23 |
coarse2fine_ckpt="./models/vampnet/c2f.pth",
|
24 |
codec_ckpt="./models/vampnet/codec.pth",
|
|
|
25 |
device="cuda" if torch.cuda.is_available() else "cpu",
|
26 |
)
|
27 |
|
@@ -186,9 +187,9 @@ with gr.Blocks() as demo:
|
|
186 |
|
187 |
with gr.Row():
|
188 |
with gr.Column():
|
189 |
-
gr.Markdown("# VampNet
|
190 |
gr.Markdown("""## Description:
|
191 |
-
This is a demo of
|
192 |
You can control the extent and nature of variation with a set of manual controls and presets.
|
193 |
Use this interface to experiment with different mask settings and explore the audio outputs.
|
194 |
""")
|
@@ -196,8 +197,8 @@ with gr.Blocks() as demo:
|
|
196 |
gr.Markdown("""
|
197 |
## Instructions:
|
198 |
1. You can start by uploading some audio, or by loading the example audio.
|
199 |
-
2. Choose a preset for the vamp operation, or manually adjust the controls to customize the mask settings.
|
200 |
-
3. Click the "generate (vamp)!!!" button to
|
201 |
4. Optionally, you can add some notes and save the result.
|
202 |
5. You can also use the output as the new input and continue experimenting!
|
203 |
""")
|
@@ -248,12 +249,15 @@ with gr.Blocks() as demo:
|
|
248 |
"beat_mask_downbeats": False,
|
249 |
},
|
250 |
"slight periodic variation": {
|
|
|
251 |
"periodic_p": 5,
|
252 |
"onset_mask_width": 5,
|
253 |
"beat_mask_width": 0,
|
254 |
"beat_mask_downbeats": False,
|
255 |
},
|
256 |
"moderate periodic variation": {
|
|
|
|
|
257 |
"periodic_p": 13,
|
258 |
"onset_mask_width": 5,
|
259 |
"beat_mask_width": 0,
|
@@ -274,15 +278,9 @@ with gr.Blocks() as demo:
|
|
274 |
"beat-driven variation": {
|
275 |
"periodic_p": 0,
|
276 |
"onset_mask_width": 0,
|
277 |
-
"beat_mask_width":
|
278 |
"beat_mask_downbeats": False,
|
279 |
},
|
280 |
-
"beat-driven variation (downbeats only)": {
|
281 |
-
"periodic_p": 0,
|
282 |
-
"onset_mask_width": 0,
|
283 |
-
"beat_mask_width": 50,
|
284 |
-
"beat_mask_downbeats": True,
|
285 |
-
},
|
286 |
"beat-driven variation (downbeats only, strong)": {
|
287 |
"periodic_p": 0,
|
288 |
"onset_mask_width": 0,
|
@@ -304,7 +302,7 @@ with gr.Blocks() as demo:
|
|
304 |
minimum=0,
|
305 |
maximum=128,
|
306 |
step=1,
|
307 |
-
value=
|
308 |
)
|
309 |
|
310 |
|
@@ -392,7 +390,7 @@ with gr.Blocks() as demo:
|
|
392 |
label="temperature",
|
393 |
minimum=0.0,
|
394 |
maximum=10.0,
|
395 |
-
value=
|
396 |
)
|
397 |
|
398 |
|
|
|
22 |
coarse_ckpt="./models/vampnet/coarse.pth",
|
23 |
coarse2fine_ckpt="./models/vampnet/c2f.pth",
|
24 |
codec_ckpt="./models/vampnet/codec.pth",
|
25 |
+
wavebeat_ckpt="./models/wavebeat.pth",
|
26 |
device="cuda" if torch.cuda.is_available() else "cpu",
|
27 |
)
|
28 |
|
|
|
187 |
|
188 |
with gr.Row():
|
189 |
with gr.Column():
|
190 |
+
gr.Markdown("# VampNet")
|
191 |
gr.Markdown("""## Description:
|
192 |
+
This is a demo of VampNet, a masked generative music model capable of doing music variations.
|
193 |
You can control the extent and nature of variation with a set of manual controls and presets.
|
194 |
Use this interface to experiment with different mask settings and explore the audio outputs.
|
195 |
""")
|
|
|
197 |
gr.Markdown("""
|
198 |
## Instructions:
|
199 |
1. You can start by uploading some audio, or by loading the example audio.
|
200 |
+
2. Choose a preset for the vamp operation, or manually adjust the controls to customize the mask settings. Click the load preset button.
|
201 |
+
3. Click the "generate (vamp)!!!" button to generate audio. Listen to the output audio, and the masked audio to hear the mask hints.
|
202 |
4. Optionally, you can add some notes and save the result.
|
203 |
5. You can also use the output as the new input and continue experimenting!
|
204 |
""")
|
|
|
249 |
"beat_mask_downbeats": False,
|
250 |
},
|
251 |
"slight periodic variation": {
|
252 |
+
<<<<<<< HEAD
|
253 |
"periodic_p": 5,
|
254 |
"onset_mask_width": 5,
|
255 |
"beat_mask_width": 0,
|
256 |
"beat_mask_downbeats": False,
|
257 |
},
|
258 |
"moderate periodic variation": {
|
259 |
+
=======
|
260 |
+
>>>>>>> main
|
261 |
"periodic_p": 13,
|
262 |
"onset_mask_width": 5,
|
263 |
"beat_mask_width": 0,
|
|
|
278 |
"beat-driven variation": {
|
279 |
"periodic_p": 0,
|
280 |
"onset_mask_width": 0,
|
281 |
+
"beat_mask_width": 20,
|
282 |
"beat_mask_downbeats": False,
|
283 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
"beat-driven variation (downbeats only, strong)": {
|
285 |
"periodic_p": 0,
|
286 |
"onset_mask_width": 0,
|
|
|
302 |
minimum=0,
|
303 |
maximum=128,
|
304 |
step=1,
|
305 |
+
value=13,
|
306 |
)
|
307 |
|
308 |
|
|
|
390 |
label="temperature",
|
391 |
minimum=0.0,
|
392 |
maximum=10.0,
|
393 |
+
value=1.8
|
394 |
)
|
395 |
|
396 |
|