CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 17:46:55 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/"7aa1bb7dd1799169403c49cbd34d8b7e"
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=z7fe7EtNMiXv3fIxTFGCaZ0rMlMUDeDtntYW%2FRC4NNpH4sL78QJmthHptbYPL1UZp8Lvr8EPRpE8qQaLz%2Fy9%2FxOizT6wFS8euxHFM7J6FK2EldJXys03%2BpFFEKKq5Sg5YIji3zcECwejBGbkNMeKNN9q0m6CFDP6k%2B0vMlQuZlyDEEImitMTxhLVT3oW%2Fs%2BauKCMa4g9S3Thq0zsy3oipKzp4r%2BjmuMhGRFVQG1pblo4kI6zr6dCSC8q%2FV39q%2FGp9%2FyBursDA4WhipvDjf5Ntw%3D%3D--PVK3wC8lGayHldgE--L4xG%2Bx%2FiygcbFtq5sHwBig%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.921663651.1753638414; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 17:46:54 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 17:46:54 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B4AC:1AFF47:10819AA:15A04BA:6886660E
textures dimension check · facebookresearch/pytorch3d@ef16253 · GitHub
Copy file name to clipboardExpand all lines: pytorch3d/renderer/mesh/textures.py
Copy file name to clipboardExpand all lines: pytorch3d/structures/meshes.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit ef16253
textures dimension check
Summary:
When textures are set on `Meshes` we need to check if the dimensions actually match that of the verts/faces in the mesh. There was a github issue where someone tried to set the attribute after construction of the `Meshes` object and ran into an error when trying to sample textures.
The desired usage is to initialize the class with the textures (not set an attribute afterwards) but in any case we need to check the dimensions match before sampling textures.
Reviewed By: bottler
Differential Revision: D29020249
fbshipit-source-id: 9fb8a5368b83c9ec53652df92b96fc8b2613f5911 parent 1cd1436 commit ef16253Copy full SHA for ef16253
File tree
Expand file treeCollapse file tree
3 files changed
+148
-7
lines changedFilter options
- pytorch3d
- renderer/mesh
- structures
- tests
Expand file treeCollapse file tree
3 files changed
+148
-7
lines changedpytorch3d/renderer/mesh/textures.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/mesh/textures.py+37Lines changed: 37 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
574 | 574 |
| |
575 | 575 |
| |
576 | 576 |
| |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
577 | 586 |
| |
578 | 587 |
| |
579 | 588 |
| |
| |||
1213 | 1222 |
| |
1214 | 1223 |
| |
1215 | 1224 |
| |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
1216 | 1237 |
| |
1217 | 1238 |
| |
1218 | 1239 |
| |
| |||
1292 | 1313 |
| |
1293 | 1314 |
| |
1294 | 1315 |
| |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
1295 | 1323 |
| |
1296 | 1324 |
| |
1297 | 1325 |
| |
| |||
1410 | 1438 |
| |
1411 | 1439 |
| |
1412 | 1440 |
| |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + |
pytorch3d/structures/meshes.py
Copy file name to clipboardExpand all lines: pytorch3d/structures/meshes.py+14-2Lines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
| 258 | + | |
258 | 259 |
| |
259 | 260 |
| |
260 | 261 |
| |
| |||
424 | 425 |
| |
425 | 426 |
| |
426 | 427 |
| |
427 |
| - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
428 | 434 |
| |
429 | 435 |
| |
430 |
| - | |
431 | 436 |
| |
432 | 437 |
| |
433 | 438 |
| |
| |||
1560 | 1565 |
| |
1561 | 1566 |
| |
1562 | 1567 |
| |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
1563 | 1575 |
| |
1564 | 1576 |
| |
1565 | 1577 |
| |
|
+97-5Lines changed: 97 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
254 |
| - | |
| 254 | + | |
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
| |||
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
271 | 295 |
| |
272 | 296 |
| |
273 | 297 |
| |
| |||
456 | 480 |
| |
457 | 481 |
| |
458 | 482 |
| |
459 |
| - | |
| 483 | + | |
| 484 | + | |
460 | 485 |
| |
461 | 486 |
| |
462 | 487 |
| |
463 |
| - | |
| 488 | + | |
464 | 489 |
| |
465 | 490 |
| |
466 | 491 |
| |
| |||
473 | 498 |
| |
474 | 499 |
| |
475 | 500 |
| |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
476 | 527 |
| |
477 | 528 |
| |
478 | 529 |
| |
| |||
824 | 875 |
| |
825 | 876 |
| |
826 | 877 |
| |
| 878 | + | |
827 | 879 |
| |
828 | 880 |
| |
829 |
| - | |
| 881 | + | |
830 | 882 |
| |
831 | 883 |
| |
832 | 884 |
| |
| |||
836 | 888 |
| |
837 | 889 |
| |
838 | 890 |
| |
839 |
| - | |
| 891 | + | |
840 | 892 |
| |
841 | 893 |
| |
842 | 894 |
| |
| |||
858 | 910 |
| |
859 | 911 |
| |
860 | 912 |
| |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
861 | 953 |
| |
862 | 954 |
| |
863 | 955 |
| |
|
You can’t perform that action at this time.
0 commit comments