Graph Machine Learning
pyannote.audio
English
code
How to use from the
Use from the
pyannote.audio library
from pyannote.audio import Model, Inference

model = Model.from_pretrained("DUTAOZHANG/Styele2Code_model2")
inference = Inference(model)

# inference on the whole file
inference("file.wav")

# inference on an excerpt
from pyannote.core import Segment
excerpt = Segment(start=2.0, end=5.0)
inference.crop("file.wav", excerpt)
A newer version of this model is available: google/flan-t5-large

πŸ“¦ Model Weights Usage

This repository hosts two separate model weights that need to be used together for the full functionality of Style2Code:

βœ… Style Encoder Checkpoint (first stage):
Trained via contrastive learning to extract explicit style embeddings.

βœ… Flan-T5 Generator Checkpoint (second stage):
Fine-tuned to generate code while incorporating the style embeddings.

To use these weights:

1️⃣ Clone the Style2Code repository:

git clone https://github.com/zh19980811/Style2Code.git
cd Style2Code
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for DUTAOZHANG/Styele2Code_model2

Finetuned
(208)
this model

Dataset used to train DUTAOZHANG/Styele2Code_model2