YUME

stdstu12Apache-2.0更新放缓

Yume 是一个交互式世界模型,支持文本或图像驱动实时视频生成,可用于构建可交互的虚拟场景。

The official code of Yume

暂无版本685star44fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
./env_setup.sh fastvideo
pip install -r requirements.txt
硬件要求按 README 说明

代码在 A100 上测试;Windows 一键方案已在 RTX 4090 Laptop 16GB 显存上验证,建议至少 16GB 显存;训练 MVDT 框架需至少 16 张 A100。

16G 显存可跑需要 CUDA
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

开源交互式世界生成模型,用文本、图像或视频驱动长时视频世界

Yume 是一个交互式世界模型,支持文本或图像驱动实时视频生成,可用于构建可交互的虚拟场景。

核心能力

  • 基于掩码视频扩散 Transformer 训练
  • 提供 FramePack 式长视频训练代码
  • 支持 DDP/FSDP 长视频采样
  • 将真实相机轨迹转为离散键盘控制
  • 提供 Windows 一键安装运行 Web Demo

容易踩的坑

每次改代码后需重新执行 pip install . 或手动复制文件到虚拟环境;推理前需从 Hugging Face 下载权重并放到指定目录;5B 模型权重需放在当前目录下的 ./Yume-5B-720p。

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

最近发版

0 个版本

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

用户点评

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

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

    README 原文

    未翻译

    🔥🔥🔥 News!!

    • Dec 26, 2025: 🔥 We have released the Yume-5B model. Additionally, we have released the Yume-1.5 paper, which introduces a new interactive world foundation model.
    • July 23, 2025: 🔥 We released Yume-1.0. The first fully open-source real-world world model (including data, training/inference code, and weights).

    Yume: An Interactive World Generation Model

    Yume is a long-term project that aims to create an interactive, realistic, and dynamic world through the input of text, images, or videos.

    project page  arXiv(1.0)  arXiv(1.5)  YUME-14B-540P  YUME-5B-720P  YouTube(1.0)  YouTube(1.5) 

    • A distillation recipes for video DiT based on OSV. A Masked Video Diffusion Transformer training method.
    • FramePack-Like training code.
    • Long video generation method with DDP/FSDP sampling support
    • Dataset processing code that converts real-world camera trajectories into discrete keyboard controls.
    • Windows One-Click Install & Run

    🔧 Installation

    The code is tested on Python 3.10.0, CUDA 12.1 and A100.

    ./env_setup.sh fastvideo
    pip install -r requirements.txt
    

    You need to run pip install . after each code modification, or alternatively, you can copy the modified files directly into your virtual environment. For example, if I modified wan/image2video.py and my virtual environment is yume, I can copy the file to: envs/yume/lib/python3.10/site-packages/wan/image2video.py.

    📦 Windows One-Click Install & Run

    To facilitate the use and testing of Yume-5B, we provide a one-click solution for Windows to launch the Web Demo. Simply run run_oneclick_debug.bat and open the displayed URL in your browser.

    This program has been successfully tested on an RTX 4090 Laptop GPU (16GB). We recommend using a GPU with at least 16GB VRAM. Please adjust the sampling steps between 4 and 50 based on your GPU performance. Note that higher steps yield better quality but will result in slower generation speeds.

    📹 Demo

    Watch the video

    🚀 Inference

    We used 'InternVL-2B-Instruct' for refining prompt descriptions, as we found it may improve event generation capabilities. Alternatively, you can use other LLMs. If you don't need it, feel free to remove it.

    ODE

    For image-to-video generation, we use --jpg_dir="./jpg" to specify the input image directory and --caption_path="./caption.txt" to provide text conditioning inputs, where each line corresponds to a generation instance controlling 2-second video output.

    # Download the model weights and place them in Path_To_Yume.
    bash scripts/inference/sample_jpg.sh 
    

    We also consider generating videos using the data from ./val, where --test_data_dir="./val" specifies the location of the example data.

    # Download the model weights and place them in Path_To_Yume.
    bash scripts/inference/sample.sh 
    

    SDE

    We perform TTS sampling, where args.sde controls whether to use SDE-based sampling.

    # Download the model weights and place them in Path_To_Yume.
    bash scripts/inference/sample_tts.sh 
    

    For optimal results, we recommend keeping Actual distance, Angular change rate (turn speed), and View rotation speed within the range of 0.1 to 10.

    Key adjustment guidelines:

    1. When executing Camera remains still (·), reduce the Actual distance value
    2. When executing Person stands still, decrease both Angular change rate and View rotation speed values

    Note that these parameters (Actual distance, Angular change rate, and View rotation speed) do impact generation results. As an alternative approach, you may consider removing these parameters entirely for simplified operation.

    5B

    We perform sampling using the 5B model. First, download the weights from Hugging Face and place them in the current directory under ./Yume-5B-720p. args.T2V controls whether the model operates in text-to-video mode, and args.prompt specifies the input caption.

    # Download the model weights and place them in Path_To_Yume.
    bash scripts/inference/sample_5b.sh 
    

    🎯 Training & Distill

    For model training, we use args.MVDT to launch the MVDT framework, which requires at least 16 A100 GPUs. Loading T5 onto the CPU may help conserve GPU memory. We employ args.Distil to enable adversarial distillation.

    # Download the model weights and place them in Path_To_Yume.
    bash scripts/finetune/finetune.sh
    

    🧱 Dataset Preparation

    decode_camera_controls_from_c2w_sequence.py converts camera trajectories into keyboard directional controls. Please refer to https://github.com/Lixsp11/sekai-codebase to download the dataset. For the processed data format, refer to ./test_video.

    path_to_processed_dataset_folder/
    ├── Keys_None_Mouse_Down/ 
    │   ├── video_id.mp4
    │   ├── video_id.txt
    ├── Keys_None_Mouse_Up
    │──  ...
    └── Keys_S_Mouse_·
    

    The provided TXT file content record either camera motion control parameters or animation keyframe data, with the following field definitions:

    Start Frame: 2 #Starting frame number (begins at frame 2 at origin video)
    
    End Frame: 50 #Ending frame number
    
    Duration: 49 frames #Total duration
    
    Keys: W #Keyboard input
    
    Mouse: ↓ #Mouse action
    

    In scripts/finetune/finetune.sh, args.root_dir represents the path_to_processed_dataset_folder, and args.root_dir represents the full path to the Sekai dataset.

    📑 Development Plan

    • Dataset processing
      • Providing processed datasets
      • [√] Provide dataset processing functions
    • Code update
      • fp8 support
      • Better distillation methods
    • ​​Model Update
      • [√] Quantized and Distilled Models
      • [√] Models for 720p Resolution Generation​

    🤝 Contributing

    We welcome all contributions.

    Acknowledgement

    We learned and reused code from the following projects:

    Citation

    If you use Yume for your research, please cite our paper:

    @article{mao2025yume,
      title={Yume: An Interactive World Generation Model},
      author={Mao, Xiaofeng and Lin, Shaoheng and Li, Zhen and Li, Chuanhao and Peng, Wenshuo and He, Tong and Pang, Jiangmiao and Chi, Mingmin and Qiao, Yu and Zhang, Kaipeng},
      journal={arXiv preprint arXiv:2507.17744},
      year={2025}
    }
    @article{mao2025yume,
      title={Yume-1.5: A Text-Controlled Interactive World Generation Model},
      author={Mao, Xiaofeng and Li, Zhen and Li, Chuanhao and Xu, Xiaojie and Ying, Kaining and He, Tong and Pang, Jiangmiao and Qiao, Yu and Zhang, Kaipeng},
      journal={arXiv preprint arXiv:2512.22096},
      year={2025}
    }
    @inproceedings{mao2025osv,
      title={Osv: One step is enough for high-quality image to video generation},
      author={Mao, Xiaofeng and Jiang, Zhengkai and Wang, Fu-Yun and Zhang, Jiangning and Chen, Hao and Chi, Mingmin and Wang, Yabiao and Luo, Wenhan},
      booktitle={Proceedings of the Computer Vision and Pattern Recognition Conference},
      pages={12585--12594},
      year={2025}
    }