Code Monkey home page Code Monkey logo

Comments (2)

hangzhang-nlp avatar hangzhang-nlp commented on May 28, 2024 4
  1. Increasing the total number of frames will indeed increase the training time. Although it won't add to learnable parameters, the amount of computation involved in encoding video will increase.
  2. You can try to fix the frame rate. This modification is relatively easy to make in our framework. Since the video lengths in the training set vary significantly, some truncation and padding operations will be required.
  3. Using a higher frame length to pre-train Video-LLaMA may be better, but the training time will be longer. In some video pre-training works, such as the one mentioned in Figure 3 of the CLIP4Clip paper, it has been observed that increasing the frame length beyond eight frames only yields a marginal improvement.
  4. In the visual encoder (ViT and Q-Former), the frames are encoded independently. However, in the video Q-Former, the features of these frames are fused, resulting in an overall representation of the video.
  5. Sure, you can use pre-extracted features from other models to replace the BLIP-2 module in our architecture.
  6. The learnable modules in the Vision-Language Branch include: a) the position embedding layer, b) the Video Q-Former, and c) the Linear layer. These modules are optimized to effectively connect the output of the frozen visual encoder (BLIP-2) to the frozen LLMs (Language Model Modules)

References: Clip4Clip: https://arxiv.org/abs/2104.08860

from video-llama.

SushantGautam avatar SushantGautam commented on May 28, 2024

Also, I think there should be a config param. to specify total frames.
We could measure the performance differences too.

from video-llama.

Related Issues (20)

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.