Open jadechip opened 3 weeks ago
I took a quick stab at it, but I am not sure if this is right? #56 Need to run some tests...
Currently unable to load the ip-adapter image, seems like the weights of the clip encoder isn't loaded on the gpu?
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py", line 774, in encode_image
image_embeds = self.image_encoder(image).image_embeds
`RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same`
Would be cool to have support for IP-Adapter added. As the pipeline inherits from StableDiffusionXLImg2ImgPipeline which supports ip-adapter, I assume it should be quite simple to add support for ip-adapter? ...but give the custom implementation of the sampling process, I am not so sure, perhaps something like this?