Instructions to use cvssp/audioldm2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use cvssp/audioldm2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("cvssp/audioldm2", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
text to speech checkpoints?
#1
by singularity321 - opened
Hey there, how do I load either of these two model checkpoints:
audioldm2-speech-gigaspeech (default for TTS): Text-to-Speech, trained on GigaSpeech Dataset.
audioldm2-speech-ljspeech: Text-to-Speech, trained on LJSpeech Dataset.
To this pipeline?
Thank you!
Hey @singularity321 - these have not yet been ported to diffusers since they came out as a follow-up to the original release. Would you mind opening a feature request on the diffusers repository so we can gauge the interest and difficulty in adding them? Thank you! https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=