Video-ChatGPT

mbzuai-oryxCC-BY-4.0活跃维护

把大语言模型和适配时空视频表示的视觉编码器结合,让模型能围绕视频内容展开有意义的对话,并提供视频对话模型的量化评测基准。

[ACL 2024 🔥] Video-ChatGPT is a video conversation model capable of generating meaningful conversation about videos. It combines the capabilities of LLMs with a pretrained visual encoder adapted for spatiotemporal video representation. We also introduce a rigorous 'Quantitative Evaluation Benchmarking' for video-based conversational models.

暂无版本1,516star131fork同步于 2026-11-07 07:31 UTC

怎么上手

由 README 提炼,执行前请确认
conda create --name=video_chatgpt python=3.10
conda activate video_chatgpt
git clone https://github.com/mbzuai-oryx/Video-ChatGPT.git
cd Video-ChatGPT
pip install -r requirements.txt
export PYTHONPATH="./:$PYTHONPATH"
硬件要求按 README 说明

README 未说明具体显存或 GPU 型号要求

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

结合 LLM 与时空视频编码器的视频对话模型,可对视频生成有意义的对话

把大语言模型和适配时空视频表示的视觉编码器结合,让模型能围绕视频内容展开有意义的对话,并提供视频对话模型的量化评测基准。

核心能力

  • 结合 LLM 与适配时空视频表示的预训练视觉编码器
  • 提供 10 万条高质量视频指令对及可扩展标注框架
  • 提出首个视频对话定量评测框架并发布基准
  • 支持零样本视频问答与生成式性能评测
  • 开源训练代码、离线 demo 与 VideoInstruct100K 数据集

容易踩的坑

训练需额外安装 FlashAttention,且需 checkout v1.0.7 并先装 ninja;离线 demo 与训练需按 docs 下单独文档操作;模型、数据集与特征需从 README 给出的网盘或 HuggingFace 另行下载

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Oryx Video-ChatGPT :movie_camera: :speech_balloon:

    Video-ChatGPT: Towards Detailed Video Understanding via Large Vision and Language Models [ACL 2024 🔥]

    Muhammad Maaz* , Hanoona Rasheed* , Salman Khan and Fahad Khan

    * Equally contributing first authors

    Mohamed bin Zayed University of Artificial Intelligence

    Diverse Video-based Generative Performance Benchmarking (VCGBench-Diverse)

    PWC

    Video-based Generative Performance Benchmarking

    PWC

    Zeroshot Question-Answer Evaluation

    PWC PWC PWC PWC


    DemoPaperDemo ClipsOffline DemoTrainingVideo Instruction DataQuantitative EvaluationQualitative Analysis
    Demo YouTubepaperDemoClip-1 DemoClip-2 DemoClip-3 DemoClip-4Offline DemoTrainingVideo Instruction DatasetQuantitative EvaluationQualitative Analysis

    :loudspeaker: Latest Updates

    • Mar-28-25: Mobile-VideoGPT is released. It achieves excellent results on multiple benchmarks with 2x higher throughput. Check it out Mobile-VideoGPT :fire::fire:

    • Jun-14-24: VideoGPT+ is released. It achieves SoTA results on multiple benchmarks. Check it out at VideoGPT+ :fire::fire:
    • Jun-14-24: Semi-automatic video annotation pipeline is released. Check it out at GitHub, HuggingFace. :fire::fire:
    • Jun-14-24: VCGBench-Diverse Benchmarks are released. It provides 4,354 human annotated QA pairs across 18 video categories to extensively evaluate the performance of a video-conversation model. Check it out at GitHub, HuggingFace. :fire::fire:

    • May-16-24: Video-ChatGPT is accepted at ACL 2024! 🎊🎊
    • Sep-30-23: Our VideoInstruct100K dataset can be downloaded from HuggingFace/VideoInstruct100K. :fire::fire:
    • Jul-15-23: Our quantitative evaluation benchmark for Video-based Conversational Models now has its own dedicated website: https://mbzuai-oryx.github.io/Video-ChatGPT. :fire::fire:
    • Jun-28-23: Updated GitHub readme featuring benchmark comparisons of Video-ChatGPT against recent models - Video Chat, Video LLaMA, and LLaMA Adapter. Amid these advanced conversational models, Video-ChatGPT continues to deliver state-of-the-art performance.:fire::fire:
    • Jun-08-23 : Released the training code, offline demo, instructional data and technical report. All the resources including models, datasets and extracted features are available here. :fire::fire:
    • May-21-23 : Video-ChatGPT: demo released.

    Online Demo :computer:

    :fire::fire: You can try our demo using the provided examples or by uploading your own videos HERE. :fire::fire:

    :fire::fire: Or click the image to try the demo! :fire::fire: demo You can access all the videos we demonstrate on here.


    Video-ChatGPT Overview :bulb:

    Video-ChatGPT is a video conversation model capable of generating meaningful conversation about videos. It combines the capabilities of LLMs with a pretrained visual encoder adapted for spatiotemporal video representation.


    Contributions :trophy:

    • We introduce 100K high-quality video-instruction pairs together with a novel annotation framework that is scalable and generates a diverse range of video-specific instruction sets of high-quality.
    • We develop the first quantitative video conversation evaluation framework for benchmarking video conversation models.
    • Unique multimodal (vision-language) capability combining video understanding and language generation that is comprehensively evaluated using quantitative and qualitiative comparisons on video reasoning, creativitiy, spatial and temporal understanding, and action recognition tasks.

    Installation :wrench:

    We recommend setting up a conda environment for the project:

    conda create --name=video_chatgpt python=3.10
    conda activate video_chatgpt
    
    git clone https://github.com/mbzuai-oryx/Video-ChatGPT.git
    cd Video-ChatGPT
    pip install -r requirements.txt
    
    export PYTHONPATH="./:$PYTHONPATH"
    

    Additionally, install FlashAttention for training,

    pip install ninja
    
    git clone https://github.com/HazyResearch/flash-attention.git
    cd flash-attention
    git checkout v1.0.7
    python setup.py install
    

    Running Demo Offline :cd:

    To run the demo offline, please refer to the instructions in offline_demo.md.


    Training :train:

    For training instructions, check out train_video_chatgpt.md.


    Video Instruction Dataset :open_file_folder:

    We are releasing our 100,000 high-quality video instruction dataset that was used for training our Video-ChatGPT model. You can download the dataset from here. More details on our human-assisted and semi-automatic annotation framework for generating the data are available at VideoInstructionDataset.md.


    Quantitative Evaluation :bar_chart:

    Our paper introduces a new Quantitative Evaluation Framework for Video-based Conversational Models. To explore our benchmarks and understand the framework in greater detail, please visit our dedicated website: https://mbzuai-oryx.github.io/Video-ChatGPT.

    For detailed instructions on performing quantitative evaluation, please refer to QuantitativeEvaluation.md.

    Video-based Generative Performance Benchmarking and Zero-Shot Question-Answer Evaluation tables are provided for a detailed performance overview.

    Zero-Shot Question-Answer Evaluation

    ModelMSVD-QAMSRVTT-QATGIF-QAActivity Net-QA
    AccuracyScoreAccuracyScoreAccuracyScoreAccuracyScore
    FrozenBiLM32.2--16.8--41.0--24.7--
    Video Chat56.32.845.02.534.42.326.52.2
    LLaMA Adapter54.93.143.82.7--34.22.7
    Video LLaMA51.62.529.61.8--12.41.1
    Video-ChatGPT64.93.349.32.851.43.035.22.7

    Video-based Generative Performance Benchmarking

    Evaluation AspectVideo ChatLLaMA AdapterVideo LLaMAVideo-ChatGPT
    Correctness of Information2.232.031.962.40
    Detail Orientation2.502.322.182.52
    Contextual Understanding2.532.302.162.62
    Temporal Understanding1.941.981.821.98
    Consistency2.242.151.792.37

    Qualitative Analysis :mag:

    A Comprehensive Evaluation of Video-ChatGPT's Performance across Multiple Tasks.

    Video Reasoning Tasks :movie_camera:

    sample1


    Creative and Generative Tasks :paintbrush:

    sample5


    Spatial Understanding :globe_with_meridians:

    sample8


    Video Understanding and Conversational Tasks :speech_balloon:

    sample10


    Action Recognition :runner:

    sample22


    Question Answering Tasks :question:

    sample14


    Temporal Understanding :hourglass_flowing_sand:

    sample18


    Acknowledgements :pray:

    • LLaMA: A great attempt towards open and efficient LLMs!
    • Vicuna: Has the amazing language capabilities!
    • LLaVA: our architecture is inspired from LLaVA.
    • Thanks to our colleagues at MBZUAI for their essential contribution to the video annotation task, including Salman Khan, Fahad Khan, Abdelrahman Shaker, Shahina Kunhimon, Muhammad Uzair, Sanoojan Baliah, Malitha Gunawardhana, Akhtar Munir, Vishal Thengane, Vignagajan Vigneswaran, Jiale Cao, Nian Liu, Muhammad Ali, Gayal Kurrupu, Roba Al Majzoub, Jameel Hassan, Hanan Ghani, Muzammal Naseer, Akshay Dudhane, Jean Lahoud, Awais Rauf, Sahal Shaji, Bokang Jia, without which this project would not be possible.

    If you're using Video-ChatGPT in your research or applications, please cite using this BibTeX:

    @inproceedings{Maaz2023VideoChatGPT,
        title={Video-ChatGPT: Towards Detailed Video Understanding via Large Vision and Language Models},
        author={Maaz, Muhammad and Rasheed, Hanoona and Khan, Salman and Khan, Fahad Shahbaz},
        booktitle={Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL 2024)},
        year={2024}
    }
    

    License :scroll:

    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

    Looking forward to your feedback, contributions, and stars! :star2: Please raise any issues or questions here.