You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What API design would you like to have changed or added to the library? Why?
It would be great to have IP-adapters work with t2i-adapter as they're usually faster and less heavy on the image generation process than controlnet.
What use case would this enable or better enable? Can you give us a code example?
I think it should be fairly easy to do so. If you check this PR (#5915), it shows you how to add load_ip_adapter() to a pipeline in an unbreaking way. I believe you could do the same for the T2I XL adapter too. Would you be open to create a PR for this?
Additionally, if you could provide some results with this addition, that would be great for us to judge if having this method integrated is worthwhile.
What API design would you like to have changed or added to the library? Why?
It would be great to have IP-adapters work with t2i-adapter as they're usually faster and less heavy on the image generation process than controlnet.
What use case would this enable or better enable? Can you give us a code example?
Current error:
AttributeError Traceback (most recent call last)
Cell In[6], line 12
9 adapter = T2IAdapter.from_pretrained(t2i_adapter_id, torch_dtype=torch.float16, variant='fp16').to('cuda')
11 pipe = StableDiffusionXLAdapterPipeline.from_pretrained(model_id, adapter=adapter, torch_dtype=torch.float16, variant='fp16')
---> 12 pipe.load_ip_adapter('h94/IP-Adapter', subfolder='sdxl_models', weight_name='ip-adapter_sdxl.safetensors')
13 pipe.load_ip_adapter('h94/IP-Adapter', subfolder='sdxl_models', weight_name='ip-adapter_sdxl.safetensors')
14 pipe.load_lora_weights(lcm_lora_id)
File ~/anaconda3/envs/diffusers2/lib/python3.9/site-packages/diffusers/configuration_utils.py:138, in ConfigMixin.getattr(self, name)
135 deprecate("direct config name access", "1.0.0", deprecation_message, standard_warn=False)
136 return self._internal_dict[name]
--> 138 raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'StableDiffusionXLAdapterPipeline' object has no attribute 'load_ip_adapter'
The text was updated successfully, but these errors were encountered: