Fix Value dimension in ImageCrossAttention

This commit is contained in:
hugojarkoff 2024-01-17 15:53:50 +01:00 committed by Benjamin Trom
parent 7839c54ae8
commit a6a9c8b972

View file

@ -252,7 +252,7 @@ class ImageCrossAttention(fl.Chain):
fl.Chain(
fl.UseContext(context="ip_adapter", key="clip_image_embedding"),
fl.Linear(
in_features=text_cross_attention.key_embedding_dim,
in_features=text_cross_attention.value_embedding_dim,
out_features=text_cross_attention.inner_dim,
bias=text_cross_attention.use_bias,
device=text_cross_attention.device,