Open linthmwan opened 5 months 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
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
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