Views
No views yet










ComfyUI or Stable Diffusion Webuidiffuserspip install diffusers transformers accelerate safetensors --upgrade1import torch
2from diffusers import StableDiffusionXLPipeline
3
4pipe = StableDiffusionXLPipeline.from_pretrained(
5 "yodayo-ai/holodayo-xl-2.1",
6 torch_dtype=torch.float16,
7 use_safetensors=True,
8 custom_pipeline="lpw_stable_diffusion_xl",
9 add_watermarker=False,
10 variant="fp16"
11)
12pipe.to('cuda')
13
14prompt = "1girl, nakiri ayame, nakiri ayame \(1st costume\), hololive, solo, upper body, v, smile, looking at viewer, outdoors, night, masterpiece, best quality, very aesthetic, absurdres"
15negative_prompt = "nsfw, (low quality, worst quality:1.2), very displeasing, 3d, watermark, signature, ugly, poorly drawn"
16
17image = pipe(
18 prompt,
19 negative_prompt=negative_prompt,
20 width=832,
21 height=1216,
22 guidance_scale=7,
23 num_inference_steps=28
24).images[0]
25
26image.save("./waifu.png")1girl/1boy, character name, from which series, by which artists, everything else in any order.nsfw, (low quality, worst quality:1.2), very displeasing, 3d, watermark, signature, ugly, poorly drawnmasterpiece, best quality, very aesthetic, absurdres1024 x 1024, 1152 x 896, 896 x 1152, 1216 x 832, 832 x 1216, 1344 x 768, 768 x 1344, 1536 x 640, 640 x 1536| Feature | Pretraining | Finetuning |
|---|---|---|
| Hardware | 2x H100 80GB PCIe | 2x A100 80GB PCIe |
| Batch Size | 64 | 48 |
| Gradient Accumulation Steps | 2 | 1 |
| Noise Offset | None | 0.0357 |
| Epochs | 10 | 10 |
| UNet Learning Rate | 7.5e-6 | 7.5e-6 |
| Text Encoder Learning Rate | 3.75e-6 | None |
| Optimizer | AdamW8bit | Adafactor |
| Optimizer Args | Weight Decay: 0.1, Betas: (0.9, 0.99) | Scale Parameter: False, Relative Step: False, Warmup Init: False |
| Scheduler | Constant with Warmups | Constant with Warmups |
| Warmup Steps | 0.5% | 0.5% |