CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 19:59:20 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/facebookresearch/pytorch3d.git
etag: W/"64efbf5181e06ab0826692607389bff2"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=DC6IGBH5IZA7l6sTG0YHZhqcbjB7Nf05el6jUfZIp3Az0GNSmXxRAXmg%2FOWh5Lyy2o80xdjhHeIp6uv9Ydl4jk3WKoiavSQfnDO3%2BX220u2FG3l9heY%2BF%2Fpsd7q7FTtLnWesnEuE%2FYeTRzavKWzsirtIH%2BMDbJi5bPNoC5WZLXozRLKcNGpdA6TSGKGlm2vLD0iKOpByRyqRLH4X9k7FrGFid10MfV7uGsEYSFTbhsjtD1R4l%2F6mBuxuQarJ9yU1xuO3fDgwD6SysxyK77G1rQ%3D%3D--rm30krNNWoFyMRsi--NavRNzOYHuEfKNo5W66M0w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.679393789.1753646359; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 19:59:19 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 19:59:19 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A1CE:1C79A4:1167A9A:16C99E3:68868517
Add OpenCV camera conversion; fix bug for camera unified PyTorch3D in… · facebookresearch/pytorch3d@75432a0 · GitHub
Copy file name to clipboardExpand all lines: pytorch3d/renderer/points/pulsar/unified.py
Copy file name to clipboardExpand all lines: pytorch3d/utils/__init__.py
Copy file name to clipboardExpand all lines: pytorch3d/utils/camera_conversions.py
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit 75432a0
Add OpenCV camera conversion; fix bug for camera unified PyTorch3D interface.
Summary: This commit adds a new camera conversion function for OpenCV style parameters to Pulsar parameters to the library. Using this function it addresses a bug reported here: https://fb.workplace.com/groups/629644647557365/posts/1079637302558095, by using the PyTorch3D->OpenCV->Pulsar chain instead of the original direct conversion function. Both conversions are well-tested and an additional test for the full chain has been added, resulting in a more reliable solution requiring less code.
Reviewed By: patricklabatut
Differential Revision: D29322106
fbshipit-source-id: 13df13c2e48f628f75d9f44f19ff7f1646fb7ebd1 parent fef5bcd commit 75432a0Copy full SHA for 75432a0
File tree
Expand file treeCollapse file tree
8 files changed
+275
-32
lines changedFilter options
- pytorch3d
- renderer/points/pulsar
- utils
- tests
- data
Expand file treeCollapse file tree
8 files changed
+275
-32
lines changedpytorch3d/renderer/points/pulsar/unified.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/points/pulsar/unified.py+29-23Lines changed: 29 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
105 |
| - | |
| 105 | + | |
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| |||
359 | 359 |
| |
360 | 360 |
| |
361 | 361 |
| |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
362 | 371 |
| |
363 | 372 |
| |
364 | 373 |
| |
365 | 374 |
| |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
| 375 | + | |
| 376 | + | |
370 | 377 |
| |
371 |
| - | |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
| 378 | + | |
| 379 | + | |
376 | 380 |
| |
377 |
| - | |
378 |
| - | |
379 |
| - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
380 | 384 |
| |
381 | 385 |
| |
382 | 386 |
| |
| |||
547 | 551 |
| |
548 | 552 |
| |
549 | 553 |
| |
550 |
| - | |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
555 |
| - | |
556 |
| - | |
557 |
| - | |
558 |
| - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
559 | 565 |
| |
560 | 566 |
| |
561 | 567 |
|
pytorch3d/utils/__init__.py
Copy file name to clipboardExpand all lines: pytorch3d/utils/__init__.py+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| 10 | + | |
| 11 | + | |
10 | 12 |
| |
11 | 13 |
| |
12 | 14 |
| |
|
pytorch3d/utils/camera_conversions.py
Copy file name to clipboardExpand all lines: pytorch3d/utils/camera_conversions.py+162-9Lines changed: 162 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
12 |
| - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 |
| |
14 | 18 |
| |
15 | 19 |
| |
| |||
54 | 58 |
| |
55 | 59 |
| |
56 | 60 |
| |
57 |
| - | |
58 | 61 |
| |
59 | 62 |
| |
60 | 63 |
| |
| |||
68 | 71 |
| |
69 | 72 |
| |
70 | 73 |
| |
71 |
| - | |
| 74 | + | |
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
| |||
103 | 106 |
| |
104 | 107 |
| |
105 | 108 |
| |
| 109 | + | |
| 110 | + | |
106 | 111 |
| |
107 | 112 |
| |
108 | 113 |
| |
109 | 114 |
| |
110 | 115 |
| |
111 | 116 |
| |
112 |
| - | |
113 |
| - | |
| 117 | + | |
| 118 | + | |
114 | 119 |
| |
115 | 120 |
| |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 |
| |
121 | 126 |
| |
122 | 127 |
| |
| |||
130 | 135 |
| |
131 | 136 |
| |
132 | 137 |
| |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + |
tests/data/test_pulsar_simple_pointcloud_sphere_azimuth0.0_fovorthographic.png
Copy file name to clipboard-15 Bytes
Loading
tests/data/test_pulsar_simple_pointcloud_sphere_azimuth0.0_orthographic.png
Copy file name to clipboard-15 Bytes
Loading
tests/data/test_pulsar_simple_pointcloud_sphere_azimuth90.0_fovorthographic.png
Copy file name to clipboard-8 Bytes
Loading
tests/data/test_pulsar_simple_pointcloud_sphere_azimuth90.0_orthographic.png
Copy file name to clipboard-8 Bytes
Loading
You can’t perform that action at this time.
0 commit comments