Skip to content

Commit dff35a8

Browse files
authored
Change in ip-adapter docs. CLIPVisionModelWithProjection should be im… (#6597)
Change in ip-adapter docs. CLIPVisionModelWithProjection should be imported from transformers, not diffusers
1 parent 8842bca commit dff35a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/en/using-diffusers/loading_adapters.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ pipeline.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-a
344344
IP-Adapter relies on an image encoder to generate the image features, if your IP-Adapter weights folder contains a "image_encoder" subfolder, the image encoder will be automatically loaded and registered to the pipeline. Otherwise you can so load a [`~transformers.CLIPVisionModelWithProjection`] model and pass it to a Stable Diffusion pipeline when you create it.
345345

346346
```py
347-
from diffusers import AutoPipelineForText2Image, CLIPVisionModelWithProjection
347+
from diffusers import AutoPipelineForText2Image
348+
from transformers import CLIPVisionModelWithProjection
348349
import torch
349350

350351
image_encoder = CLIPVisionModelWithProjection.from_pretrained(

0 commit comments

Comments
 (0)