SheetSage2 Modular Diffusers

The YuE2 sample song, turned into the score below with the code below.

Modular Diffusers blocks for m-a-p/SheetSage2: turn a song into its lead sheet (melody, chords, beats, key and sections) as an ABC score. The blocks ship the model code and load the weights from OzzyGT/sheetsage2_diffusers.

Note: reading audio files needs FFmpeg.

Licensing

The blocks are Apache-2.0, adapted from m-a-p/SheetSage2, whose original code states no licence, with chord parsing from mir_eval under MIT. This repository contains no model weights; they are CC BY-NC 4.0 (non-commercial), see the model repository.

Sample score

import torch
from diffusers import ModularPipelineBlocks


blocks = ModularPipelineBlocks.from_pretrained("OzzyGT/sheetsage2_custom_blocks", trust_remote_code=True)
pipe = blocks.init_pipeline()
pipe.load_components(dtype=torch.float32)
pipe.to("cuda")

state = pipe(audio="city_lights.mp3")  # task="melody" leaves the chords out
print(state.get("abc"))

The start of the score:

X:1
T:
M:4/4
L:1/32
Q:1/4=84
V: Vocal clef=treble name="Vocal Melody" snm="Vocal"
V: Ins clef=treble name="Ins Melody" snm="Inst."
K:C
% intro
V: Vocal
z24z4"C"z4|"C"z32|"Em"z32|"F"z32|
V: Ins
z24z4G2G2|c4G4c4G4c4G4c2d2e4|B4G4B4G4B4G4B2c2d4|A8A8A8A8|
...
% verse
V: Vocal
"C"z8e2e4e6d2d6c2d2-|"Em"d6z24z2|"Am"z8c2d4e6d2d6c2A2-|"F"A6z24z2|

The score works with YuE2: give it as abc to sing the same melody in a new style.

Downloads last month
38
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for OzzyGT/sheetsage2_custom_blocks

Finetuned
(5)
this model