Downloads · 30 days
58
9% of all-time downloads
gauravgandhi2411/aetherart-ukiyo-sdxl
aetherart-ukiyo-sdxl is a text-to-image model from gauravgandhi2411. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
Do not use the auto-generated "Use this model" snippet above. It loads in bfloat16 via devicemap="cuda" and omits the required madebyollin/sdxl-vae-fp16-fix VAE. Copying it as-is has been measured to cause severe VRAM…
Downloads · 30 days
58
9% of all-time downloads
All-time downloads
662
Public
Repo size
65.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors46.6 MB · 71%
From the Hugging Face model README
Do not use the auto-generated "Use this model" snippet above. It loads in
bfloat16viadevice_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.
A rank-8 LoRA adapter that steers Stable Diffusion XL toward Japanese ukiyo-e woodblock print style at 1024×1024 resolution. Trained on 80 WikiArt Ukiyo-e images against stabilityai/stable-diffusion-xl-base-1.0. Activate the style with the trigger token ukyowood anywhere in the prompt.
This is the SDXL companion to 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.
"ukyowood ukiyo-e woodblock print of Mount Fuji at sunset"
"ukyowood ukiyo-e print of a crane over ocean waves"
"ukyowood ukiyo-e woodblock print of a samurai in a bamboo forest"
Required: load the
madebyollin/sdxl-vae-fp16-fixVAE alongside the base model. SDXL's default fp16 VAE produces black images without this fix.
from diffusers import AutoencoderKL, DPMSolverMultistepScheduler, StableDiffusionXLPipeline
import torch
vae = AutoencoderKL.from_pretrained(
"madebyollin/sdxl-vae-fp16-fix",
torch_dtype=torch.float16,
)
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
vae=vae,
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True,
)
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
pipe.enable_model_cpu_offload() # required on GPUs < 16 GB VRAM
pipe.load_lora_weights("gauravgandhi2411/aetherart-ukiyo-sdxl")
img = pipe(
"ukyowood ukiyo-e woodblock print of Mount Fuji at sunset",
negative_prompt=(
"text, watermark, calligraphy, writing, letters, words, signature, "
"blurry, low quality, western art, photograph, 3d render"
),
num_inference_steps=25,
guidance_scale=7.5,
height=1024,
width=1024,
).images[0]
img.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) |
Evaluated checkpoints 500, 1000, and 1500 against four fixed prompts at seed 42, 25 DPM-Solver++ steps, 1024×1024.
| 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 |
Checkpoint-1000 was selected because it is the only checkpoint that simultaneously delivers (1) strong ukiyo-e style lift above the SDXL pretraining baseline, (2) figure preservation across all four test prompts, and (3) calligraphy rendered as single-panel title cartouches rather than scattered characters.
The step-1500 loss bump (~0.008 → ~0.08) correlates with a visible quality regression in the images — this is not microbatch noise. The 1000-step convergence point is consistent with the SD 2.1 companion run, which also selected checkpoint-1000.
SDXL's pretraining already contains strong ukiyo-e priors. The LoRA's value is measurable rather than obvious: it deepens the Hiroshige teal/blue water palette, adds warm coral-pink atmospheric haze to horizon gradients, and reinforces the characteristic Japanese flat-plane treatment of foliage. The baseline renders cleaner figures but lacks the palette weight and compositional integration of traditional woodblock prints. The LoRA earns its place.
The SD 2.1 companion adapter (trained at 512) produced scattered calligraphy characters in image margins — a training data artefact from WikiArt metadata captions embedded in source images. At 1024, the same signal manifests differently: single-panel title cartouches and red banner seals, compositionally placed where a real woodblock print would carry its title block. The artefact is still present, but at the higher resolution and with a stronger base prior, it reads as a learned stylistic element rather than noise. The default negative prompt suppresses most residual scatter.
Applied automatically by the AetherArt application whenever this adapter is active:
text, watermark, calligraphy, writing, letters, words, signature, blurry, low quality, western art, photograph, 3d render
sdxl_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