zeyuren2002 commited on
Commit
12f8395
·
verified ·
1 Parent(s): beac8e7

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +72 -0
README.md CHANGED
@@ -1,3 +1,75 @@
1
  ---
2
  license: cc-by-nc-4.0
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
+ pipeline_tag: depth-estimation
4
+ tags:
5
+ - monocular-geometry
6
+ - point-map
7
+ - surface-normals
8
+ - instance-segmentation
9
+ - diffusion-transformer
10
  ---
11
+
12
+ # PINE: Point, Instance and Normal Estimation in One-Step Diffusion Model
13
+
14
+ Zeyu Ren, Jie Ni, Jiahao Wei, Hao Tang, Yongtai Liu, Zeyu Zhang, Rui Qian
15
+
16
+ [Code](https://github.com/AIGeeksGroup/PINE) | [Website](https://aigeeksgroup.github.io/PINE/)
17
+
18
+ PINE is a one-step Diffusion Transformer that predicts the point map, the surface normals and the instance map of an
19
+ image in one forward pass. Each map is a token stream with its own input and output layers; the streams share the
20
+ transformer blocks, and a stream mask decides which streams exchange tokens. A camera-aware ray encoding positions
21
+ every token by its camera ray, and grounding attention adds the affinity of frozen DINOv3 features to the attention
22
+ logits.
23
+
24
+ ## Models
25
+
26
+ All models run at `512×512` with one sampling step. Rel<sup>p</sup> is the point map error on seven zero-shot
27
+ datasets (DIODE, KITTI, NYUv2, ETH3D, HAMMER, iBims-1, Booster), with and without camera intrinsics.
28
+
29
+ | Model | File | DINOv3 encoder | Parameters | Rel<sup>p</sup> with K | Rel<sup>p</sup> without K |
30
+ | --- | --- | :---: | :---: | :---: | :---: |
31
+ | PINE-B | `pine-b-512.pth` (0.6 GB) | ViT-B/16 | 0.24 B | 4.69 | 5.62 |
32
+ | PINE-L | `pine-l-512.pth` (2.0 GB) | ViT-L/16 | 0.80 B | 3.76 | 4.70 |
33
+ | PINE-H | `pine-h-512.pth` (4.0 GB) | ViT-H+/16 | 1.85 B | 3.33 | 4.16 |
34
+
35
+ A file holds the EMA weights of the last training epoch. The frozen DINOv3 encoder is not part of the files: its
36
+ weights are gated. Request access on the [DINOv3 repository](https://github.com/facebookresearch/dinov3) and place
37
+ them in `pretrained/dinov3/`.
38
+
39
+ ## Usage
40
+
41
+ ```bash
42
+ git clone https://github.com/AIGeeksGroup/PINE.git && cd PINE
43
+ hf download zeyuren2002/PINE pine-l-512.pth --local-dir pretrained
44
+ IMAGE_DIR=assets/demo bash scripts/demo_l_512.sh
45
+ ```
46
+
47
+ ```python
48
+ import torch
49
+ from util.checkpoint import load_model
50
+
51
+ model = load_model('pretrained/pine-l-512.pth') # one sampling step
52
+ image = ... # (1, 3, H, W) in [-1, 1], H and W multiples of 16
53
+ with torch.amp.autocast('cuda', dtype=torch.bfloat16):
54
+ maps = model.generate(image.cuda(), intrinsics=None) # (1, 9, H, W): point map, normals, instance map
55
+ points, normals, instances = maps.float().chunk(3, dim=1)
56
+ normals = torch.nn.functional.normalize(normals, dim=1)
57
+ ```
58
+
59
+ See the [code repository](https://github.com/AIGeeksGroup/PINE) for installation, evaluation and training.
60
+
61
+ ## License
62
+
63
+ The weights are for non-commercial use only, under the
64
+ [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) license. The code is released under the Apache
65
+ License 2.0.
66
+
67
+ ## Citation
68
+
69
+ ```bibtex
70
+ @article{ren2026pine,
71
+ title={PINE: Point, Instance and Normal Estimation in One-Step Diffusion Model},
72
+ author={Ren, Zeyu and Ni, Jie and Wei, Jiahao and Tang, Hao and Liu, Yongtai and Zhang, Zeyu and Qian, Rui},
73
+ year={2026}
74
+ }
75
+ ```