ford442 commited on
Commit
a2c6ec3
·
verified ·
1 Parent(s): 69ba39d

Update ip_adapter/attention_processor.py

Browse files
Files changed (1) hide show
  1. ip_adapter/attention_processor.py +2 -2
ip_adapter/attention_processor.py CHANGED
@@ -356,8 +356,8 @@ class IPAttnProcessor2_0(torch.nn.Module):
356
  )
357
 
358
  hidden_states = hidden_states.transpose(1, 2).reshape(batch_size, -1, attn.heads * head_dim)
359
- #hidden_states = hidden_states.to(query.dtype)
360
- hidden_states = hidden_states.to(torch.float32)
361
 
362
  # for ip-adapter
363
  ip_key = self.to_k_ip(ip_hidden_states)
 
356
  )
357
 
358
  hidden_states = hidden_states.transpose(1, 2).reshape(batch_size, -1, attn.heads * head_dim)
359
+ hidden_states = hidden_states.to(query.dtype)
360
+ #hidden_states = hidden_states.to(torch.float32)
361
 
362
  # for ip-adapter
363
  ip_key = self.to_k_ip(ip_hidden_states)