Functionflow_warpWarp an image or feature map with optical flow Args: x (Tensor): size (N, C, H, W) flow (Tensor): size (N, H, W, 2), normal value
codes/models/modules/module_util.py:55
Methodforward Parameters ---------- input_tensor: todo 5-D Tensor either of shape (t, b, c, h, w) or (b, t, c, h, w)
codes/models/modules/convlstm.py:104
Methodforwardalign other neighboring frames to the reference frame in the feature level fea1, fea2: [L1, L2, L3], each with [B,C,H,W] features esti
codes/models/modules/Sakuya_arch.py:80
Methodforward Parameters ---------- input_tensor: 5-D Tensor either of shape (t, b, c, h, w) or (b, t, c, h, w)
codes/models/modules/Sakuya_arch.py:219
Methodforward(ctx, input, offset, mask, weight, bias, stride, padding, dilation,
deformable_groups)
codes/models/modules/DCNv2/dcn_v2.py:17
Methodforward(ctx, input, rois, offset, spatial_scale, pooled_size, output_dim, no_trans,
group_size=1, par
codes/models/modules/DCNv2/dcn_v2.py:149
Functiontensor2img Converts a torch Tensor into an image Numpy array Input: 4D(B,(3/1),H,W), 3D(C,H,W), or 2D(H,W), any range, RGB channel order Output: 3D(
codes/utils/util.py:108