Model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: Wan-AI/Wan2.2-TI2V-5B
|
| 4 |
+
library_name: pytorch
|
| 5 |
+
pipeline_tag: image-to-video
|
| 6 |
+
tags:
|
| 7 |
+
- 4d
|
| 8 |
+
- video-generation
|
| 9 |
+
- depth-estimation
|
| 10 |
+
- camera-pose-estimation
|
| 11 |
+
- novel-view-synthesis
|
| 12 |
+
- world-model
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# UGG
|
| 16 |
+
|
| 17 |
+
UGG is a video diffusion model that generates RGB, per-frame camera rays and depth together.
|
| 18 |
+
It is built on Wan2.2-TI2V-5B, extended to a mixture of transformers with RGB, ray and depth
|
| 19 |
+
experts (12.6B parameters in total). Whatever subset of the three modalities you supply, the
|
| 20 |
+
model fills in the rest. That makes one checkpoint cover six tasks:
|
| 21 |
+
|
| 22 |
+
| task | given | generated |
|
| 23 |
+
|---|---|---|
|
| 24 |
+
| video → 4D | all frames | depth + cameras |
|
| 25 |
+
| image + camera → 4D | first frame + trajectory | video + depth |
|
| 26 |
+
| first/last image + camera → 4D | first and last frames + trajectory | video + depth |
|
| 27 |
+
| text → 4D | prompt | video + depth + cameras |
|
| 28 |
+
| camera → 4D | trajectory (+ prompt) | video + depth |
|
| 29 |
+
| depth → 4D | depth (+ prompt, optional frames) | video + cameras |
|
| 30 |
+
|
| 31 |
+
Code, samples and the training recipe: **https://github.com/amanikiruga/UGG**
|
| 32 |
+
|
| 33 |
+
## Files
|
| 34 |
+
|
| 35 |
+
| file | contents |
|
| 36 |
+
|---|---|
|
| 37 |
+
| `ugg_release.safetensors` | the full UGG transformer (bf16) plus VAE latent normalisation statistics |
|
| 38 |
+
|
| 39 |
+
The Wan2.2 VAE and UMT5-XXL text encoder are not duplicated here. The code fetches them from
|
| 40 |
+
[`Wan-AI/Wan2.2-TI2V-5B`](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B).
|
| 41 |
+
|
| 42 |
+
## Usage
|
| 43 |
+
|
| 44 |
+
```bash
|
| 45 |
+
git clone https://github.com/amanikiruga/UGG && cd UGG
|
| 46 |
+
# environment: see the repo README
|
| 47 |
+
python infer.py task=video input=assets/bonn_balloon2/frames.mp4
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
```python
|
| 51 |
+
from ugg import UGG
|
| 52 |
+
|
| 53 |
+
model = UGG.from_pretrained() # downloads ugg_release.safetensors on first use
|
| 54 |
+
pred = model.video_to_4d("clip.mp4") # pred.rgb, pred.depth, pred.c2w, pred.intrinsics
|
| 55 |
+
pred.save("outputs/clip")
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
Output resolution is 288×384. Clip length must satisfy `num_frames % 4 == 2` (for example 10, 26 or 50).
|
| 59 |
+
Inference takes one 80 GB GPU.
|
| 60 |
+
|
| 61 |
+
## License
|
| 62 |
+
|
| 63 |
+
The UGG weights are released under the MIT license. The Wan2.2 base components they rely on
|
| 64 |
+
are distributed by Wan-AI under their own license.
|