Skip to content
Snippets Groups Projects
Commit 77d085a3 authored by Alexandre Chapin's avatar Alexandre Chapin :race_car:
Browse files

Fix issue with image size

parent 0f20c38c
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ class FeatureMasking(nn.Module): ...@@ -188,7 +188,7 @@ class FeatureMasking(nn.Module):
B, N, H, W, C = images.shape B, N, H, W, C = images.shape
orig_size = (H, W) orig_size = (H, W)
images = images.reshape(B*N, H, W, C) # [B x N, C, H, W] images = images.reshape(B*N, H, W, C) # [B x N, C, H, W]
im_size = self.resize(images[0]).shape[-3:-1] im_size = self.resize.apply_image(images[0]).shape[-3:-1]
### Pre-process images for the image encoder (Resize and Pad) ### Pre-process images for the image encoder (Resize and Pad)
images = torch.stack([self.preprocess(x) for x in images]) images = torch.stack([self.preprocess(x) for x in images])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment