Skip to content

Commit

Permalink
Fix Value dimension in ImageCrossAttention
Browse files Browse the repository at this point in the history
  • Loading branch information
hugojarkoff committed Jan 17, 2024
1 parent 7839c54 commit 0b05813
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def __init__(self, text_cross_attention: fl.Attention, scale: float = 1.0) -> No
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,
Expand Down

0 comments on commit 0b05813

Please sign in to comment.