Update modeling_gpt2vision.py
Browse files- modeling_gpt2vision.py +2 -6
modeling_gpt2vision.py
CHANGED
@@ -82,15 +82,11 @@ class GPT2Vision(PreTrainedModel):
|
|
82 |
"input_ids": encoded_input.input_ids.to(self.device),
|
83 |
"attention_mask": encoded_input.attention_mask.to(self.device)
|
84 |
}
|
85 |
-
|
86 |
-
print("pixel_values",batch['pixel_values'].size())
|
87 |
-
print("input_ids",batch['input_ids'].size())
|
88 |
-
print("attention_mask",batch['attention_mask'].size())
|
89 |
|
90 |
inputs_embeds, attention_mask, input_ids = self.preprocess_inputs(batch)
|
91 |
|
92 |
-
|
93 |
-
print("attention_mask",attention_mask.size())
|
94 |
|
95 |
output_sequences = self.language_model.generate(
|
96 |
inputs_embeds=inputs_embeds,
|
|
|
82 |
"input_ids": encoded_input.input_ids.to(self.device),
|
83 |
"attention_mask": encoded_input.attention_mask.to(self.device)
|
84 |
}
|
85 |
+
|
|
|
|
|
|
|
86 |
|
87 |
inputs_embeds, attention_mask, input_ids = self.preprocess_inputs(batch)
|
88 |
|
89 |
+
|
|
|
90 |
|
91 |
output_sequences = self.language_model.generate(
|
92 |
inputs_embeds=inputs_embeds,
|