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 do I get the following error? IPAdapter reference only use square pictures as reference? #330

Open jisdf opened 2 months ago

jisdf commented 2 months ago

2024-04-08 08:09:37,044 - ControlNet - INFO - ControlNet Input Mode: InputMode.SIMPLE 2024-04-08 08:09:37,045 - ControlNet - INFO - Using preprocessor: CLIP-ViT-H (IPAdapter) 2024-04-08 08:09:37,046 - ControlNet - INFO - preprocessor resolution = 0.5 2024-04-08 08:09:37,059 - ControlNet - INFO - Current ControlNet IPAdapterPatcher: D:\stable diffusion\sd-webui-aki-v4.5\models\ControlNet\ip-adapter-plus_sdxl_vit-h.bin token_merging_ratio = 0.5 INFO: the IPAdapter reference image is not a square, CLIPImageProcessor will resize and crop it at the center. If the main focus of the picture is not in the middle the result might not be what you are expecting.