chanfee commited on
Commit
a8bc48a
·
verified ·
1 Parent(s): a4b4452

Update utils/model.py

Browse files
Files changed (1) hide show
  1. utils/model.py +1 -0
utils/model.py CHANGED
@@ -429,6 +429,7 @@ class OwlViTForClassification(nn.Module):
429
  position_ids = position_ids.to(device_)
430
  position_embedding = position_ids.repeat(position_ids.size(0), 1, 1)
431
  text_inputs_parts["position_ids"] = position_ids
 
432
  print(f"pos + emb: {(txt_embeds + position_embedding).shape}")
433
  text_embeds_parts = self.owlvit.text_model.get_text_features(**text_inputs_parts)
434
 
 
429
  position_ids = position_ids.to(device_)
430
  position_embedding = position_ids.repeat(position_ids.size(0), 1, 1)
431
  text_inputs_parts["position_ids"] = position_ids
432
+ print(f"position_embedding : {position_embedding.shape}")
433
  print(f"pos + emb: {(txt_embeds + position_embedding).shape}")
434
  text_embeds_parts = self.owlvit.text_model.get_text_features(**text_inputs_parts)
435