Coder Social home page Coder Social logo

jpthu17 / hbi Goto Github PK

View Code? Open in Web Editor NEW
94.0 4.0 4.0 52.26 MB

[CVPR 2023 Highlight] Video-Text as Game Players: Hierarchical Banzhaf Interaction for Cross-Modal Representation Learning

License: Apache License 2.0

HTML 2.27% CSS 0.42% JavaScript 19.59% Python 77.73%
cross-modal-retrieval cvpr video-retrieval video-question-answering

hbi's People

Contributors

jpthu17 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hbi's Issues

Banzhaf Interaction questions

Thank you for your excellent work!
But I have a question, is the following code "banzhaf[:, i, j] = self.banzhaf_interaction(retrieve_logits, text_mask, video_mask, text_weight,video_weight, i, j)" missing a plus sign?

 for i in range(self.t_len):
            for j in range(self.v_len):
                for _ in range(self.num):
                    banzhaf[:, i, j] = self.banzhaf_interaction(retrieve_logits, text_mask, video_mask, text_weight,
                                                                    video_weight, i, j)
        banzhaf = banzhaf / self.num
        banzhaf = torch.einsum('btv,bt->btv', [banzhaf, text_mask])
        banzhaf = torch.einsum('btv,bv->btv', [banzhaf, video_mask])
        return banzhaf

What's the function of the following code in BanzhafInteraction Class

Thank you for your great work!
But I'm still wondering how the Banzhaf Interaction works in the following codes:

        s_t = (torch.rand((self.t_len)) > 0.5).long().to(retrieve_logits.device) 
        s_j = (torch.rand((self.v_len)) > 0.5).long().to(retrieve_logits.device) 
        s_t[i], s_j[j] = 0, 0

        _text_mask, _video_mask = text_mask.clone(), video_mask.clone()
        _text_mask[:, s_t] = 0
        _video_mask[:, s_j] = 0

Does the _text_mask[:, s_t] = 0 mean masking the first word token and second word token because values in s_t and s_j are only 1 and 0? Or I just have the wrong understanding about it.
any reply will be helpful!

Activity=Net训练参数问题

你好,请问对于Activity-Net数据集,max_words 与max_frames 都是64的情况下,v_rate0到t_rate1都是保持原来的MSR-VTT的标准吗,以及Activity-Net的训练的Batchsize是64还是128?

banzhaf_interaction

Did you ignore that _text_mask[:, i] = 0 when calculating banzhaf_value3?

Hi

您好,我想请问您会在近期放一个arxiv吗,我对您的论文非常感兴趣,如果可以的话希望可以尽快阅读到您的著作,感谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.