Conversation
OverviewAnalysis of stable-diffusion.cpp compared 48,327 functions across two binaries: build.bin.sd-cli and build.bin.sd-server. The codebase shows 88 modified functions, 12 new, 12 removed, and 48,215 unchanged. Power consumption increased marginally: sd-cli by +0.087% (483,492.36 nJ → 483,912.72 nJ) and sd-server by +0.051% (518,368.34 nJ → 518,632.06 nJ). Function AnalysisCritical Regression:
Intentional Quality Tradeoff:
Standard Library Variations: Additional FindingsThe VAE circular tiling feature represents the primary intentional change, improving visual quality at acceptable performance cost. The 🔎 Full breakdown: Loci Inspector |
Note
Source pull request: leejet/stable-diffusion.cpp#1299
Vae tiling was not working nicely with
--circularflags. This PR aims at improving that by making the tiling circular instead of the VAE itself.Example with
sd-cli.exe --diffusion-model ..\ComfyUI\models\unet\Flux\klein\flux-2-klein-9b-Q6_K.gguf --vae ..\ComfyUI\models\vae\flux\Flux.2-VAE.safetensors --llm ..\ComfyUI\models\clip\llms\Qwen3-8b.Q4_K_XL.gguf --cfg-scale 1.0 -p '360 HDRI panorama image, capturing a wide, 360-degree view of living room. Intimate atmosphere<lora:Klein_9B - HDRI_360_panoramic:1.3>' --scheduler smoothstep --steps 8 -W 1024 -H 512 --rng cpu --lora-model-dir ..\ComfyUI\models\loras\flux\klein9\ --circularx --vae-tiling --vae-tile-size 16(lora: https://civitai.green/models/2413837/hdri-flux2klein-9b)
Example with
sd-cli.exe --diffusion-model ..\ComfyUI\models\unet\Flux\klein\flux-2-klein-9b-Q6_K.gguf --vae ..\ComfyUI\models\vae\flux\Flux.2-VAE.safetensors --llm ..\ComfyUI\models\clip\llms\Qwen3-8b.Q4_K_XL.gguf --cfg-scale 1.0-p 'Aerial view of a very busy city' --preview proj --steps 8 -W 512 -H 512 --rng cpu --circular --scheduler smoothstep - -vae-tiling-vae-tile-size 16