Text-to-Image
Diffusers
stable-diffusion
lora
template:sd-lora
migrated
character
hanfu
long hair
asian male
Instructions to use YuLexuan30/yu-lexuan-blue-hanfu-version-sdxl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use YuLexuan30/yu-lexuan-blue-hanfu-version-sdxl with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("YuLexuan30/yu-lexuan-blue-hanfu-version-sdxl") prompt = "ylxn, solo, hanfu, hat, 1boy, front view, face focus, arms crossed, portrait, long hair, brown hair, large pectorals, " image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Ctrl+K