Comments (2)
- 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.
- 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.
- 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.
- 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.
- Sure, you can use pre-extracted features from other models to replace the BLIP-2 module in our architecture.
- 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.
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)
- RuntimeError: Error(s) in loading state_dict for LlamaForCausalLM: size mismatch for model.embed_tokens.weight: copying a param with shape torch.Size([32001, 4096]) from checkpoint, the shape in current model is torch.Size([32000, 4096]). size mismatch for lm_head.weight: copying a param with shape torch.Size([32001, 4096]) from checkpoint, the shape in current model is torch.Size([32000, 4096]).
- Dear author, How much time does it cost to train this model? With what type of GPU cards?
- Unable to access LLaMA weights to build Vicuna-7B HOT 1
- inf value occurs during forwarding process when fine-tuning VL branch with LLAVA-150K+MiniGPT4-3.5K+webvid-instruct HOT 1
- example model deployment
- A demo without gradio HOT 1
- multi-cards training
- Frame-aware? HOT 1
- Hugging Face demo runtime error HOT 1
- How to select the video encoder of the chinese version with BiLLA or Ziya ? HOT 2
- Incorrect model inference (what went wrong in my setup)
- What is the input sample of the forward function in videollama HOT 1
- 如何提升下游任务上finetune的效果
- How To: Use hugging face checkpoints downloaded on a CentOS machine HOT 4
- Unable to launch demo HOT 2
- Is video-LLaMA capable of comprehending videos that have faces surrounded by bounding boxes(face recognition)
- Evaluation on large-scale dataset
- Compatibility b/w torch and torchvision?
- .
- Possible bugs in LR scheduler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from video-llama.