CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 05:11:49 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/"8fe637d21dfd7c1ecc2728211c927773"
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=a95l75kmm%2FChdMITjwltEhQA5Nbh%2FPUi6Bq3lJjyddVro%2FFHLHCBbVPzXJi4Nwb3MO3qaspYVLqZMnUeV8JA0mW0DxMRISedCKrI%2BUaVMyAEx5hQMNPkpZsgb4iAqQL2LpsJtfgNAbk%2FMNIZjgaJ3PM1z4taNaWmvfV%2Bwp2xIYMToOowdyrOdwWbFxFFE5SLL%2BH%2BOPt%2FRdjs73bmDM8eWE4WTwGRmafVm58Pp6S8g0ByOWZJpbVGqLR4IyJiilhSg%2BnsHSpDgGpNYuyNteEjsg%3D%3D--HAOjNMdUvk%2Fuzcys--ftigDe03cW4J7P9xcyj5Pg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1155037492.1753593108; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 05:11:48 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 05:11:48 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A32C:0A67:2177A:2D73F:6885B514
Update NDC raysampler for non-square convention (#29) · facebookresearch/pytorch3d@cac6cb1 · GitHub
Copy file name to clipboardExpand all lines: pytorch3d/renderer/implicit/raysampling.py
Copy file name to clipboardExpand all lines: tests/test_render_implicit.py
Copy file name to clipboardExpand all lines: tests/test_render_volumes.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit cac6cb1
Update NDC raysampler for non-square convention (#29)
Summary:
- Old NDC convention had xy coords in [-1,1]x[-1,1]
- New NDC convention has xy coords in [-1, 1]x[-u, u] or [-u, u]x[-1, 1]
where u > 1 is the aspect ratio of the image.
This PR fixes the NDC raysampler to use the new convention.
Partial fix for #868
Pull Request resolved: fairinternal/pytorch3d#29
Reviewed By: davnov134
Differential Revision: D31926148
Pulled By: bottler
fbshipit-source-id: c6c42c60d1473b04e60ceb49c8c10951ddf03c741 parent bfeb82e commit cac6cb1Copy full SHA for cac6cb1
File tree
Expand file treeCollapse file tree
4 files changed
+118
-35
lines changedFilter options
- pytorch3d/renderer/implicit
- tests
Expand file treeCollapse file tree
4 files changed
+118
-35
lines changedpytorch3d/renderer/implicit/raysampling.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/implicit/raysampling.py+15-8Lines changed: 15 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
143 |
| - | |
| 142 | + | |
| 143 | + | |
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 |
| - | |
163 |
| - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
164 | 171 |
| |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
169 | 176 |
| |
170 | 177 |
| |
171 | 178 |
| |
|
+76-6Lines changed: 76 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
27 | 90 |
| |
28 | 91 |
| |
29 | 92 |
| |
| |||
147 | 210 |
| |
148 | 211 |
| |
149 | 212 |
| |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
156 | 226 |
| |
157 | 227 |
| |
158 | 228 |
| |
|
tests/test_render_implicit.py
Copy file name to clipboardExpand all lines: tests/test_render_implicit.py+14-10Lines changed: 14 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 |
| - | |
163 |
| - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
164 | 168 |
| |
165 | 169 |
| |
166 | 170 |
| |
| |||
169 | 173 |
| |
170 | 174 |
| |
171 | 175 |
| |
172 |
| - | |
173 |
| - | |
174 |
| - | |
| 176 | + | |
175 | 177 |
| |
176 | 178 |
| |
177 | 179 |
| |
178 | 180 |
| |
179 | 181 |
| |
180 | 182 |
| |
181 | 183 |
| |
182 |
| - | |
183 |
| - | |
| 184 | + | |
| 185 | + | |
184 | 186 |
| |
185 | 187 |
| |
186 | 188 |
| |
| |||
336 | 338 |
| |
337 | 339 |
| |
338 | 340 |
| |
339 |
| - | |
340 |
| - | |
341 |
| - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
342 | 346 |
| |
343 | 347 |
| |
344 | 348 |
| |
|
tests/test_render_volumes.py
Copy file name to clipboardExpand all lines: tests/test_render_volumes.py+13-11Lines changed: 13 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
| |||
295 | 295 |
| |
296 | 296 |
| |
297 | 297 |
| |
298 |
| - | |
| 298 | + | |
299 | 299 |
| |
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
306 |
| - | |
307 |
| - | |
308 |
| - | |
| 306 | + | |
309 | 307 |
| |
310 | 308 |
| |
311 | 309 |
| |
| |||
340 | 338 |
| |
341 | 339 |
| |
342 | 340 |
| |
343 |
| - | |
| 341 | + | |
344 | 342 |
| |
345 |
| - | |
346 |
| - | |
| 343 | + | |
| 344 | + | |
347 | 345 |
| |
348 | 346 |
| |
349 | 347 |
| |
| |||
499 | 497 |
| |
500 | 498 |
| |
501 | 499 |
| |
502 |
| - | |
503 |
| - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
504 | 506 |
| |
505 | 507 |
| |
506 | 508 |
| |
| |||
586 | 588 |
| |
587 | 589 |
| |
588 | 590 |
| |
589 |
| - | |
| 591 | + | |
590 | 592 |
| |
591 | 593 |
| |
592 | 594 |
| |
|
You can’t perform that action at this time.
0 commit comments