KangLiao commited on
Commit
dd6c027
·
verified ·
1 Parent(s): 45ef40e

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
@@ -23,7 +24,7 @@ tags:
23
  ![camera map collage](analysis/IRS-Camera.png)
24
 
25
  Per-image camera parameter annotations for the **IRS** dataset
26
- (a large synthetic indoor stereo dataset; 188,348 images = the left and right RGB renders of 6 scene archives: Office-1, Office-2, Home-1, Home-2, IRS_small and Store), 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.
27
 
28
  The collage above visualizes the camera maps on sample images — each
29
  pair shows the **up field** (green arrows: the projected gravity-up direction)
@@ -76,12 +77,42 @@ You can download the entire dataset using the following command:
76
  hf download KangLiao/IRS-Camera --repo-type dataset
77
  ```
78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  ### Caption Pipeline
80
- 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).
81
 
82
 
83
  ### Citation
84
- If you find the captioned dataset useful for your research or applications, please cite our paper using the following BibTeX:
85
 
86
  ```bibtex
87
  @article{liao2025puffin,
@@ -90,4 +121,12 @@ If you find the captioned dataset useful for your research or applications, plea
90
  journal={arXiv preprint arXiv:2510.08673},
91
  year={2025}
92
  }
 
 
 
 
 
 
 
93
  ```
 
 
4
  - image-to-3d
5
  - image-text-to-image
6
  - any-to-any
7
+ arxiv: 2609.04196
8
  tags:
9
  - Camera
10
  - 3D Vision
 
24
  ![camera map collage](analysis/IRS-Camera.png)
25
 
26
  Per-image camera parameter annotations for the **IRS** dataset
27
+ (a large synthetic indoor stereo dataset; 188,348 images = the left and right RGB renders of 6 scene archives: Office-1, Office-2, Home-1, Home-2, IRS_small and Store), 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.
28
 
29
  The collage above visualizes the camera maps on sample images — each
30
  pair shows the **up field** (green arrows: the projected gravity-up direction)
 
77
  hf download KangLiao/IRS-Camera --repo-type dataset
78
  ```
79
 
80
+ ### From Camera Parameters to Up and Latitude Fields
81
+
82
+ 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.
83
+
84
+ ```python
85
+ import json
86
+ import torch
87
+ from scripts.camera.geometry.camera import SimpleRadial
88
+ from scripts.camera.geometry.gravity import Gravity
89
+ from scripts.camera.geometry.perspective_fields import get_perspective_field
90
+ from scripts.camera.utils.conversions import fov2focal
91
+
92
+ with open("camera.json") as f:
93
+ annotation = json.load(f)
94
+ roll, pitch, vfov, k1 = (
95
+ annotation[key] for key in ("roll", "pitch", "vfov", "k1")
96
+ )
97
+
98
+ H, W = 512, 512
99
+ f = float(fov2focal(torch.tensor(vfov), H))
100
+ camera = SimpleRadial(torch.tensor(
101
+ [W, H, f, f, W / 2, H / 2, k1, 0.0]
102
+ ).float()).scale(torch.tensor([1.0, 1.0]))
103
+ gravity = Gravity.from_rp(torch.tensor(roll), torch.tensor(pitch))
104
+ up_field, latitude_field = get_perspective_field(camera, gravity)
105
+ # Shapes: [1, 2, H, W] and [1, 1, H, W]
106
+ ```
107
+
108
+ 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.
109
+
110
  ### Caption Pipeline
111
+ 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).
112
 
113
 
114
  ### Citation
115
+ If you find the captioned dataset useful for your research or applications, please cite the following papers using these BibTeX entries:
116
 
117
  ```bibtex
118
  @article{liao2025puffin,
 
121
  journal={arXiv preprint arXiv:2510.08673},
122
  year={2025}
123
  }
124
+
125
+ @article{liao2026puffinworld,
126
+ title={Puffin-World: Scaling a Unified Multimodal Model with Native 3D World States},
127
+ 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},
128
+ journal={arXiv preprint arXiv:2609.04196},
129
+ year={2026}
130
+ }
131
  ```
132
+