Pedro Cavalcanti
commited on
Commit
•
82a7a5e
1
Parent(s):
088b637
changed: image_features
Browse files- modeling_florence2.py +2 -2
modeling_florence2.py
CHANGED
@@ -2565,6 +2565,7 @@ class Florence2Seq2SeqLMOutput(ModelOutput):
|
|
2565 |
encoder_last_hidden_state: Optional[torch.FloatTensor] = None
|
2566 |
encoder_hidden_states: Optional[Tuple[torch.FloatTensor, ...]] = None
|
2567 |
encoder_attentions: Optional[Tuple[torch.FloatTensor, ...]] = None
|
|
|
2568 |
|
2569 |
|
2570 |
FLORENCE2_START_DOCSTRING = r"""
|
@@ -3061,8 +3062,7 @@ class Florence2ForConditionalGeneration(Florence2PreTrainedModel):
|
|
3061 |
output = (logits,) + outputs[1:]
|
3062 |
return (loss,) + output if loss is not None else output
|
3063 |
|
3064 |
-
print(
|
3065 |
-
print(logits)
|
3066 |
|
3067 |
return Florence2Seq2SeqLMOutput(
|
3068 |
loss=loss,
|
|
|
2565 |
encoder_last_hidden_state: Optional[torch.FloatTensor] = None
|
2566 |
encoder_hidden_states: Optional[Tuple[torch.FloatTensor, ...]] = None
|
2567 |
encoder_attentions: Optional[Tuple[torch.FloatTensor, ...]] = None
|
2568 |
+
image_features: Optional[Tuple[torch.FloatTensor, ...]] = None
|
2569 |
|
2570 |
|
2571 |
FLORENCE2_START_DOCSTRING = r"""
|
|
|
3062 |
output = (logits,) + outputs[1:]
|
3063 |
return (loss,) + output if loss is not None else output
|
3064 |
|
3065 |
+
print(image_features)
|
|
|
3066 |
|
3067 |
return Florence2Seq2SeqLMOutput(
|
3068 |
loss=loss,
|