chanfee commited on
Commit
70e6e08
·
verified ·
1 Parent(s): 2676ccc

Print text_input_parts which cause cuda error.

Browse files
Files changed (1) hide show
  1. utils/model.py +2 -0
utils/model.py CHANGED
@@ -417,6 +417,8 @@ class OwlViTForClassification(nn.Module):
417
  topk_scores, topk_idxs = torch.topk(teacher_boxes_logits, k=1, dim=1)
418
 
419
  else:
 
 
420
  text_embeds_parts = self.owlvit.get_text_features(**text_inputs_parts)
421
 
422
  # # Embed images and text queries
 
417
  topk_scores, topk_idxs = torch.topk(teacher_boxes_logits, k=1, dim=1)
418
 
419
  else:
420
+ #DEUBUG:
421
+ print(f"text_inputs_parts: {text_inputs_parts}")
422
  text_embeds_parts = self.owlvit.get_text_features(**text_inputs_parts)
423
 
424
  # # Embed images and text queries