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
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,
- Negative Prompt
- deformed, distorted, disfigured, low quality, blurry

- Prompt
- ylxn, solo, hanfu, hat, 1boy, sitting, long hair, brown hair, inside a living room, large pectorals,
- Negative Prompt
- deformed, distorted, disfigured, low quality, blurry

- Prompt
- ylxn, solo, hanfu, hat, 1boy, full body, long hair, brown hair, standing in a living room, large pectorals,
- Negative Prompt
- deformed, distorted, disfigured, low quality, blurry

- Prompt
- ylxn, solo, hanfu, hat, 1boy, sitting, long hair, brown hair, inside a living room, large pectorals,
- Negative Prompt
- deformed, distorted, disfigured, low quality, blurry

- Prompt
- ylxn, solo, hanfu, hat, 1boy, full body, long hair, brown hair, standing in a living room, large pectorals,
- Negative Prompt
- deformed, distorted, disfigured, low quality, blurry
Model description
This is the SDXL version of my previous SD 1.5 model, with an improved dataset and better tagging. The old version has been removed.
Trigger words
You should use ylxn, hanfu, hat to trigger the image generation.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
Use it with the 🧨 diffusers library
from diffusers import AutoPipelineForText2Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"
pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to(device)
pipeline.load_lora_weights('YuLexuan30/yu-lexuan-blue-hanfu-version-sdxl', weight_name='YulexuansdxlV6civit.safetensors')
image = pipeline('ylxn, solo, hanfu, hat, 1boy, full body, long hair, brown hair, standing in a living room, large pectorals, ').images[0]
For more details, including weighting, merging and fusing LoRAs, check the documentation on loading LoRAs in diffusers
- Downloads last month
- 11
Model tree for YuLexuan30/yu-lexuan-blue-hanfu-version-sdxl
Base model
stabilityai/stable-diffusion-xl-base-1.0