KangLiao commited on
Commit
5788d56
·
verified ·
1 Parent(s): b32ba01

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
  ![camera map collage](analysis/APTv2-Camera.png)
22
 
23
  Per-image camera parameter annotations for the **APTv2** dataset
24
- (an animal pose estimation & tracking benchmark; 41,569 images across 9 shards), 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)
@@ -73,12 +74,42 @@ You can download the entire dataset using the following command:
73
  hf download KangLiao/APTv2-Camera --repo-type dataset
74
  ```
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  ### Caption Pipeline
77
- 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).
78
 
79
 
80
  ### Citation
81
- If you find the captioned dataset useful for your research or applications, please cite our paper using the following BibTeX:
82
 
83
  ```bibtex
84
  @article{liao2025puffin,
@@ -87,4 +118,12 @@ If you find the captioned dataset useful for your research or applications, plea
87
  journal={arXiv preprint arXiv:2510.08673},
88
  year={2025}
89
  }
 
 
 
 
 
 
 
90
  ```
 
 
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
  ![camera map collage](analysis/APTv2-Camera.png)
23
 
24
  Per-image camera parameter annotations for the **APTv2** dataset
25
+ (an animal pose estimation & tracking benchmark; 41,569 images across 9 shards), 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)
 
74
  hf download KangLiao/APTv2-Camera --repo-type dataset
75
  ```
76
 
77
+ ### From Camera Parameters to Up and Latitude Fields
78
+
79
+ 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.
80
+
81
+ ```python
82
+ import json
83
+ import torch
84
+ from scripts.camera.geometry.camera import SimpleRadial
85
+ from scripts.camera.geometry.gravity import Gravity
86
+ from scripts.camera.geometry.perspective_fields import get_perspective_field
87
+ from scripts.camera.utils.conversions import fov2focal
88
+
89
+ with open("camera.json") as f:
90
+ annotation = json.load(f)
91
+ roll, pitch, vfov, k1 = (
92
+ annotation[key] for key in ("roll", "pitch", "vfov", "k1")
93
+ )
94
+
95
+ H, W = 512, 512
96
+ f = float(fov2focal(torch.tensor(vfov), H))
97
+ camera = SimpleRadial(torch.tensor(
98
+ [W, H, f, f, W / 2, H / 2, k1, 0.0]
99
+ ).float()).scale(torch.tensor([1.0, 1.0]))
100
+ gravity = Gravity.from_rp(torch.tensor(roll), torch.tensor(pitch))
101
+ up_field, latitude_field = get_perspective_field(camera, gravity)
102
+ # Shapes: [1, 2, H, W] and [1, 1, H, W]
103
+ ```
104
+
105
+ 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.
106
+
107
  ### Caption Pipeline
108
+ 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).
109
 
110
 
111
  ### Citation
112
+ If you find the captioned dataset useful for your research or applications, please cite the following papers using these BibTeX entries:
113
 
114
  ```bibtex
115
  @article{liao2025puffin,
 
118
  journal={arXiv preprint arXiv:2510.08673},
119
  year={2025}
120
  }
121
+
122
+ @article{liao2026puffinworld,
123
+ title={Puffin-World: Scaling a Unified Multimodal Model with Native 3D World States},
124
+ 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},
125
+ journal={arXiv preprint arXiv:2609.04196},
126
+ year={2026}
127
+ }
128
  ```
129
+