Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jpthu17 authored Nov 16, 2023
1 parent d5716c3 commit 63ad5cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HBI/models/banzhaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def banzhaf_interaction(self, retrieve_logits, text_mask, video_mask, text_weigh

#########################
_text_mask[:, i] = 1
_video_mask[:, j] = 0

_text_weight0, _video_weight0 = text_weight.clone(), video_weight.clone()
_retrieve_logits0 = retrieve_logits.clone()
Expand All @@ -146,6 +147,7 @@ def banzhaf_interaction(self, retrieve_logits, text_mask, video_mask, text_weigh
banzhaf_value2 = (t2v_logits + v2t_logits) / 2.0

#########################
_text_mask[:, i] = 0
_video_mask[:, j] = 1

_text_weight0, _video_weight0 = text_weight.clone(), video_weight.clone()
Expand Down

0 comments on commit 63ad5cd

Please sign in to comment.