Views
No views yet
1import torch
2from diffusers import StableDiffusionXLPipeline
3
4# Load base model
5pipeline = StableDiffusionXLPipeline.from_pretrained(
6 "cagliostrolab/animagine-xl-4.0",
7 torch_dtype=torch.float16
8)
9pipeline = pipeline.to("cuda")
10
11# Load LoRA weights
12pipeline.load_lora_weights("dddsaty/animagine-xl-jingliu-lora")
13
14# Generate image
15prompt = "jingliu, 1girl, solo, long hair, red eyes, holding, weapon, white hair, sword, dynamic pose, glowing eyes, blue theme"
16negative_prompt = "nsfw, lowres, bad anatomy, bad hands, text, error, worst quality, low quality"
17
18image = pipeline(
19 prompt=prompt,
20 negative_prompt=negative_prompt,
21 num_inference_steps=30,
22 guidance_scale=7.5,
23 height=1024,
24 width=1024
25).images[0]
26
27image.save("jingliu_output.png")1import torch
2from diffusers import StableDiffusionXLPipeline
3
4# Load merged model directly
5pipeline = StableDiffusionXLPipeline.from_pretrained(
6 "dddsaty/animagine-xl-jingliu-lora",
7 torch_dtype=torch.float16
8)
9pipeline = pipeline.to("cuda")
10
11# Generate image
12prompt = "jingliu, 1girl, solo, long hair, red eyes, holding, weapon, white hair, sword, dynamic pose, glowing eyes, blue theme"
13negative_prompt = "nsfw, lowres, bad anatomy, bad hands, text, error, worst quality, low quality"
14
15image = pipeline(
16 prompt=prompt,
17 negative_prompt=negative_prompt,
18 num_inference_steps=30,
19 guidance_scale=7.5,
20).images[0]
21
22image.save("jingliu_output.png")1@misc{animagine-xl-jingliu-lora,
2 author = {Your Name},
3 title = {Animagine XL 4.0 - Jingliu LoRA},
4 year = {2025},
5 publisher = {HuggingFace},
6 howpublished = {\url{https://huggingface.co/YOUR_USERNAME/animagine-xl-jingliu-lora}}
7}1@misc{animagine-xl-4.0,
2 author = {Cagliostro Research Lab},
3 title = {Animagine XL 4.0},
4 year = {2024},
5 publisher = {HuggingFace},
6 howpublished = {\url{https://huggingface.co/cagliostrolab/animagine-xl-4.0}}
7}