 generate image features. If the IP-Adapter repository contains an image_encoder subfolder, the image encoder is automatically loaded and registered to the pipeline. Otherwise, you’ll need to explicitly load the image encoder with a CLIPVisionModelWithProjection model and pass it to the pipeline. This is the case for IP-Adapter Plus checkpoints which use the ViT-H image encoder.   Copied from transformers import CLIPVisionModelWithProjection

i