You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the padding seems not right, or maybe i made a mistake
# padding
_, _, D, H, W = x.size()
if H % self.patch_size[0] != 0:
x = F.pad(x, (0, 0, 0, self.patch_size[1] - H % self.patch_size[1]))
if W % self.patch_size[1] != 0:
x = F.pad(x, (0, 0, 0, 0, 0, self.patch_size[0] - D % self.patch_size[0]))
owing to patch_size=[1, 8, 8] where 8x8 is HxW in implementation, should it be padded in H and W dimension?
condition H % self.patch_size[0] != 0 and W % self.patch_size[1] != 0 make me lost
thanks a lot!
The text was updated successfully, but these errors were encountered:
musicman217
changed the title
About LF-VILA code in PatchEmbed3D of vidoe encoder
About LF-VILA code in PatchEmbed3D of video encoder
Mar 23, 2024
the padding seems not right, or maybe i made a mistake
owing to
patch_size=[1, 8, 8]
where 8x8 is HxW in implementation, should it be padded in H and W dimension?condition
H % self.patch_size[0] != 0
andW % self.patch_size[1] != 0
make me lostthanks a lot!
The text was updated successfully, but these errors were encountered: