KohakuBlueleaf / a1111-sd-webui-lycoris

An extension for stable-diffusion-webui to load lycoris models.
Apache License 2.0
861 stars 116 forks source link

Detect if inpainting model and zero pad updown to match #40

Closed jaretburkett closed 1 year ago

jaretburkett commented 1 year ago

Zero pad the additional dimensions on inpainting model if it is detected. Tested quite a bit and it seems to work great. Including 2 examples using same seeds/prompt on both RealisticVision 2.0 and the RealisticVision 2.0 inpainting model and malcolmrey's locon_keanu_v1_from_v1_64_32

00012-42 RealisticVision 2.0 - sks person

00011-42 RealisticVision 2.0-inpainting - sks person

00017-42 RealisticVision 2.0 - sks person

00016-42 RealisticVision 2.0-inpainting - sks person

Solves https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris/issues/39

KohakuBlueleaf commented 1 year ago

Thx for the fix