Skip to content

Commit

Permalink
Remove -1 from crop mask
Browse files Browse the repository at this point in the history
Summary: Removing 1 from the crop mask does not seem sensible.

Reviewed By: bottler, shapovalov

Differential Revision: D37843680

fbshipit-source-id: 70cec80f9ea26deac63312da62b9c8af27d2a010
  • Loading branch information
davnov134 authored and facebook-github-bot committed Jul 14, 2022
1 parent 36ba079 commit 8ba9a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch3d/implicitron/dataset/json_index_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def _resize_image(
# pyre-fixme[6]: For 2nd param expected `int` but got `Optional[int]`.
# pyre-fixme[6]: For 3rd param expected `int` but got `Optional[int]`.
mask = torch.zeros(1, self.image_height, self.image_width)
mask[:, 0 : imre.shape[1] - 1, 0 : imre.shape[2] - 1] = 1.0
mask[:, 0 : imre.shape[1], 0 : imre.shape[2]] = 1.0
return imre_, minscale, mask

def _local_path(self, path: str) -> str:
Expand Down

0 comments on commit 8ba9a69

Please sign in to comment.