CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 14:35:51 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/"ee2a695b5bc1a18651015567efb17829"
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=nAyL0wLpCtSTv0N7DRS6LZ8z3U4uFG0JeA%2BKfj%2Fcg9mffT990zW8LlX86q4h7xsBil85WUS4PoaGrFnSy3ubCCNMaQqct77vN4ntxuKOR5XmTwdm97UjdRiKNLHTca91%2FEXYb%2FTDEhZDWjP0HtNHltDsv2dQ439IkeK3%2BehkKConGH4bFvqn%2BhwzDt3F%2BAeoI%2F6ynxav4Cu24SIdIQL2QJlGStVAp65sAiLdlB%2BPSE4P%2BCoy7v9Nr%2Fpz8U7yAPwaCQSXDzmnR%2Fe9ljpSmlrKgA%3D%3D--x6%2BKtGmJzCppWUAg--MmLIavQnGiJeFh%2FQG%2BZ94w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1602166131.1753626951; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 14:35:51 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 14:35:51 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AE38:93466:5B2D5B:786F5A:68863947
Updates to cameras and rasterizer to infer camera type correctly · facebookresearch/pytorch3d@838b73d · GitHub
Copy file name to clipboardExpand all lines: pytorch3d/renderer/cameras.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/mesh/rasterizer.py
Copy file name to clipboardExpand all lines: tests/test_render_implicit.py
Copy file name to clipboardExpand all lines: tests/test_render_meshes.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit 838b73d
Updates to cameras and rasterizer to infer camera type correctly
Summary: Small update to the cameras and rasterizer to correctly infer the type of camera (perspective vs orthographic).
Reviewed By: jcjohnson
Differential Revision: D26267225
fbshipit-source-id: a58ed3bc2ab25553d2a4307c734204c1d41b51761 parent 39f49c2 commit 838b73dCopy full SHA for 838b73d
File tree
Expand file treeCollapse file tree
5 files changed
+65
-11
lines changedFilter options
- pytorch3d/renderer
- mesh
- tests
Expand file treeCollapse file tree
5 files changed
+65
-11
lines changedpytorch3d/renderer/cameras.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/cameras.py+24-5Lines changed: 24 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
| 45 | + | |
46 | 46 |
| |
47 |
| - | |
| 47 | + | |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 |
| - | |
| 53 | + | |
| 54 | + | |
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
| |||
268 | 269 |
| |
269 | 270 |
| |
270 | 271 |
| |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
271 | 278 |
| |
272 | 279 |
| |
273 | 280 |
| |
| |||
534 | 541 |
| |
535 | 542 |
| |
536 | 543 |
| |
| 544 | + | |
| 545 | + | |
| 546 | + | |
537 | 547 |
| |
538 | 548 |
| |
539 | 549 |
| |
| |||
752 | 762 |
| |
753 | 763 |
| |
754 | 764 |
| |
| 765 | + | |
| 766 | + | |
| 767 | + | |
755 | 768 |
| |
756 | 769 |
| |
757 | 770 |
| |
| |||
927 | 940 |
| |
928 | 941 |
| |
929 | 942 |
| |
| 943 | + | |
| 944 | + | |
| 945 | + | |
930 | 946 |
| |
931 | 947 |
| |
932 | 948 |
| |
| |||
1086 | 1102 |
| |
1087 | 1103 |
| |
1088 | 1104 |
| |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1089 | 1108 |
| |
1090 | 1109 |
| |
1091 | 1110 |
| |
|
pytorch3d/renderer/mesh/rasterizer.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/mesh/rasterizer.py+8-3Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
143 |
| - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 |
| |
145 | 150 |
| |
146 | 151 |
| |
147 | 152 |
| |
148 | 153 |
| |
149 | 154 |
| |
150 | 155 |
| |
151 |
| - | |
| 156 | + | |
152 | 157 |
| |
153 | 158 |
| |
154 | 159 |
| |
|
+20Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
794 | 794 |
| |
795 | 795 |
| |
796 | 796 |
| |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
797 | 802 |
| |
798 | 803 |
| |
799 | 804 |
| |
| |||
885 | 890 |
| |
886 | 891 |
| |
887 | 892 |
| |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
888 | 898 |
| |
889 | 899 |
| |
890 | 900 |
| |
| |||
937 | 947 |
| |
938 | 948 |
| |
939 | 949 |
| |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
940 | 955 |
| |
941 | 956 |
| |
942 | 957 |
| |
| |||
983 | 998 |
| |
984 | 999 |
| |
985 | 1000 |
| |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + |
tests/test_render_implicit.py
Copy file name to clipboardExpand all lines: tests/test_render_implicit.py+4-1Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
242 | 242 |
| |
243 | 243 |
| |
244 | 244 |
| |
245 |
| - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
246 | 249 |
| |
247 | 250 |
| |
248 | 251 |
| |
|
tests/test_render_meshes.py
Copy file name to clipboardExpand all lines: tests/test_render_meshes.py+9-2Lines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
500 | 500 |
| |
501 | 501 |
| |
502 | 502 |
| |
| 503 | + | |
503 | 504 |
| |
504 | 505 |
| |
505 | 506 |
| |
| |||
844 | 845 |
| |
845 | 846 |
| |
846 | 847 |
| |
847 |
| - | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
848 | 852 |
| |
849 | 853 |
| |
850 | 854 |
| |
| |||
919 | 923 |
| |
920 | 924 |
| |
921 | 925 |
| |
922 |
| - | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
923 | 930 |
| |
924 | 931 |
| |
925 | 932 |
| |
|
You can’t perform that action at this time.
0 commit comments