Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ptp/components/models/vqa/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def forward(self, data_dict):
outputs = attention_enc_img
elif(self.output_mode == 'Fusion'):
# Fusion -- Concatenate attention-weighted image encodings and question encodings.
outputs = torch.cat([attention_enc_img, latent_q], dim=1)
outputs = torch.cat([attention_enc_img, enc_q], dim=1)
# print("outputs", outputs.shape)
# Add predictions to datadict.
data_dict.extend({self.key_outputs: outputs})
Expand Down