tencent-ailab / IP-Adapter

The image prompt adapter is designed to enable a pretrained text-to-image diffusion model to generate images with image prompt.
Apache License 2.0
4.48k stars 293 forks source link

Why does inpainting need 512* 768 when I set it to 512*512 the effect will not work #325

Open PlutoQyl opened 3 months ago

PlutoQyl commented 3 months ago

masked_image = Image.open("/assets/inpainting/image.png").resize((512, 512)) mask = Image.open("/assets/inpainting/mask.png").resize((512, 512))

When I resize to the above size, the effect is very bad girl_legacy_512

xiaohu2015 commented 3 months ago

you can also add a struct controlnet to get better result