Instructions to use mhdang/dpo-sdxl-text2image-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mhdang/dpo-sdxl-text2image-v1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mhdang/dpo-sdxl-text2image-v1", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Will you release your training code? When?
#3
by pipi77 - opened
Thanks for your excellent work!
Will you release your training code? When?
Hoping for a TRL pull request by the first week of January!
The code is available here https://github.com/huggingface/diffusers/tree/main/examples/research_projects/diffusion_dpo.
mhdang changed discussion status to closed