KangLiao commited on
Commit
c1f14a0
·
verified ·
1 Parent(s): d0f42d6

Update Puffin-World camera documentation

Browse files
Files changed (1) hide show
  1. README.md +42 -3
README.md CHANGED
@@ -4,6 +4,7 @@ task_categories:
4
  - image-to-3d
5
  - image-text-to-image
6
  - any-to-any
 
7
  tags:
8
  - Camera
9
  - 3D Vision
@@ -21,7 +22,7 @@ tags:
21
 
22
  Per-frame **camera parameter** annotations for the **MVS-Synth** dataset
23
  (**120 scenes**; **11,991** valid per-frame annotations),
24
- captioned by the [**Puffin-World**](https://github.com/KangLiao929/Puffin) model. More captioned datasets are provided in our [**Puffin-16M**](https://kangliao929.github.io/projects/puffin-16m/) website.
25
 
26
  The collage above visualizes the camera maps on sample images — each
27
  pair shows the **up field** (green arrows: the projected gravity-up direction)
@@ -80,12 +81,42 @@ You can download the entire dataset using the following command:
80
  hf download KangLiao/MVS-Synth-Absolute-Camera --repo-type dataset
81
  ```
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  ### Caption Pipeline
84
- Beyond this captioned dataset, we also release **a complete captioning pipeline** for annotating camera parameters for arbitrary datasets, analyzing camera parameter distributions, and visualizing the corresponding camera maps. The pipeline is available in our [GitHub repository](https://github.com/KangLiao929/Puffin).
85
 
86
 
87
  ### Citation
88
- If you find the captioned dataset useful for your research or applications, please cite our paper using the following BibTeX:
89
 
90
  ```bibtex
91
  @article{liao2025puffin,
@@ -94,4 +125,12 @@ If you find the captioned dataset useful for your research or applications, plea
94
  journal={arXiv preprint arXiv:2510.08673},
95
  year={2025}
96
  }
 
 
 
 
 
 
 
97
  ```
 
 
4
  - image-to-3d
5
  - image-text-to-image
6
  - any-to-any
7
+ arxiv: 2609.04196
8
  tags:
9
  - Camera
10
  - 3D Vision
 
22
 
23
  Per-frame **camera parameter** annotations for the **MVS-Synth** dataset
24
  (**120 scenes**; **11,991** valid per-frame annotations),
25
+ captioned by the [**Puffin-World**](https://huggingface.co/ACERobotics/Puffin-World) model. More captioned datasets are provided in our [**Puffin-16M**](https://kangliao929.github.io/projects/puffin-16m/) website.
26
 
27
  The collage above visualizes the camera maps on sample images — each
28
  pair shows the **up field** (green arrows: the projected gravity-up direction)
 
81
  hf download KangLiao/MVS-Synth-Absolute-Camera --repo-type dataset
82
  ```
83
 
84
+ ### From Camera Parameters to Up and Latitude Fields
85
+
86
+ The released `(roll, pitch, vfov, k1)` annotations can be converted into the dense perspective-field representation used by Puffin-World. The conversion computes focal length from `vfov`, constructs a radial camera, and maps roll and pitch to the gravity direction. [`get_perspective_field`](https://github.com/KangLiao929/Puffin/blob/main/Puffin-World/scripts/camera/geometry/perspective_fields.py) then returns a normalized 2-channel **up field** and a 1-channel **latitude field**. The up field encodes the projected world-up direction at every pixel, while the latitude field measures each viewing ray's angular elevation relative to the horizon.
87
+
88
+ ```python
89
+ import json
90
+ import torch
91
+ from scripts.camera.geometry.camera import SimpleRadial
92
+ from scripts.camera.geometry.gravity import Gravity
93
+ from scripts.camera.geometry.perspective_fields import get_perspective_field
94
+ from scripts.camera.utils.conversions import fov2focal
95
+
96
+ with open("camera.json") as f:
97
+ annotation = json.load(f)
98
+ roll, pitch, vfov, k1 = (
99
+ annotation[key] for key in ("roll", "pitch", "vfov", "k1")
100
+ )
101
+
102
+ H, W = 512, 512
103
+ f = float(fov2focal(torch.tensor(vfov), H))
104
+ camera = SimpleRadial(torch.tensor(
105
+ [W, H, f, f, W / 2, H / 2, k1, 0.0]
106
+ ).float()).scale(torch.tensor([1.0, 1.0]))
107
+ gravity = Gravity.from_rp(torch.tensor(roll), torch.tensor(pitch))
108
+ up_field, latitude_field = get_perspective_field(camera, gravity)
109
+ # Shapes: [1, 2, H, W] and [1, 1, H, W]
110
+ ```
111
+
112
+ Run the example from the `Puffin-World` directory. Use [`plot_vector_fields` and `plot_latitudes`](https://github.com/KangLiao929/Puffin/blob/main/Puffin-World/scripts/camera/visualization/viz2d.py) to render up-field arrows and latitude heatmaps or contours. See [`save_pf_visualization`](https://github.com/KangLiao929/Puffin/blob/main/Puffin-World/scripts/demo/physics_perception.py) for an end-to-end visualization example.
113
+
114
  ### Caption Pipeline
115
+ Beyond this captioned dataset, we also release **a complete captioning pipeline** for annotating camera parameters for arbitrary datasets, analyzing camera parameter distributions, and visualizing the corresponding camera maps. The pipeline is available in our [GitHub repository](https://github.com/KangLiao929/Puffin/blob/main/Puffin-World/documents/ANNOTATION_CAMERA.md).
116
 
117
 
118
  ### Citation
119
+ If you find the captioned dataset useful for your research or applications, please cite the following papers using these BibTeX entries:
120
 
121
  ```bibtex
122
  @article{liao2025puffin,
 
125
  journal={arXiv preprint arXiv:2510.08673},
126
  year={2025}
127
  }
128
+
129
+ @article{liao2026puffinworld,
130
+ title={Puffin-World: Scaling a Unified Multimodal Model with Native 3D World States},
131
+ author={Liao, Kang and Luo, Yihang and Wu, Xiao-Ming and Jin, Linyi and Wu, Size and Lin, Chunyu and Zhao, Yao and Wang, Fei and Li, Wei and Loy, Chen Change},
132
+ journal={arXiv preprint arXiv:2609.04196},
133
+ year={2026}
134
+ }
135
  ```
136
+