Open linthmwan opened 3 weeks ago
Cc: @asomoza
Also where does "stable-diffusion/absolutereality_v181" come from? We need to have access to this for reproduction.
I won't have the time to test this soon.
cc: @fabiorigano for IP Adapter and @haikmanukyan for HD Painter if they have some insights about it.
reality_v181" come from
Use other SD 1.5 base model like runwayml/stable-diffusion-v1-5 also reproduce this error.
hi everyone, thanks @asomoza for adding me here
I made some tests, HD Painter code is not up to date with the more recent developments: in https://github.com/huggingface/diffusers/blob/35f45ecd71a5c917406408a02bc982c3795d5a35/examples/community/hd_painter.py#L572 the isinstance
method will always return False, because now image projection layers are encapsulated in MultiIPAdapterImageProjection
this is where code breaks, for reference it should be: https://github.com/huggingface/diffusers/blob/35f45ecd71a5c917406408a02bc982c3795d5a35/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py#L942C1-L949C14
Describe the bug
When I use IP_adapter and hd_painter at the same time. it pop out the RuntimeError: mat1 and mat2 shapes cannot be multiplied (514x1280 and 1024x3072). It should be successful since both IP_adapter and hd_painter didn't modify the output shape of attention layers. From log, it seems that the whole computation mixed up both computation of IP_adapter and hd_painter? Maybe should do one first and then do the other?
Reproduction
Logs
System Info
Diffusers==v0.28.0 python==3.10
Who can help?
No response