mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-03 12:22:49 +08:00
Fix TexturesUV doc
Summary: Fix map size in the comment. Reviewed By: gkioxari Differential Revision: D23813431 fbshipit-source-id: e0777beadd7473014c1b79ad9f850d10f3549599
This commit is contained in:
parent
197f1d6217
commit
ea0e762c36
@ -574,7 +574,7 @@ class TexturesUV(TexturesBase):
|
|||||||
|
|
||||||
An example of how the indexing into the maps, with align_corners=True,
|
An example of how the indexing into the maps, with align_corners=True,
|
||||||
works is as follows.
|
works is as follows.
|
||||||
If maps[i] has shape [101, 1001] and the value of verts_uvs[i][j]
|
If maps[i] has shape [1001, 101] and the value of verts_uvs[i][j]
|
||||||
is [0.4, 0.3], then a value of j in faces_uvs[i] means a vertex
|
is [0.4, 0.3], then a value of j in faces_uvs[i] means a vertex
|
||||||
whose color is given by maps[i][700, 40]. padding_mode affects what
|
whose color is given by maps[i][700, 40]. padding_mode affects what
|
||||||
happens if a value in verts_uvs is less than 0 or greater than 1.
|
happens if a value in verts_uvs is less than 0 or greater than 1.
|
||||||
@ -583,7 +583,7 @@ class TexturesUV(TexturesBase):
|
|||||||
an _earlier_ index in maps.
|
an _earlier_ index in maps.
|
||||||
|
|
||||||
If align_corners=False, an example would be as follows.
|
If align_corners=False, an example would be as follows.
|
||||||
If maps[i] has shape [100, 1000] and the value of verts_uvs[i][j]
|
If maps[i] has shape [1000, 100] and the value of verts_uvs[i][j]
|
||||||
is [0.405, 0.2995], then a value of j in faces_uvs[i] means a vertex
|
is [0.405, 0.2995], then a value of j in faces_uvs[i] means a vertex
|
||||||
whose color is given by maps[i][700, 40].
|
whose color is given by maps[i][700, 40].
|
||||||
When align_corners=False, padding_mode even matters for values in
|
When align_corners=False, padding_mode even matters for values in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user