Spaces:
Running
on
Zero
Running
on
Zero
Update utils/model.py
Browse files- utils/model.py +2 -1
utils/model.py
CHANGED
@@ -419,7 +419,8 @@ class OwlViTForClassification(nn.Module):
|
|
419 |
else:
|
420 |
#DEUBUG:
|
421 |
print(f"text_inputs_parts - input_ids: {text_inputs_parts['input_ids'].shape}. attention_mask : {text_inputs_parts['attention_mask'].shape}")
|
422 |
-
print(f"position_embedding: {self.owlvit.position_embedding()}")
|
|
|
423 |
text_embeds_parts = self.owlvit.text_model.text_model.get_text_features(**text_inputs_parts)
|
424 |
|
425 |
# # Embed images and text queries
|
|
|
419 |
else:
|
420 |
#DEUBUG:
|
421 |
print(f"text_inputs_parts - input_ids: {text_inputs_parts['input_ids'].shape}. attention_mask : {text_inputs_parts['attention_mask'].shape}")
|
422 |
+
print(f"position_embedding: {self.owlvit.text_model.text_model.position_embedding()}")
|
423 |
+
print(f"text_embeds: {self.owlvit.text_model.text_model.token_embedding(input_ids).shape}")
|
424 |
text_embeds_parts = self.owlvit.text_model.text_model.get_text_features(**text_inputs_parts)
|
425 |
|
426 |
# # Embed images and text queries
|