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", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,4 +5,99 @@ datasets:
|
|
| 5 |
base_model:
|
| 6 |
- alibaba-pai/Wan2.1-Fun-14B-Control
|
| 7 |
- alibaba-pai/Wan2.1-Fun-14B-InP
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
base_model:
|
| 6 |
- alibaba-pai/Wan2.1-Fun-14B-Control
|
| 7 |
- alibaba-pai/Wan2.1-Fun-14B-InP
|
| 8 |
+
tags:
|
| 9 |
+
- 4d-generation
|
| 10 |
+
- image-to-4d
|
| 11 |
+
- diffusion
|
| 12 |
+
- novel-view-synthesis
|
| 13 |
+
- point-trajectory
|
| 14 |
+
language:
|
| 15 |
+
- en
|
| 16 |
+
pipeline_tag: image-to-video
|
| 17 |
+
metrics:
|
| 18 |
+
- VBench
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
# MoGe4D: Geometry-Aware Single-Image 4D Synthesis via Dense Trajectory Generation
|
| 23 |
+
|
| 24 |
+
**Yanran Zhang, Ziyi Wang, Wenzhao Zheng†, Zheng Zhu, Jie Zhou, Jiwen Lu**
|
| 25 |
+
|
| 26 |
+
Department of Automation, Tsinghua University · GigaAI
|
| 27 |
+
|
| 28 |
+
[[Paper (arXiv)]](https://arxiv.org/abs/2512.05044) · [[Project Page]](https://ivg-yanranzhang.github.io/MoGe4D/) · [[GitHub]](https://github.com/Zhangyr2022/MoGe4D) · [[Dataset (TrajScene-60K)]](https://www.modelscope.cn/datasets/YanranZhang/TrajScene-60K)
|
| 29 |
+
|
| 30 |
+
> Accepted to **ECCV 2026**.
|
| 31 |
+
|
| 32 |
+
## 📄 Paper Summary
|
| 33 |
+
|
| 34 |
+
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.
|
| 35 |
+
|
| 36 |
+
**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.
|
| 37 |
+
|
| 38 |
+
**Contributions:**
|
| 39 |
+
- **TrajScene-60K** — 60K videos with dense 4D point trajectories (3M+ frames, ~12B 3D points).
|
| 40 |
+
- **4D-STraG** — a diffusion trajectory generator with *depth-guided motion normalization* and a *Motion Perception Module (MPM)*.
|
| 41 |
+
- **4D-ViSM** — a view-synthesis module rendering the 4D representation under arbitrary camera trajectories.
|
| 42 |
+
|
| 43 |
+
## 🧱 Model Structure
|
| 44 |
+
|
| 45 |
+
This repository releases the three trained components of MoGe4D:
|
| 46 |
+
|
| 47 |
+
| Path | Size | Description |
|
| 48 |
+
|---|---|---|
|
| 49 |
+
| `4D-STraG/diffusion_pytorch_model.safetensors` | ~31.9 GiB | 4D Scene Trajectory Generator (diffusion model, built on Wan2.1-14B) |
|
| 50 |
+
| `4D-ViSM/lora_diffusion_pytorch_model.safetensors` | ~1.36 GiB | 4D View Synthesis Module (LoRA adapter) |
|
| 51 |
+
| `VAE/vae/pytorch_model.bin` | ~484 MiB | Motion-sensitive VAE for trajectory signals |
|
| 52 |
+
| `VAE/{encoder,decoder}_prompt/pytorch_model.bin` | ~1–2 MiB | VAE prompt encoder/decoder |
|
| 53 |
+
| `VAE/{optimizer.bin, scheduler.bin, random_states_0.pkl}` | — | Training states for the VAE (optional, for resuming training) |
|
| 54 |
+
|
| 55 |
+
## 🛠️ Usage
|
| 56 |
+
|
| 57 |
+
### 1. Set up the environment
|
| 58 |
+
|
| 59 |
+
```bash
|
| 60 |
+
git clone https://github.com/Zhangyr2022/MoGe4D.git
|
| 61 |
+
cd MoGe4D
|
| 62 |
+
conda create -n MoGe4D python=3.10 && conda activate MoGe4D
|
| 63 |
+
conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia
|
| 64 |
+
pip install -r requirements.txt
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
Install third-party deps: [UniDepth](https://github.com/lpiccinelli-eth/UniDepth) and [diff-gaussian-rasterization](https://github.com/graphdeco-inria/diff-gaussian-rasterization).
|
| 68 |
+
|
| 69 |
+
### 2. Download the checkpoints
|
| 70 |
+
|
| 71 |
+
```bash
|
| 72 |
+
huggingface-cli download Yanran21/MoGe4D --local-dir ./models --resume-download
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
(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`.)
|
| 76 |
+
|
| 77 |
+
### 3. Inference
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
bash scripts/inference/infer.sh # whole pipeline: image → 4D scene → multi-view videos
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
See the [GitHub README](https://github.com/Zhangyr2022/MoGe4D) for training scripts and details.
|
| 84 |
+
|
| 85 |
+
## 📊 Results
|
| 86 |
+
|
| 87 |
+
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.
|
| 88 |
+
|
| 89 |
+
## 📖 Citation
|
| 90 |
+
|
| 91 |
+
```bibtex
|
| 92 |
+
@inproceedings{zhang2026moge4d,
|
| 93 |
+
title={Geometry-Aware Single-Image 4D Synthesis via Dense Trajectory Generation},
|
| 94 |
+
author={Zhang, Yanran and Wang, Ziyi and Zheng, Wenzhao and Zhu, Zheng and Zhou, Jie and Lu, Jiwen},
|
| 95 |
+
booktitle={European Conference on Computer Vision (ECCV)},
|
| 96 |
+
year={2026}
|
| 97 |
+
}
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
## 📧 Contact
|
| 101 |
+
|
| 102 |
+
- Yanran Zhang — zhangyr21@mails.tsinghua.edu.cn
|
| 103 |
+
|