Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to upload the code related to ‘w/o. all’ in the ablation experiment? #2

Open
xia-zhe opened this issue Sep 15, 2024 · 0 comments

Comments

@xia-zhe
Copy link

xia-zhe commented Sep 15, 2024

I followed the ‘retaining only the simple fusion operation of input audio, video, and question features’ as described in the text, but got much less than the results described in the table.

def forward(self, audio, visual,question):
audio_feat = self.input_a(audio) # [B, T, C]
visual_feat = self.input_v(visual) # [B, T, C]
qst_feat = self.input_qst(question).squeeze(-2) # [B, C]

    ### 2. Fusion **************************************************************************
    av_feat = torch.cat((audio_feat, visual_feat), dim=1)
    av_feat = self.av_fusion_tanh(av_feat)
    av_feat = self.av_fusion_fc(av_feat)
    av_feat = av_feat.mean(dim=-2)

    avq_feat = torch.mul(av_feat, qst_feat)          # [batch_size, embed_size]
    avq_feat = self.avq_fusion_tanh(avq_feat)

    ### 3. Answer prediction moudule *************************************************************
    answer_pred = self.answer_pred_fc(avq_feat)  # [batch_size, ans_vocab_size=42]

    return answer_pred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant