Skip to content

Commit 8ba9a69

Browse files
davnov134facebook-github-bot
authored andcommitted
Remove -1 from crop mask
Summary: Removing 1 from the crop mask does not seem sensible. Reviewed By: bottler, shapovalov Differential Revision: D37843680 fbshipit-source-id: 70cec80f9ea26deac63312da62b9c8af27d2a010
1 parent 36ba079 commit 8ba9a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch3d/implicitron/dataset/json_index_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def _resize_image(
779779
# pyre-fixme[6]: For 2nd param expected `int` but got `Optional[int]`.
780780
# pyre-fixme[6]: For 3rd param expected `int` but got `Optional[int]`.
781781
mask = torch.zeros(1, self.image_height, self.image_width)
782-
mask[:, 0 : imre.shape[1] - 1, 0 : imre.shape[2] - 1] = 1.0
782+
mask[:, 0 : imre.shape[1], 0 : imre.shape[2]] = 1.0
783783
return imre_, minscale, mask
784784

785785
def _local_path(self, path: str) -> str:

0 commit comments

Comments
 (0)