ChronoMagic-Bench

PKU-YuanGroupApache-2.0更新放缓

ChronoMagic-Bench 是 NeurIPS 2024 提出的文本到延时视频生成评测基准,用变形评估衡量扩散模型生成延时视频的质量。

[NeurIPS 2024 D&B Spotlight🔥] ChronoMagic-Bench: A Benchmark for Metamorphic Evaluation of Text-to-Time-lapse Video Generation

暂无版本214star15fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
pip install -r requirements.txt
huggingface-cli download --repo-type model BestWishYsh/ChronoMagic-Bench --local-dir BestWishYsh/ChronoMagic-Bench
硬件要求按 README 说明

README 未说明显存与 GPU 型号要求;需下载 cotracker2.pth 与 InternVideo2 权重,实际推理依赖 GPU。

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

项目说明

由 README 自动翻译提炼

评测文生延时视频生成模型的基准,用物理化学生物变化考察生成质量

ChronoMagic-Bench 是 NeurIPS 2024 提出的文本到延时视频生成评测基准,用变形评估衡量扩散模型生成延时视频的质量。

核心能力

  • 用自由文本提示生成延时视频,考察物理化学生物先验
  • 提供 MTScore、CHScore、GPT4o-MTScore 三类指标
  • 额外支持 UMT-FVD 与 UMTScore 评估
  • 按 prompt ID 命名视频即可批量评测多个模型
  • 提供评测提示词列表与参考视频,可提交 HF 榜单

容易踩的坑

需单独编译安装 flash-attn 的 layer_norm 子包;评测视频必须按 .mp4 命名,否则无法计算文本相关性;GPT4o-MTScore 需自备 OpenAI API key,UMT 指标需另行计算并手动填入 JSON。

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

最近发版

0 个版本

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

用户点评

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

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

    README 原文

    未翻译

    hf_space hf_space arXiv Home Page Dataset Dataset Dataset Download zhihu zhihu License github

    Open-Sora Plan: Open-Source Large Video Generation Model Bin Lin, Yunyang Ge and Xinhua Cheng etc. github github arXiv

    Helios: Real Real-Time Long Video Generation Model Shenghai Yuan, Jinfa Huang and Xianyi He etc. github github arXiv

    OpenS2V-Nexus: A Detailed Benchmark and Million-Scale Dataset for Subject-to-Video Generation Shenghai Yuan, Xianyi He and Yufan Deng etc. github github arXiv

    ConsisID: Identity-Preserving Text-to-Video Generation by Frequency Decomposition Shenghai Yuan, Jinfa Huang and Xianyi He etc. github github arXiv

    MagicTime: Time-lapse Video Generation Models as Metamorphic Simulators Shenghai Yuan, Jinfa Huang and Yujun Shi etc. github github arXiv

    📣 News

    • ⏳⏳⏳ Evaluate more Text-to-Video Generation Models via ChronoMagic-Bench.
    • [2026.03.08] 👋 We introduce Helios, a breakthrough video generation model that achieves minute-scale, high-quality video synthesis at 19.5 FPS on a single H100 GPU — without relying on conventional long video anti-drifting strategies or standard video acceleration techniques. Welcome to check Technical Report!
    • [2024.12.31] 🔥 We further evaluate the widely popular Sora, which struggles to generate a diverse range of time-lapse videos effectively. This suggests that the generation of high-quality metamorphic videos remains an area in need of further exploration. The results are available here.
    • [2024.09.30] 🔥 We have updated the calculation of the CHScore, making it more robust to temporally coherent disappearance of points. You can click here for detailed implementation.
    • [2024.09.26] ✨ Our paper is accepted by NeurIPS 2024 D&B track as a spotlight present.
    • [2024.08.13] 🔥 We further evaluate EasyAnimate-V3 and CogVideoX-2B. The results are available here.
    • [2024.06.30] 🔥 We release the code of the "Multi-Aspect Data Preprocessing", which is used to process the ChronoMagic-Pro dataset. Please click here and here to see more details.
    • [2024.06.29] 🔥 Support evaluating customized Text-to-Video models. The code and instructions are available in this repo.
    • [2024.06.28] 🔥 We release the ChronoMagic-Pro and ChronoMagic-ProH datasets. The datasets include 460K and 150K time-lapse video-text pairs respectively and can be downloaded at HF-Dataset-Pro and HF-Dataset-ProH.
    • [2024.06.27] 🔥 We release the arXiv paper and Leaderboard for ChronoMagic-Bench, and you can click here to read the paper and here to see the leaderboard.
    • [2024.06.26] 🔥 We release the testing prompts, reference videos and generated results by different models in ChronoMagic-Bench, and you can click here to see more details.
    • [2024.06.25] 🔥 All codes & datasets are coming soon! Stay tuned 👀!

    😮 Highlights

    ChronoMagic-Bench can reflect the physical prior capacity of Text-to-Video Generation Model.

    Resources
    • ChronoMagic-Bench: including 1649 time-lapse video-text pairs. (captioned by GPT-4o)
    • ChronoMagic-Bench-150: including 150 time-lapse video-text pairs. (captioned by GPT-4o)
    • ChronoMagic: including 2265 time-lapse video-text pairs. (captioned by GPT-4V)
    • ChronoMagic-Pro: including 460K time-lapse video-text pairs. (captioned by ShareGPT4Video)
    • ChronoMagic-ProH: including 150K time-lapse video-text pairs. (captioned by ShareGPT4Video)

    :mega: Overview

    In contrast to existing benchmarks, ChronoMagic-Bench emphasizes generating videos with high persistence and strong variation, i.e., metamorphic time-lapse videos with high physical prior content.

    We specifically design four major categories for time-lapse videos (as shown below), including biological, human-created, meteorological, and physical videos, and extend these to 75 subcategories. Based on this, we construct ChronoMagic-Bench, comprising 1,649 prompts and their corresponding reference time-lapse videos.

    :mortar_board: Evaluation Results

    We visualize the evaluation results of various open-source and closed-source T2V generation models across ChronoMagic-Bench.

    :trophy: Leaderboard

    See numeric values at our Leaderboard :1st_place_medal::2nd_place_medal::3rd_place_medal:

    or you can run it locally:

    cd LeaderBoard
    python app.py
    

    ⚙️ Requirements and Installation

    We recommend the requirements as follows.

    Environment

    git clone --depth=1 https://github.com/PKU-YuanGroup/ChronoMagic-Bench.git
    cd ChronoMagic-Bench
    conda create -n chronomagic python=3.10
    conda activate chronomagic
    
    # install base packages
    pip install -r requirements.txt
    
    # install flash-attn
    git clone https://github.com/Dao-AILab/flash-attention.git
    cd flash-attention/csrc/layer_norm && pip install .
    cd ../../../
    rm -r flash-attention
    

    Download Checkpoints

    huggingface-cli download --repo-type model \
    BestWishYsh/ChronoMagic-Bench \
    --local-dir BestWishYsh/ChronoMagic-Bench
    

    :bookmark_tabs: Benchmark Prompts

    We provide evaluation prompt lists of ChronoMagic-Bench here or here. You can use this to sample videos for evaluation of your model. We also provide the reference videos for the corresponding evaluation prompts here.

    :hammer: Usage

    Use ChronoMagic-Bench to evaluate videos, and video generative models.

    Prepare Videos for Evaluation

    The generated videos should be named corresponding to the prompt ID in ChronoMagic-Bench and placed in the evaluation folder, which is structured as follows. We also provide input examples in the 'toy_video' .

    # for open-source models
    `-- input_video_folder
        `-- model_name_a
            |-- 1
            |   |-- 3d_printing_08.mp4
            |   `-- ...
            |-- 2
            |   |-- 3d_printing_08.mp4
            |   `-- ...
            `-- 3
                |-- 3d_printing_08.mp4
                `-- ...
        `-- model_name_b
            |-- 1
            |   |-- 3d_printing_08.mp4
            |   `-- ...
            |-- 2
            |   |-- 3d_printing_08.mp4
            |   `-- ...
            `-- 3
                |-- 3d_printing_08.mp4
                `-- ...
                
    # for close-source models
    -- input_video_folder
        |-- model_name_a
        |   |-- 3d_printing_08.mp4
        |   `-- animal_04.mp4
        |   `-- ...
        |-- model_name_b
        |   |-- 3d_printing_08.mp4
        |   `-- ...
        `-- ...
    

    The filenames of all videos to be evaluated should be "videoid.mp4". For example, if the videoid is 3d_printing_08, the video filename should be "3d_printing_08.mp4". If this naming convention is not followed, the text relevance cannot be evaluated.

    Get MTScore, CHScore and GPT4o-MTScore

    We provide output examples in the 'results'. You can run the following commands for testing, then modify the relevant parameters (such as model_names, input_folder, model_pth and openai_api) to suit the text-to-video (T2V) generation model you want to evaluate.

    python evaluate.py \
      --eval_type "open" \
      --model_names test \
      # or more than one model
      # --model_names name1 name2  \
      --input_folder toy_video \
      --output_folder results \
      --video_frames_folder video_frames_folder_temp \
      --model_pth_CHScore cotracker2.pth \
      --model_pth_MTScore InternVideo2-stage2_1b-224p-f4.pt \
      --num_workers 8 \
      --openai_api "sk-UybXXX" \
    

    If you only want to evaluate any one of the metrics instead of calculating all of them, you can follow the step below. Before running, please modify the parameters in 'xxx.sh' as needed. (If you want to obtain the JSON to submit to the leaderboard, you can organize the output files in MTScore / CHScore / GPT4o-MTScore according to 'results' and then proceed with the following steps.)

    # for MTScore
    cd MTScore
    bash get_chscore.sh
    
    # for CHScore
    cd CHScore
    bash get_mtscore.sh
    
    # for GPT4o-MTScore
    cd GPT4o_MTScore
    bash get_gp4omtscore.sh
    

    Get UMT-FVD and UMTScore

    Please refer to the folder UMT for how to compute the UMTScore.

    Get File and Submit to Leaderboard

    python get_uploaded_json.py \
      --input_path results/all \
      --output_path results
    

    After completing the above steps, you will obtain ChronoMagic-Bench-Input.json, and then you need to manually fill the JSON with UMT-FVD and UMTScore (as we calculate them separately). Finally, you can submit the JSON to HuggingFace.

    :surfer: Sampled Videos

    Dataset Download

    To facilitate future research and to ensure full transparency, we release all the videos we sampled and used for ChronoMagic-Bench evaluation. You can download them on Hugging Face. We also provide detailed explanations of the sampled videos and detailed setting for the models under evaluation here.

    🐳 ChronoMagicPro Dataset

    ChronoMagic-Pro with 460K time-lapse videos, each accompanied by a detailed caption. We also released the 150K subset (ChronoMagic-ProH), which is a higher quality subset. All the dataset can be downloaded at here and here, or you can download it with the following command. Some samples can be found on our Project Page.

    huggingface-cli download --repo-type dataset \
    --resume-download BestWishYsh/ChronoMagic-Pro \  # or BestWishYsh/ChronoMagic-ProH
    --local-dir BestWishYsh/ChronoMagic-Pro \  # or BestWishYsh/ChronoMagic-ProH
    --local-dir-use-symlinks False
    

    Please refer to the folder Multi-Aspect_Preprocessing for how ChronoMagic-Pro to process this data.

    👍 Acknowledgement

    🔒 License

    • The majority of this project is released under the Apache 2.0 license as found in the LICENSE file.
    • The service is a research preview. Please contact us if you find any potential violations. ([email protected])

    ✏️ Citation

    If you find our paper and code useful in your research, please consider giving a star :star: and citation :pencil:.

    @article{yuan2024chronomagic,
      title={Chronomagic-bench: A benchmark for metamorphic evaluation of text-to-time-lapse video generation},
      author={Yuan, Shenghai and Huang, Jinfa and Xu, Yongqi and Liu, Yaoyang and Zhang, Shaofeng and Shi, Yujun and Zhu, Rui-Jie and Cheng, Xinhua and Luo, Jiebo and Yuan, Li},
      journal={Advances in Neural Information Processing Systems},
      volume={37},
      pages={21236--21270},
      year={2024}
    }
    

    🤝 Contributors