This project builds on top of DAMO-NLP-SG/VideoLLaMA2 to visualize spatial and temporal attention maps across video frames, generate captions, and overlay both using custom rendering pipelines.
π¬ Designed for research and debugging in video-language models (VLMs).
videollama2/
βββ VideoLLaMA2/ # Cloned official model (DAMO-NLP-SG)
βββ scripts/ # Setup/download automation
βββ assets/ # Logos, icons, visuals
βββ frames*/ # Intermediate extracted frames
βββ outputs/ # Generated overlays and videos
βββ *.py # Core scripts (visualization, overlay, etc.)
βββ .gitignore
βββ README.md
βββ requirements.txt
git clone https://github.com/nofilsiddiqui-2000/videollama2.git
cd videollama2
git clone https://github.com/DAMO-NLP-SG/VideoLLaMA2.git
cd VideoLLaMA2
git checkout audio_visual
cd ..
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
pip install flash-attn==2.5.8 --no-build-isolation
python videollama_attention_heatmap.py --config configs/videollama.yaml
python caption_video.py --input frames_v2/ --heatmap attention2.mp4 --output overlay.mp4
pip install -r requirements.txt
sudo apt install ffmpeg # Linux
choco install ffmpeg # Windows (via Chocolatey)
bash scripts/download_weights.sh
.pt, .npy, .mp4 using .gitignoreMuhammad Nofil Siddiqui
π Masterβs Student @ Concordia University
π LinkedIn
π« nofilsiddiqui2000@gmail.com
This repo is for research and academic purposes. See VideoLLaMA2βs license for original model usage.
295 commits
1 commits
Python
99.1%
This project builds on top of DAMO-NLP-SG/VideoLLaMA2 to visualize spatial and temporal attention maps across video frames, generate captions, and overlay both using custom rendering pipelines.
π¬ Designed for research and debugging in video-language models (VLMs).
videollama2/
βββ VideoLLaMA2/ # Cloned official model (DAMO-NLP-SG)
βββ scripts/ # Setup/download automation
βββ assets/ # Logos, icons, visuals
βββ frames*/ # Intermediate extracted frames
βββ outputs/ # Generated overlays and videos
βββ *.py # Core scripts (visualization, overlay, etc.)
βββ .gitignore
βββ README.md
βββ requirements.txt
git clone https://github.com/nofilsiddiqui-2000/videollama2.git
cd videollama2
git clone https://github.com/DAMO-NLP-SG/VideoLLaMA2.git
cd VideoLLaMA2
git checkout audio_visual
cd ..
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
pip install flash-attn==2.5.8 --no-build-isolation
python videollama_attention_heatmap.py --config configs/videollama.yaml
python caption_video.py --input frames_v2/ --heatmap attention2.mp4 --output overlay.mp4
pip install -r requirements.txt
sudo apt install ffmpeg # Linux
choco install ffmpeg # Windows (via Chocolatey)
bash scripts/download_weights.sh
.pt, .npy, .mp4 using .gitignoreMuhammad Nofil Siddiqui
π Masterβs Student @ Concordia University
π LinkedIn
π« nofilsiddiqui2000@gmail.com
This repo is for research and academic purposes. See VideoLLaMA2βs license for original model usage.
295 commits
1 commits
Python
99.1%