Instructions to use DUTAOZHANG/Styele2Code_model2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- pyannote.audio
How to use DUTAOZHANG/Styele2Code_model2 with pyannote.audio:
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) - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature5355083 -
Update README.md
Verified signature997ce10 -
Update README.md
Verified signature75c212f -
Upload 2 files
Verified signature25fbfb4 -
Update README.md
Verified signatureHere’s the full usage note for your Hugging Face weight page and to integrate with the GitHub README: 📦 Model Weights Usage This repository hosts two separate model weights that need to be used together for full functionality: ✅ Style Encoder Checkpoint (first stage):Trained with 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 2️⃣ Modify the file paths in run.py, train_stage1/train_stage1.py, and train_stage2/run_ddp.sh to point to the correct weight files. 3️⃣ Use the provided scripts to load the style encoder and the Flan-T5 generator together for either inference or further fine-tuning. ℹ️ The weights must be used together, as they are complementary:The style encoder extracts style embeddings, and the generator (Flan-T5) …8f0de5b -
Create README.md
Verified signature0a7ac83 -
initial commit
Verified signatureae4e950