CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 13:35:26 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/"1093845c17cb6db675869d476242d92f"
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=im8DV6zKOhR6SFXm7cYYEvjMbITiPnGUcCXWIcJt7hoPwiE1vVDGu7dqaeZyoGudd6OFAED8gMeE1DmZf9RSrnZFpnT3HcTCt%2BunrH2ux0xam1BYHpv3E2R3eFh%2F67ndce3GGLCSJPVAEqlt5eUJBEUrA%2BRC9tCMTasxuIh6eussB%2BwDWsNImgeQhEqS0hqhH0aCHEmvlPeySH9pRphNRh1IRyIcMmnMrHVwNKV5NdUsnF3Sz4kIekwTnyu497CKG75OWfOyueCfA%2Fk1%2FSSdJA%3D%3D--JLvVEzeYYcv1HFCT--c07Hlng5ylCzVMfzIHAd9g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1095424623.1753623325; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 13:35:25 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 13:35:25 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D602:5FFA9:EB3257:13525C9:68862B1D
Support variable size radius for points in rasterizer · facebookresearch/pytorch3d@ebe2693 · GitHub
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_points/rasterize_points.cu
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_points/rasterize_points.h
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_points/rasterize_points_cpu.cpp
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit ebe2693
Support variable size radius for points in rasterizer
Summary:
Support variable size pointclouds in the renderer API to allow compatibility with Pulsar rasterizer.
If radius is provided as a float, it is converted to a tensor of shape (P). Otherwise radius is expected to be an (N, P_padded) dimensional tensor where P_padded is the max number of points in the batch (following the convention from pulsar: https://our.intern.facebook.com/intern/diffusion/FBS/browse/master/fbcode/frl/gemini/pulsar/pulsar/renderer.py?commit=ee0342850210e5df441e14fd97162675c70d147c&lines=50)
Reviewed By: jcjohnson, gkioxari
Differential Revision: D21429400
fbshipit-source-id: 65de7d9cd2472b27fc29f96160c33687e88098a21 parent e40c216 commit ebe2693Copy full SHA for ebe2693
File tree
Expand file treeCollapse file tree
8 files changed
+290
-72
lines changedFilter options
- pytorch3d
- csrc/rasterize_points
- renderer/points
- tests
Expand file treeCollapse file tree
8 files changed
+290
-72
lines changedpytorch3d/csrc/rasterize_points/rasterize_points.cu
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_points/rasterize_points.cu+19-18Lines changed: 19 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| 48 | + | |
| 49 | + | |
48 | 50 |
| |
49 | 51 |
| |
50 | 52 |
| |
| |||
81 | 83 |
| |
82 | 84 |
| |
83 | 85 |
| |
84 |
| - | |
| 86 | + | |
85 | 87 |
| |
86 | 88 |
| |
87 | 89 |
| |
| |||
91 | 93 |
| |
92 | 94 |
| |
93 | 95 |
| |
94 |
| - | |
95 | 96 |
| |
96 | 97 |
| |
97 | 98 |
| |
| |||
128 | 129 |
| |
129 | 130 |
| |
130 | 131 |
| |
131 |
| - | |
| 132 | + | |
132 | 133 |
| |
133 | 134 |
| |
134 | 135 |
| |
| |||
145 | 146 |
| |
146 | 147 |
| |
147 | 148 |
| |
148 |
| - | |
| 149 | + | |
149 | 150 |
| |
150 | 151 |
| |
151 | 152 |
| |
| |||
194 | 195 |
| |
195 | 196 |
| |
196 | 197 |
| |
197 |
| - | |
| 198 | + | |
198 | 199 |
| |
199 | 200 |
| |
200 | 201 |
| |
| |||
214 | 215 |
| |
215 | 216 |
| |
216 | 217 |
| |
217 |
| - | |
| 218 | + | |
218 | 219 |
| |
219 | 220 |
| |
220 | 221 |
| |
| |||
266 | 267 |
| |
267 | 268 |
| |
268 | 269 |
| |
| 270 | + | |
269 | 271 |
| |
270 | 272 |
| |
271 |
| - | |
272 |
| - | |
273 |
| - | |
274 |
| - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
275 | 277 |
| |
276 | 278 |
| |
277 | 279 |
| |
| |||
341 | 343 |
| |
342 | 344 |
| |
343 | 345 |
| |
344 |
| - | |
| 346 | + | |
345 | 347 |
| |
346 | 348 |
| |
347 | 349 |
| |
| |||
390 | 392 |
| |
391 | 393 |
| |
392 | 394 |
| |
393 |
| - | |
| 395 | + | |
394 | 396 |
| |
395 | 397 |
| |
396 | 398 |
| |
| |||
411 | 413 |
| |
412 | 414 |
| |
413 | 415 |
| |
414 |
| - | |
| 416 | + | |
415 | 417 |
| |
416 | 418 |
| |
417 | 419 |
| |
| |||
425 | 427 |
| |
426 | 428 |
| |
427 | 429 |
| |
428 |
| - | |
429 | 430 |
| |
430 | 431 |
| |
431 | 432 |
| |
| |||
464 | 465 |
| |
465 | 466 |
| |
466 | 467 |
| |
467 |
| - | |
| 468 | + | |
468 | 469 |
| |
469 | 470 |
| |
470 | 471 |
| |
| |||
488 | 489 |
| |
489 | 490 |
| |
490 | 491 |
| |
491 |
| - | |
| 492 | + | |
492 | 493 |
| |
493 | 494 |
| |
494 | 495 |
| |
| |||
525 | 526 |
| |
526 | 527 |
| |
527 | 528 |
| |
528 |
| - | |
| 529 | + | |
529 | 530 |
| |
530 | 531 |
| |
531 | 532 |
| |
|
pytorch3d/csrc/rasterize_points/rasterize_points.h
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_points/rasterize_points.h+19-13Lines changed: 19 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
| 45 | + | |
45 | 46 |
| |
46 | 47 |
| |
47 | 48 |
| |
| |||
62 | 63 |
| |
63 | 64 |
| |
64 | 65 |
| |
65 |
| - | |
| 66 | + | |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
| 74 | + | |
73 | 75 |
| |
74 | 76 |
| |
75 | 77 |
| |
| |||
100 | 102 |
| |
101 | 103 |
| |
102 | 104 |
| |
103 |
| - | |
| 105 | + | |
104 | 106 |
| |
105 | 107 |
| |
106 | 108 |
| |
| |||
110 | 112 |
| |
111 | 113 |
| |
112 | 114 |
| |
113 |
| - | |
| 115 | + | |
114 | 116 |
| |
115 | 117 |
| |
116 | 118 |
| |
| |||
124 | 126 |
| |
125 | 127 |
| |
126 | 128 |
| |
127 |
| - | |
| 129 | + | |
| 130 | + | |
128 | 131 |
| |
129 | 132 |
| |
130 | 133 |
| |
| |||
138 | 141 |
| |
139 | 142 |
| |
140 | 143 |
| |
141 |
| - | |
| 144 | + | |
142 | 145 |
| |
143 | 146 |
| |
144 | 147 |
| |
| |||
147 | 150 |
| |
148 | 151 |
| |
149 | 152 |
| |
| 153 | + | |
150 | 154 |
| |
151 | 155 |
| |
152 | 156 |
| |
| |||
179 | 183 |
| |
180 | 184 |
| |
181 | 185 |
| |
182 |
| - | |
| 186 | + | |
183 | 187 |
| |
184 | 188 |
| |
185 | 189 |
| |
| |||
191 | 195 |
| |
192 | 196 |
| |
193 | 197 |
| |
194 |
| - | |
| 198 | + | |
| 199 | + | |
195 | 200 |
| |
196 | 201 |
| |
197 | 202 |
| |
| |||
210 | 215 |
| |
211 | 216 |
| |
212 | 217 |
| |
213 |
| - | |
| 218 | + | |
214 | 219 |
| |
215 | 220 |
| |
216 | 221 |
| |
| |||
296 | 301 |
| |
297 | 302 |
| |
298 | 303 |
| |
299 |
| - | |
| 304 | + | |
| 305 | + | |
300 | 306 |
| |
301 | 307 |
| |
302 | 308 |
| |
| |||
320 | 326 |
| |
321 | 327 |
| |
322 | 328 |
| |
323 |
| - | |
| 329 | + | |
324 | 330 |
| |
325 | 331 |
| |
326 | 332 |
| |
|
pytorch3d/csrc/rasterize_points/rasterize_points_cpu.cpp
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_points/rasterize_points_cpu.cpp+11-7Lines changed: 11 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
38 | 39 |
| |
39 |
| - | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
| 67 | + | |
66 | 68 |
| |
67 | 69 |
| |
68 | 70 |
| |
| |||
98 | 100 |
| |
99 | 101 |
| |
100 | 102 |
| |
101 |
| - | |
| 103 | + | |
102 | 104 |
| |
103 | 105 |
| |
104 | 106 |
| |
| |||
112 | 114 |
| |
113 | 115 |
| |
114 | 116 |
| |
| 117 | + | |
115 | 118 |
| |
116 | 119 |
| |
117 | 120 |
| |
| |||
140 | 143 |
| |
141 | 144 |
| |
142 | 145 |
| |
| 146 | + | |
143 | 147 |
| |
144 | 148 |
| |
145 | 149 |
| |
146 |
| - | |
147 |
| - | |
148 |
| - | |
149 |
| - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
150 | 154 |
| |
151 | 155 |
| |
152 | 156 |
| |
|
You can’t perform that action at this time.
0 commit comments