File size: 5,450 Bytes
64f63e9
 
55f10b8
64f63e9
 
a61978a
 
9d011a5
a61978a
64f63e9
 
 
 
55f10b8
 
a61978a
55f10b8
a61978a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
---
title: GeoNeXt
emoji: 🌐
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 4.44.1
python_version: "3.10"
app_file: app.py
pinned: false
license: apache-2.0
---

# GeoNeXt

## Video Generative Models as Geometry Learner

[Homepage](https://happy-hsy.github.io/projects/GeoNeXt/) Β· [Paper](https://arxiv.org/pdf/2608.28549) Β· [Models](https://huggingface.co/happy0612/GeoNeXt)

> **Video Generative Models as Geometry Learner**  
> Haosen Yang, Jifei Song, Zhensong Zhang, Xiatian Zhu\*, Jiankang Deng\*  
> **ECCV 2026**

This repository is the official implementation of **"Video Generative Models as Geometry Learner"**.

## Demo

https://github.com/user-attachments/assets/f07bffc9-1ad5-4d4d-82e4-ea2411397eff

## Updates

- `2026/08/31`: Inference code released.

## Framework

<p align="center">
  <img src="assets/fig2_final.png" alt="GeoNeXt framework" width="100%">
</p>

## Requirements

- Linux
- Python β‰₯ 3.10
- CUDA GPU with 24 GB VRAM (sufficient for inference)

> **Note:** GeoNeXt-Wan and GeoNeXt-SVD should be installed in separate environments.

### GeoNeXt-SVD

```bash
conda create -n geonext_svd python=3.10 -y
conda activate geonext_svd

git clone https://github.com/Creative-Intelligence-Studio/GeoNeXt.git
cd GeoNeXt
python -m pip install torch==2.3.1 torchvision==0.18.1 \
  --index-url https://download.pytorch.org/whl/cu121
python -m pip install -r requirements-svd.txt
python -m pip install -e .
```

### GeoNeXt-Wan

GeoNeXt includes the tested DiffSynth inference implementation under
`diffsynth/`; no separate DiffSynth checkout is required.

```bash
conda create -n geonext_wan python=3.10 -y
conda activate geonext_wan

git clone https://github.com/Creative-Intelligence-Studio/GeoNeXt.git
cd GeoNeXt
python -m pip install torch==2.3.1 torchvision==0.18.1 \
  --index-url https://download.pytorch.org/whl/cu121
python -m pip install -r requirements-wan.txt
python -m pip install -e .
```

The tested Wan dependency stack uses Diffusers 0.28.0, Transformers 4.40.1,
PEFT 0.7.0, and Accelerate 0.29.3. Avoid upgrading these packages independently.

## πŸ€— Pretrained Models

Our pretrained models are available on the Hugging Face Hub:

| Version | Hugging Face Model | Depth | Normal | #Params |
|---|---|:---:|:---:|---:|
| GeoNeXt-Wan | [happy0612/GeoNeXt-Wan](https://huggingface.co/happy0612/GeoNeXt/tree/main/GeoNeXt-Wan) | βœ… | βœ… | 1.42B |
| GeoNeXt-SVD | [happy0612/GeoNeXt-SVD](https://huggingface.co/happy0612/GeoNeXt/tree/main/GeoNeXt-SVD) | βœ… | βœ… | 1.52B |

The selected GeoNeXt checkpoint, base model, and VAE are downloaded
automatically on the first inference run and then reused from the Hugging Face
cache.

To download both GeoNeXt checkpoints manually instead:

```bash
hf download happy0612/GeoNeXt --local-dir checkpoints
```

Local model paths can still be supplied with `--checkpoint`, `--base-model`,
and `--vae-model` for offline use.

## Inference

The `--input` argument accepts either one image or a directory. Supported image
formats are JPEG, PNG, WebP, and BMP.

### GeoNeXt-Wan

```bash
conda activate geonext_wan

python inference.py \
  --input assets/input \
  --output outputs/wan \
  --steps 5
```

### GeoNeXt-SVD

```bash
conda activate geonext_svd

python inference.py \
  --backend svd \
  --input assets/input \
  --output outputs/svd \
  --steps 5
```

Run `python inference.py --help` for all shared options.
Mesh export is optional and is enabled only when `--export mesh` is provided.
Exported meshes use MoGe alignment by default. Use `--align-space relative`
explicitly to export a mesh without MoGe.

## Outputs

Both backends write the same directory structure:

```text
outputs/<backend>/
β”œβ”€β”€ depth_raw/         # Normalized disparity in [0, 1] (.npy)
β”œβ”€β”€ depth_vis/         # Colorized depth maps (.png)
β”œβ”€β”€ normal_raw/        # Surface normals in [-1, 1] (.npy)
β”œβ”€β”€ normal_vis/        # RGB normal visualizations (.png)
└── geometry/<image>/  # Optional depth, intrinsics, and mesh files
```

## Metric-scale alignment

Mesh export uses metric-space MoGe alignment by default. Activate the
corresponding backend environment and install the pinned MoGe-2 integration
once:

```bash
./scripts/setup_moge.sh third_party/MoGe
```

The setup script reuses the active environment's tested PyTorch installation
and does not modify its PyTorch, CUDA, Transformers, Diffusers, or NCCL packages.
Then export an aligned mesh with:

```bash
python inference.py \
  --backend wan \
  --input assets/input/case1.jpg \
  --output outputs/wan-moge \
  --export mesh
```

To export relative geometry without installing MoGe, add
`--align-space relative`.

## Web viewer

After exporting a mesh, start the viewer with:

```bash
python -m http.server 8000
```

Open `http://localhost:8000/viewer/` and select the exported `.ply` file.

## Citation

If GeoNeXt contributes to your work, please cite our paper:

```bibtex
@article{geonext2026,
  title   = {Video Generative Models as Geometry Learner},
  author  = {Yang, Haosen and Song, Jifei and Zhang, Zhensong and Zhu, Xiatian and Deng, Jiankang},
  journal = {arXiv preprint arXiv:2608.28549},
  year    = {2026}
}
```

## Acknowledgements

This release builds on Wan, Stable Video Diffusion, Hugging Face Diffusers,
DiffSynth, MoGe, and Trimesh. Please also follow the licenses and citation
requirements of those projects. See [NOTICE.md](NOTICE.md) for third-party
notices.