Views
No views yet
Do not use the auto-generated "Use this model" snippet above. It loads inbfloat16viadevice_map="cuda"and omits the requiredmadebyollin/sdxl-vae-fp16-fixVAE. Copying it as-is has been measured to cause severe VRAM oversubscription on 8 GB-class GPUs — roughly 280 seconds per denoising step (over an hour for one image) instead of the ~10–20 s/image this adapter is designed for, and on some hardware it will produce black/NaN output instead. Use the verified code in Usage below.
stabilityai/stable-diffusion-xl-base-1.0. Activate the style with the trigger token ukyowood anywhere in the prompt.gauravgandhi2411/aetherart-ukiyo-sd21, trained with identical rank, dataset, and step count for a controlled cross-resolution comparison. Both visual evaluations independently selected the checkpoint-1000 step count — at 512 for SD 2.1 and 1024 for SDXL.


Required: load themadebyollin/sdxl-vae-fp16-fixVAE alongside the base model. SDXL's default fp16 VAE produces black images without this fix.
1from diffusers import AutoencoderKL, DPMSolverMultistepScheduler, StableDiffusionXLPipeline
2import torch
3
4vae = AutoencoderKL.from_pretrained(
5 "madebyollin/sdxl-vae-fp16-fix",
6 torch_dtype=torch.float16,
7)
8pipe = StableDiffusionXLPipeline.from_pretrained(
9 "stabilityai/stable-diffusion-xl-base-1.0",
10 vae=vae,
11 torch_dtype=torch.float16,
12 variant="fp16",
13 use_safetensors=True,
14)
15pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
16pipe.enable_model_cpu_offload() # required on GPUs < 16 GB VRAM
17
18pipe.load_lora_weights("gauravgandhi2411/aetherart-ukiyo-sdxl")
19
20img = pipe(
21 "ukyowood ukiyo-e woodblock print of Mount Fuji at sunset",
22 negative_prompt=(
23 "text, watermark, calligraphy, writing, letters, words, signature, "
24 "blurry, low quality, western art, photograph, 3d render"
25 ),
26 num_inference_steps=25,
27 guidance_scale=7.5,
28 height=1024,
29 width=1024,
30).images[0]
31img.save("output.png")| Parameter | Value |
|---|---|
| Base model | stabilityai/stable-diffusion-xl-base-1.0 |
| VAE (fp16-fix) | madebyollin/sdxl-vae-fp16-fix |
| LoRA rank | 8 |
| Training images | 80 (WikiArt Ukiyo-e) |
| Resolution | 1024 × 1024 |
| Steps | 1500 |
| Precision | fp16 mixed |
| Batch size | 1 (gradient accumulation = 4, effective batch = 4) |
| Learning rate | 1e-4 |
| Seed | 42 |
| Trigger token | ukyowood |
| Hardware | GCP g2-standard-4 — NVIDIA L4 24 GB VRAM |
| Training time | 4h 26m |
| Compute cost | ~$3.50 (GCP on-demand, us-central1) |
| Checkpoint | Pixel mean (ref. prompt) | Visual verdict |
|---|---|---|
| 500 | 145.52 | Over-calligraphed; samurai figure scale weak — not selected |
| 1000 | 143.47 | Deepest Hiroshige palette; figure preserved; cartouches integrated — SELECTED |
| 1500 | 135.48 | Samurai figure dropout; cherry-blossom colour regression — not selected |
text, watermark, calligraphy, writing, letters, words, signature, blurry, low quality, western art, photograph, 3d rendersdxl_base = no adapter as the reference point):
sdxl_base alone scores artifact_absence 0.9222 — cleaner than this adapter. Applying
this LoRA measurably increases visible embedded text/calligraphy/cartouche marks relative to
generating the same prompts with no adapter at all: published checkpoint −0.0500
(3.49× the paired SEM), an unfiltered-training-set retrain −0.0422 (3.11× SEM) — both are
individually significant regressions, not noise. This is the entanglement between "ukiyo-e
style" and the WikiArt source images' embedded captions/signatures/script that produced the
style signal the adapter learned; it is a real, measured tradeoff of using this adapter, not
fully "mitigated" by the default negative prompt.sdxl_base alone — a curated-training-set retrain lifts style_adherence +0.0100 over
base (2.82× SEM); the published checkpoint (unfiltered training set) lifts it +0.0056
(1.68× SEM, not itself significant at this n). sdxl_base already scores 0.9389 on
style_adherence for ukiyo-e-styled prompts from its own pretraining, so headroom for any
adapter to add is small. A positive control confirms this rubric CAN distinguish real
ukiyo-e art from off-style contrasts decisively (diff/SEM = +25.062 vs. real Pattachitra art,
+25.580 vs. generic sdxl_base outputs) — these lift numbers are confirmed to be measuring a
real style-adherence signal, not an instrument artifact.sdxl_base already
renders unassisted (confirmed, not provisional, though still modest — below the 2×SEM bar for
the unfiltered checkpoint), at the cost of a real, larger, and statistically significant
increase in embedded-text artifacts. Whether that trade is worth it depends on the use case —
for artifact-sensitive generations, consider sdxl_base alone with an explicit "ukiyo-e style"
prompt, or add this adapter and screen outputs for text artifacts downstream. A follow-up
retrain-and-eval attempt investigating whether more aggressive dataset curation or a different
training recipe can close this gap is tracked in docs/NEXT_MODEL_SPEC.md, not yet completed.docs/MODEL_VERDICT.md §4.6–§4.9 in the
AetherArt GitHub repo.enable_model_cpu_offload() is required on GPUs with less than ~16 GB VRAM; expect ~60–90 s/image under offload on an 8 GB card.reports/clip_blindness.mdreports/lora_training_summary_sdxl.mdgauravgandhi2411/aetherart-ukiyo-sd21