Code Monkey home page Code Monkey logo

Comments (2)

YunYunY avatar YunYunY commented on August 17, 2024

A follow-up question I have is, when the training input has 16 frames, isn't the long former == normal transformer? What's the meaning of setting window size here? No matter the size is 18 or 32, it's not smaller than 16. Then the temporal attention encoder is O(n^2) transformer right? What's the benefit of using Longformer then? Please correct me I misunderstood something.

Thank you.

from slowfast.

bomri avatar bomri commented on August 17, 2024

Hi @YunYunY,

Thank you for your comments.

To reproduce the results you should use the config and the code in this repository - ATTENTION_WINDOW: [18, 18, 18]. The misalignment in window size between the paper and the code is that different implementations of the Longformer model handle this value slightly different in terms of padding the input sequence and sliding windows size, and we moved from one implementation to the other [1] to [2].

Regarding the second comment, the sliding window is effective when evaluating full videos and the input sequence is much longer than 16 (250 frames for Kinetics-400). In this case, the Longformer attends locally using the sliding window and globally using the CLS token.

from slowfast.

Related Issues (17)

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.