Spaces:
Runtime error
Runtime error
merge
Browse files123451 unmodified line78910111213---title: 'VampNet: Music Generation with Masked Transformers'emoji: 🤖colorFrom: graycolorTo: gray1 unmodified linesdk_version: 3.36.1app_file: app.pypinned: falseduplicated_from: hugggof/vampnet---# VampNet1234567891 unmodified line11121314151617181920---<<<<<<< HEADtitle: 'VampNet: Music Generation with Masked Transformers'=======title: "VampNet: Music Generation with Masked Transformers">>>>>>> mainemoji: 🤖colorFrom: graycolorTo: gray1 unmodified linesdk_version: 3.36.1app_file: app.pypinned: false<<<<<<< HEADduplicated_from: hugggof/vampnet=======>>>>>>> main---# VampNet
21 unmodified lines222324252627158 unmodified lines1861871881891901911921931941 unmodified line19619719819920020120220344 unmodified lines24824925025125225325425525625725825914 unmodified lines27427527627727827928028128228328428528628728815 unmodified lines30430530630730830931081 unmodified lines39239339439539639739821 unmodified linescoarse_ckpt="./models/vampnet/coarse.pth",coarse2fine_ckpt="./models/vampnet/c2f.pth",codec_ckpt="./models/vampnet/codec.pth",device="cuda" if torch.cuda.is_available() else "cpu",)158 unmodified lineswith gr.Row():with gr.Column():gr.Markdown("# VampNet Audio Vamping")gr.Markdown("""## Description:This is a demo of the VampNet, a generative audio model that transforms the input audio based on the chosen settings.You can control the extent and nature of variation with a set of manual controls and presets.Use this interface to experiment with different mask settings and explore the audio outputs.""")1 unmodified linegr.Markdown("""## Instructions:1. You can start by uploading some audio, or by loading the example audio.2. Choose a preset for the vamp operation, or manually adjust the controls to customize the mask settings.3. Click the "generate (vamp)!!!" button to apply the vamp operation. Listen to the output audio.4. Optionally, you can add some notes and save the result.5. You can also use the output as the new input and continue experimenting!""")44 unmodified lines"beat_mask_downbeats": False,},"slight periodic variation": {"periodic_p": 5,"onset_mask_width": 5,"beat_mask_width": 0,"beat_mask_downbeats": False,},"moderate periodic variation": {"periodic_p": 13,"onset_mask_width": 5,"beat_mask_width": 0,14 unmodified lines"beat-driven variation": {"periodic_p": 0,"onset_mask_width": 0,"beat_mask_width": 50,"beat_mask_downbeats": False,},"beat-driven variation (downbeats only)": {"periodic_p": 0,"onset_mask_width": 0,"beat_mask_width": 50,"beat_mask_downbeats": True,},"beat-driven variation (downbeats only, strong)": {"periodic_p": 0,"onset_mask_width": 0,15 unmodified linesminimum=0,maximum=128,step=1,value=3,)81 unmodified lineslabel="temperature",minimum=0.0,maximum=10.0,value=0.8)21 unmodified lines22232425262728158 unmodified lines1871881891901911921931941951 unmodified line19719819920020120220320444 unmodified lines24925025125225325425525625725825926026126226314 unmodified lines27827928028128228328428528615 unmodified lines30230330430530630730881 unmodified lines39039139239339439539621 unmodified linescoarse_ckpt="./models/vampnet/coarse.pth",coarse2fine_ckpt="./models/vampnet/c2f.pth",codec_ckpt="./models/vampnet/codec.pth",wavebeat_ckpt="./models/wavebeat.pth",device="cuda" if torch.cuda.is_available() else "cpu",)158 unmodified lineswith gr.Row():with gr.Column():gr.Markdown("# VampNet")gr.Markdown("""## Description:This is a demo of VampNet, a masked generative music model capable of doing music variations.You can control the extent and nature of variation with a set of manual controls and presets.Use this interface to experiment with different mask settings and explore the audio outputs.""")1 unmodified linegr.Markdown("""## Instructions:1. You can start by uploading some audio, or by loading the example audio.2. Choose a preset for the vamp operation, or manually adjust the controls to customize the mask settings. Click the load preset button.3. Click the "generate (vamp)!!!" button to generate audio. Listen to the output audio, and the masked audio to hear the mask hints.4. Optionally, you can add some notes and save the result.5. You can also use the output as the new input and continue experimenting!""")44 unmodified lines"beat_mask_downbeats": False,},"slight periodic variation": {<<<<<<< HEAD"periodic_p": 5,"onset_mask_width": 5,"beat_mask_width": 0,"beat_mask_downbeats": False,},"moderate periodic variation": {=======>>>>>>> main"periodic_p": 13,"onset_mask_width": 5,"beat_mask_width": 0,14 unmodified lines"beat-driven variation": {"periodic_p": 0,"onset_mask_width": 0,"beat_mask_width": 20,"beat_mask_downbeats": False,},"beat-driven variation (downbeats only, strong)": {"periodic_p": 0,"onset_mask_width": 0,15 unmodified linesminimum=0,maximum=128,step=1,value=13,)81 unmodified lineslabel="temperature",minimum=0.0,maximum=10.0,value=1.8)
README.md+7
app.py+11-13