Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test_bilinear_sample.py #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_bilinear_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TestBilinearSampler(unittest.TestCase):
# Sample from an image (4d)
def _test4d(self, align_corners):
H, W = 4, 5
# Construct a grid to obtain indentity sampling
# Construct a grid to obtain identity sampling
input = torch.randn(H * W).view(1, 1, H, W).float()
coords = torch.meshgrid(torch.arange(H), torch.arange(W))
coords = torch.stack(coords[::-1], dim=-1).float()[None]
Expand All @@ -27,7 +27,7 @@ def _test4d(self, align_corners):
# Sample from a video (5d)
def _test5d(self, align_corners):
T, H, W = 3, 4, 5
# Construct a grid to obtain indentity sampling
# Construct a grid to obtain identity sampling
input = torch.randn(H * W).view(1, 1, H, W).float()
input = torch.stack([input, input + 1, input + 2], dim=2)
coords = torch.meshgrid(torch.arange(T), torch.arange(W), torch.arange(H))
Expand Down