mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-02-25 23:56:00 +08:00
fbcode/vision/fair/pytorch3d/pytorch3d/renderer/mesh/textures.py
Reviewed By: bottler Differential Revision: D93710616 fbshipit-source-id: 599fe7425066bc85c0999765168788f8df7e34ce
This commit is contained in:
committed by
meta-codesync[bot]
parent
90646d93ab
commit
49f43402c6
@@ -71,9 +71,7 @@ def _list_to_padded_wrapper(
|
||||
# pyre-fixme[6]: For 2nd param expected `int` but got `Union[bool, float, int]`.
|
||||
x_reshaped.append(y.reshape(-1, D))
|
||||
x_padded = list_to_padded(x_reshaped, pad_size=pad_size, pad_value=pad_value)
|
||||
# pyre-fixme[58]: `+` is not supported for operand types `Tuple[int, int]` and
|
||||
# `Size`.
|
||||
return x_padded.reshape((N, -1) + reshape_dims)
|
||||
return x_padded.reshape((N, -1) + tuple(reshape_dims))
|
||||
|
||||
|
||||
def _padded_to_list_wrapper(
|
||||
@@ -104,9 +102,7 @@ def _padded_to_list_wrapper(
|
||||
# pyre-fixme[6]: For 3rd param expected `int` but got `Union[bool, float, int]`.
|
||||
x_reshaped = x.reshape(N, M, D)
|
||||
x_list = padded_to_list(x_reshaped, split_size=split_size)
|
||||
# pyre-fixme[58]: `+` is not supported for operand types `Tuple[typing.Any]` and
|
||||
# `Size`.
|
||||
x_list = [xl.reshape((xl.shape[0],) + reshape_dims) for xl in x_list]
|
||||
x_list = [xl.reshape((xl.shape[0],) + tuple(reshape_dims)) for xl in x_list]
|
||||
return x_list
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user