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 text was updated successfully, but these errors were encountered:
dididichufale
changed the title
warp操作中 都把视差去负数了为什么还assert disp.min()>=0 还有可变形卷积到底用没用呢
warp操作中 都把视差取负数了为什么还assert disp.min()>=0 还有可变形卷积到底用没用呢
Nov 1, 2023
low_disp = -low_disp
# low_disp = low_disp.unsqueeze(1) # [B, 1, H, W]
scale_factor = left_img.size(-1) / low_disp.size(-1)
if scale_factor == 1.0:
disp = low_disp
def disp_warp(img, disp, padding_mode='border'):
"""Warping by disparity
Args:
img: [B, 3, H, W]
disp: [B, 1, H, W], positive
padding_mode: 'zeros' or 'border'
Returns:
warped_img: [B, 3, H, W]
valid_mask: [B, 3, H, W]
"""
assert disp.min() >= 0
The text was updated successfully, but these errors were encountered: