Image-to-Video
Diffusers
Safetensors
English
4d-generation
image-to-4d
diffusion
novel-view-synthesis
point-trajectory
Instructions to use Yanran21/MoGe4D with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Yanran21/MoGe4D with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Yanran21/MoGe4D", torch_dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
File size: 5,611 Bytes
d5d4ce7 d4e0e93 96ae90e 64744b2 96ae90e 64744b2 96ae90e 64744b2 96ae90e a702db9 96ae90e 64744b2 a702db9 96ae90e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | ---
license: apache-2.0
datasets:
- TempoFunk/webvid-10M
base_model:
- alibaba-pai/Wan2.1-Fun-14B-Control
- alibaba-pai/Wan2.1-Fun-14B-InP
tags:
- 4d-generation
- image-to-4d
- diffusion
- novel-view-synthesis
- point-trajectory
language:
- en
pipeline_tag: image-to-video
metrics:
- VBench
---
# [ECCV 2026] MoGe4D: Geometry-Aware Single-Image 4D Synthesis via Dense Trajectory Generation
<b>[Yanran Zhang](https://github.com/Zhangyr2022/)<sup>\*,1</sup>, [Ziyi Wang](https://wangzy22.github.io/)<sup>\*,1</sup>, [Wenzhao Zheng](https://wzzheng.net/#)<sup>β ,1</sup>, [Zheng Zhu](http://www.zhengzhu.net/)<sup>2</sup>, [Jie Zhou](https://scholar.google.com/citations?user=6a79aPwAAAAJ&hl=en)<sup>1</sup>, [Jiwen Lu](https://ivg.au.tsinghua.edu.cn/Jiwen_Lu/)<sup>1</sup></b>
<sup>1</sup>Department of Automation, Tsinghua University <sup>2</sup>GigaAI
<i><sup>*</sup>Equal Contribution <sup>β </sup>Corresponding Author</i>
<p align="center">
<a href="https://github.com/Zhangyr2022/MoGe4D"><img src="https://img.shields.io/badge/GitHub-Code-black?logo=github" alt="GitHub"></a>
<a href="https://arxiv.org/abs/2512.05044"><img src="https://img.shields.io/badge/arXiv-Paper-b31b1b?logo=arxiv&logoColor=white" alt="arXiv"></a>
<a href="https://ivg-yanranzhang.github.io/MoGe4D/"><img src="https://img.shields.io/badge/Project-Website-blue?logo=googlechrome&logoColor=white" alt="Project"></a>
<br>
<a href="https://www.modelscope.cn/models/YanranZhang/MoGe4D"><img src="https://img.shields.io/badge/π€%20ModelScope-Model-4e29ff" alt="ModelScope Model"></a>
<a href="https://huggingface.co/Yanran21/MoGe4D"><img src="https://img.shields.io/badge/π€%20HuggingFace-Model-ffd21e" alt="HuggingFace Model"></a>
<a href="https://www.modelscope.cn/datasets/YanranZhang/TrajScene-60K"><img src="https://img.shields.io/badge/π€%20ModelScope-Dataset-4e29ff" alt="ModelScope Dataset"></a>
</p>
## π Paper Summary
Generating interactive and dynamic 4D scenes from a single static image is a core challenge. Existing methods decouple geometry from motion β either *generate-then-reconstruct* (geometric inconsistency) or *reconstruct-then-generate* (limited, externally-constrained motion) β causing spatiotemporal inconsistency and poor generalization.
**MoGe4D** (Motion and Geometry-aware image-to-4D synthesis) is a geometry-conditioned framework that models a scene as **dense 4D point trajectories**. Starting from an initial geometric prior of the input image, it predicts future time-varying trajectories through a diffusion process, tightly coupling geometric modeling with motion generation. This yields 4D scenes with strong temporal coherence, geometry-aware consistency, and compelling novel-view synthesis.
**Contributions:**
- **TrajScene-60K** β 60K videos with dense 4D point trajectories (3M+ frames, ~12B 3D points).
- **4D-STraG** β a diffusion trajectory generator with *depth-guided motion normalization* and a *Motion Perception Module (MPM)*.
- **4D-ViSM** β a view-synthesis module rendering the 4D representation under arbitrary camera trajectories.
## π§± Model Structure
This repository releases the three trained components of MoGe4D:
| Path | Size | Description |
|---|---|---|
| `4D-STraG/diffusion_pytorch_model.safetensors` | ~31.9 GiB | 4D Scene Trajectory Generator (diffusion model, built on Wan2.1-14B) |
| `4D-ViSM/lora_diffusion_pytorch_model.safetensors` | ~1.36 GiB | 4D View Synthesis Module (LoRA adapter) |
| `VAE/vae/pytorch_model.bin` | ~484 MiB | Motion-sensitive VAE for trajectory signals |
| `VAE/{encoder,decoder}_prompt/pytorch_model.bin` | ~1β2 MiB | VAE prompt encoder/decoder |
| `VAE/{optimizer.bin, scheduler.bin, random_states_0.pkl}` | β | Training states for the VAE (optional, for resuming training) |
## π οΈ Usage
### 1. Set up the environment
```bash
git clone https://github.com/Zhangyr2022/MoGe4D.git
cd MoGe4D
conda create -n MoGe4D python=3.10 && conda activate MoGe4D
conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia
pip install -r requirements.txt
```
Install third-party deps: [UniDepth](https://github.com/lpiccinelli-eth/UniDepth) and [diff-gaussian-rasterization](https://github.com/graphdeco-inria/diff-gaussian-rasterization).
### 2. Download the checkpoints
```bash
huggingface-cli download Yanran21/MoGe4D --local-dir ./models --resume-download
```
(Also place the base backbones [Wan2.1-Fun-V1.1-14B-Control/InP](https://huggingface.co/alibaba-pai), [OmniMAE](https://dl.fbaipublicfiles.com/omnivore/omnimae_ckpts/vitb_pretrain.torch), and [UniDepth](https://huggingface.co/lpiccinelli/unidepth-v2-vitl14) under `./models`.)
### 3. Inference
```bash
bash scripts/inference/infer.sh # whole pipeline: image β 4D scene β multi-view videos
```
See the [GitHub README](https://github.com/Zhangyr2022/MoGe4D) for training scripts and details.
## π Results
MoGe4D delivers superior geometric consistency, dynamic realism, and visual fidelity over decoupled approaches (e.g., generate-then-reconstruct with VGGT). Please refer to the paper for quantitative metrics and qualitative comparisons.
## π Citation
```bibtex
@inproceedings{zhang2026moge4d,
title={Geometry-Aware Single-Image 4D Synthesis via Dense Trajectory Generation},
author={Zhang, Yanran and Wang, Ziyi and Zheng, Wenzhao and Zhu, Zheng and Zhou, Jie and Lu, Jiwen},
booktitle={European Conference on Computer Vision (ECCV)},
year={2026}
}
```
## π§ Contact
- Yanran Zhang β zhangyr21@mails.tsinghua.edu.cn
|