MCPcopy Create free account

hub / github.com/autonomousvision/unimatch / functions

Functions377 in github.com/autonomousvision/unimatch

Methodcount_flops
(model, _x, y)
unimatch/ldm_unet/unet.py:606
Functioncount_parameters
(model)
utils/utils.py:149
Functionepe_metric
(d_est, d_gt, mask, use_np=False)
loss/stereo_metric.py:5
Functionextract_into_tensor
(a, t, x_shape)
unimatch/ldm_unet/util.py:96
Functionflow_to_color
Expects a two dimensional flow image of shape [H,W,2] According to the C++ source code of Daniel Scharstein According to the Matlab sourc
utils/flow_viz.py:111
Functionflow_warp
(feature, flow, mask=False, padding_mode='zeros')
utils/utils.py:119
Methodforward
(self, x)
unimatch/vit_fpn.py:58
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
unimatch/dpt_head.py:105
Methodforward
Forward pass. Returns: tensor: output
unimatch/dpt_head.py:178
Methodforward
( self, out_features, downsample_factor=8, cnn_features=None, mv_featu
unimatch/dpt_head.py:440
Methodforward
( self, img0, img1, attn_type=None, attn_splits_list=None, int
unimatch/unimatch_depthsplat.py:235
Methodforward
(self, inputs)
unimatch/trident_conv.py:64
Methodforward
(self, feature0, flow, local_window_attn=False, local_window_radius=1,
unimatch/attention.py:184
Methodforward
(self, source, target, height=None, width=None, shifted_win
unimatch/transformer.py:42
Methodforward
(self, source, target, height=None, width=None, shifted_win
unimatch/transformer.py:168
Methodforward
(self, feature0, feature1, attn_type='swin', attn_num_splits=None,
unimatch/transformer.py:226
Methodforward
(self, x)
unimatch/reg_refine.py:16
Methodforward
(self, h, x)
unimatch/reg_refine.py:37
Methodforward
(self, flow, corr)
unimatch/reg_refine.py:67
Methodforward
(self, net, inp, corr, flow)
unimatch/reg_refine.py:106
Methodforward
(self, x)
unimatch/position.py:26
Methodforward
(self, img0, img1, attn_type=None, attn_splits_list=None, c
unimatch/unimatch.py:95
Methodforward
(self, x)
unimatch/backbone.py:28
Methodforward
(self, x)
unimatch/backbone.py:106
Methodforward
(self, x)
unimatch/ldm_unet/unet.py:55
Methodforward
Apply the module to `x` given `emb` timestep embeddings.
unimatch/ldm_unet/unet.py:72
Methodforward
(self, x, emb, context=None)
unimatch/ldm_unet/unet.py:84
Methodforward
(self, x, y=None)
unimatch/ldm_unet/unet.py:117
Methodforward
(self,x)
unimatch/ldm_unet/unet.py:138
Methodforward
(self, x, y=None)
unimatch/ldm_unet/unet.py:173
Methodforward
Apply the block to a Tensor, conditioned on a timestep embedding. :param x: an [N x C x ...] Tensor of features. :param emb:
unimatch/ldm_unet/unet.py:278
Methodforward
(self, x)
unimatch/ldm_unet/unet.py:364
Methodforward
(self, x, y=None)
unimatch/ldm_unet/unet.py:444
Methodforward
Apply QKV attention. :param qkv: an [N x (H * 3 * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor afte
unimatch/ldm_unet/unet.py:542
Methodforward
Apply QKV attention. :param qkv: an [N x (3 * H * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor afte
unimatch/ldm_unet/unet.py:585
Methodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
unimatch/ldm_unet/unet.py:1070
Methodforward
(self, x, context=None)
unimatch/ldm_unet/unet.py:1210
Methodforward
(self, x, y)
unimatch/ldm_unet/cross_attention.py:47
Methodforward
(self, x, y)
unimatch/ldm_unet/cross_attention.py:129
Methodforward
(self, x)
unimatch/ldm_unet/attention.py:40
Methodforward
(self, x)
unimatch/ldm_unet/attention.py:61
Methodforward
(self, x)
unimatch/ldm_unet/attention.py:86
Methodforward
(self, x)
unimatch/ldm_unet/attention.py:124
Methodforward
(self, x, context=None, mask=None)
unimatch/ldm_unet/attention.py:168
Methodforward
(self, x, context=None)
unimatch/ldm_unet/attention.py:206
Methodforward
(self, x, context=None)
unimatch/ldm_unet/attention.py:250
Methodforward
(ctx, run_function, length, *args)
unimatch/ldm_unet/util.py:121
Methodforward
(self, x)
unimatch/ldm_unet/util.py:229
Methodforward
(self, x)
unimatch/ldm_unet/util.py:233
Methodforward
(self, x)
unimatch/ldm_unet/util.py:238
Methodforward
(self, x)
unimatch/ldm_unet/util.py:242
Functiongenerate_window_grid
(h_min, h_max, w_min, w_max, len_h, len_w, device=None)
unimatch/geometry.py:24
Functioninit_
(tensor)
unimatch/ldm_unet/attention.py:27
Functionlinear
Create a linear module.
unimatch/ldm_unet/util.py:258
Functionmake_beta_schedule
(schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, cosine_s=8e-3)
unimatch/ldm_unet/util.py:21
Functionmake_ddim_sampling_parameters
(alphacums, ddim_timesteps, eta, verbose=True)
unimatch/ldm_unet/util.py:63
Functionmake_ddim_timesteps
(ddim_discr_method, num_ddim_timesteps, num_ddpm_timesteps, verbose=True)
unimatch/ldm_unet/util.py:46
Functionmax_neg_value
(t)
unimatch/ldm_unet/attention.py:23
Functionmean_flat
Take the mean over all non-batch dimensions.
unimatch/ldm_unet/util.py:192
Functionnoise_like
(shape, device, repeat=False)
unimatch/ldm_unet/util.py:291
Functionnormalize_coords
Normalize coordinates of image scale to [-1, 1] Args: grid: [B, 2, H, W]
utils/utils.py:106
Functionnormalize_coords
(coords, h, w)
unimatch/geometry.py:35
FunctionreadDispKITTI
(filename)
utils/frame_utils.py:110
FunctionreadFlowKITTI
(filename)
utils/frame_utils.py:102
Functionread_gen
(file_name, pil=False)
utils/frame_utils.py:124
Functionread_text_lines
(filepath)
utils/misc.py:6
Functionread_vkitti2_flow
(filename)
utils/frame_utils.py:141
Functionsave_args
(args, filename='args.json')
utils/misc.py:28
Functionsave_command
(save_path, filename='command_train.txt')
utils/misc.py:18
Functionscale_module
Scale the parameters of a module and return it.
unimatch/ldm_unet/util.py:183
Functionset_bn_eval
(m)
utils/utils.py:154
Functiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
unimatch/ldm_unet/util.py:151
Functionuniq
(arr)
unimatch/ldm_unet/attention.py:13
Functionupflow8
(flow, mode='bilinear')
utils/utils.py:128
Functionupsample_flow
(flow, img)
utils/utils.py:141
FunctionwriteFlow
Write optical flow to file. If v is None, uv is assumed to contain both u and v channels, stacked in depth. Original code by Deqing
utils/frame_utils.py:70
FunctionwriteFlowKITTI
(filename, uv)
utils/frame_utils.py:117
← previous301–377 of 377, ranked by callers