9 Commits

Author SHA1 Message Date
Vladimir Mandic 05eef5e919 update nunchaku-lite
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-18 18:00:34 +02:00
Vladimir Mandic a1df374773 add support for nunchaku-lite models and engine
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-04 15:31:05 +02:00
Vladimir Mandic ec2e37ee6e enhance automated testing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-03 09:27:34 +02:00
CalamitousFelicitousness b681cccccb feat(ernie): register ERNIE_SPEC for native dispatch
ErnieImageTransformer2DModel has no from_single_file; selecting an
Ernie finetune in the UNET dropdown previously crashed with
"is not a valid JSON file" from from_pretrained.

Probe of jibMixErnie_v20.safetensors: 409/409 keys overlap with the
model state dict after stripping model.diffusion_model., zero missing
or unexpected. Spec is the minimum TransformerSpec(cls=...).
2026-05-31 00:24:33 +01:00
CalamitousFelicitousness cf909c6e5d feat(ernie): img2img and inpainting support
Diffusers ships only ErnieImagePipeline (txt2img). Adds two
subclasses wrapping it: ErnieImageImg2ImgPipeline and
ErnieImageInpaintPipeline, registered into the auto-pipeline
mappings so set_diffuser_pipe swap finds them.

Encode mirrors the upstream decode: vae.encode -> _patchify_latents
-> BN-stats normalize using vae.bn.running_mean/running_var.
Inpaint blends the denoised latent with a noise-level-matched
init latent via callback_on_step_end. Verified end-to-end through
hires upscale and yolo detailer with face and eye masks.
2026-05-04 17:27:47 +01:00
Vladimir Mandic ee5978f72b custom vae loader
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-02 10:22:43 +02:00
vladmandic 04b8056508 fix typo in ernie
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-16 10:41:10 +02:00
vladmandic d1fb1b47a8 ernie enable/disable built-in pe
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-16 07:48:09 +02:00
Vladimir Mandic db8c6e9243 add ernie-image
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-04-15 11:06:32 +00:00