mirror of
https://github.com/vladmandic/automatic
synced 2026-09-11 07:18:44 +02:00
cf909c6e5d
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.