tt1225 commited on
Commit
1af01cc
1 Parent(s): 0bf716d

Update modeling_internvl_chat.py

Browse files
Files changed (1) hide show
  1. modeling_internvl_chat.py +3 -0
modeling_internvl_chat.py CHANGED
@@ -325,6 +325,9 @@ class InternVLChatModel(PreTrainedModel):
325
  vit_embeds = visual_features
326
  else:
327
  vit_embeds = self.extract_feature(pixel_values)
 
 
 
328
  input_embeds = self.language_model.get_input_embeddings()(input_ids)
329
  B, N, C = input_embeds.shape
330
  input_embeds = input_embeds.reshape(B * N, C)
 
325
  vit_embeds = visual_features
326
  else:
327
  vit_embeds = self.extract_feature(pixel_values)
328
+
329
+ print(vit_embeds.shape)
330
+
331
  input_embeds = self.language_model.get_input_embeddings()(input_ids)
332
  B, N, C = input_embeds.shape
333
  input_embeds = input_embeds.reshape(B * N, C)