OpenGVLab / OpenGVLab/InternVideo

What is the proper way to preprocess image inputs for InternVideo2-Chat?

Open
#168 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.4k
Forks
160
PR merge metrics
No merged PRs in 30d

Description

Hi, thanks for your fantastic video foundation model! I was interested in exploring the capabilities of InternVideo2-Chat for both images and video. According to the Huggingface code, the model can take both image and video input (from modeling_videochat2.py):

image

However, I don't see any preprocessing and inference instructions for images. Could you please share what those are? Or are they simply to assume that the image is a single-frame video?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Hugging Face implementation in modeling_videochat2.py and trace how image and video inputs reach preprocessing and inference. Document the image-input procedure, including whether an image can be treated as a single-frame video, and show the expected usage clearly enough for users to reproduce it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, machine-learning
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.