MCPcopy Create free account

hub / github.com/autonomousvision/unimatch / functions

Functions377 in github.com/autonomousvision/unimatch

↓ 102 callersFunctionprint
(*args, **kwargs)
utils/dist_utils.py:100
↓ 21 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
unimatch/ldm_unet/util.py:245
↓ 18 callersMethod__init__
(self, data_dir='datasets/HR-VS-Stereo/carla-highres/trainingF', transform
dataloader/stereo/datasets.py:562
↓ 16 callersMethodpad
(self, *inputs)
utils/utils.py:18
↓ 13 callersMethodunpad
(self, x)
utils/utils.py:21
↓ 12 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
unimatch/ldm_unet/util.py:199
↓ 10 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1, downsample_3ddim=False, # downsample all
unimatch/ldm_unet/unet.py:104
↓ 9 callersFunctionzero_module
Zero out the parameters of a module and return it.
unimatch/ldm_unet/util.py:174
↓ 8 callersFunctioncoords_grid
(b, h, w, homogeneous=False, device=None)
unimatch/geometry.py:5
↓ 8 callersMethodupsample_flow
(self, flow, feature, bilinear=False, upsample_factor=8, is_depth=False)
unimatch/unimatch.py:81
↓ 6 callersMethod__init__
(self, aug_params=None, root='datasets/HD1K')
dataloader/flow/datasets.py:321
↓ 6 callersMethod__init__
(self, dim_in, dim_out)
unimatch/ldm_unet/attention.py:36
↓ 6 callersFunctionsplit_feature
(feature, num_splits=2, channel_last=False, )
unimatch/utils.py:34
↓ 6 callersFunctionviz_depth_tensor
(disp, return_numpy=False, colormap='plasma')
utils/visualization.py:92
↓ 5 callersFunctiond1_metric
(d_est, d_gt, mask, use_np=False)
loss/stereo_metric.py:15
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
unimatch/dpt_head.py:208
↓ 4 callersMethodclose
(self)
utils/logger.py:103
↓ 4 callersFunctionflow_warp
(feature, flow, mask=False, padding_mode='zeros')
unimatch/geometry.py:65
↓ 4 callersMethodforward
(self, x)
unimatch/ldm_unet/util.py:224
↓ 4 callersFunctionread_img
(filename)
utils/file_io.py:14
↓ 4 callersFunctionsave_vis_flow_tofile
(flow, output_path)
utils/flow_viz.py:278
↓ 4 callersFunctionvis_disparity
(disp)
utils/visualization.py:11
↓ 4 callersFunctionwrite_pfm
(file, image, scale=1)
utils/file_io.py:98
↓ 3 callersMethod__init__
(self, input_dim=128, hidden_dim=256, out_dim=2, )
unimatch/reg_refine.py:7
↓ 3 callersMethod_make_layer
(self, dim, stride=1, dilation=1, norm_layer=nn.InstanceNorm2d)
unimatch/backbone.py:97
↓ 3 callersMethodbackward
(ctx, *output_grads)
unimatch/ldm_unet/util.py:131
↓ 3 callersMethodcrop_img
(self, img)
dataloader/stereo/transforms.py:115
↓ 3 callersFunctiondefault
(val, d)
unimatch/ldm_unet/attention.py:17
↓ 3 callersFunctionflow_to_image
Convert flow into middlebury color code image :param flow: optical flow map :return: optical flow image in middlebury color
utils/flow_viz.py:240
↓ 3 callersFunctiongenerate_window_grid
(h_min, h_max, w_min, w_max, len_h, len_w, device=None)
unimatch/utils.py:6
↓ 3 callersFunctionget_dist_info
()
utils/dist_utils.py:74
↓ 3 callersFunctioninit_dist
(launcher, backend='nccl', **kwargs)
utils/dist_utils.py:12
↓ 3 callersFunctionlocal_correlation_with_flow
(feature0, feature1, flow, local_radius,
unimatch/matching.py:86
↓ 3 callersFunctionmerge_splits
(splits, num_splits=2, channel_last=False, )
unimatch/utils.py:62
↓ 3 callersFunctionnormalize_coords
(coords, h, w)
unimatch/utils.py:17
↓ 3 callersFunctionsetup_for_distributed
This function disables printing when not in master process
utils/dist_utils.py:93
↓ 3 callersFunctionsingle_head_full_attention
(q, k, v)
unimatch/attention.py:8
↓ 3 callersFunctionsingle_head_split_window_attention
(q, k, v, num_splits=1, with_s
unimatch/attention.py:45
↓ 3 callersFunctionsplit_feature_1d
(feature, num_splits=2, )
unimatch/utils.py:155
↓ 3 callersFunctionthres_metric
(d_est, d_gt, mask, thres, use_np=False)
loss/stereo_metric.py:51
↓ 2 callersFunctionNormalize
(in_channels)
unimatch/ldm_unet/attention.py:74
↓ 2 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256, 51
unimatch/dpt_head.py:221
↓ 2 callersMethod__init__
(self, d_model=128, nhead=1, no_ffn=False,
unimatch/transformer.py:10
↓ 2 callersMethod_read_image
(self, filename)
dataloader/depth/datasets.py:103
↓ 2 callersMethodadd_image_summary
(self, img1, img2, flow_preds=None, flow_gt=None, mode='train', is_depth=False,
utils/logger.py:39
↓ 2 callersFunctioncheck_path
(path)
utils/misc.py:13
↓ 2 callersFunctioncompute_errors
Computation of error metrics between predicted and ground truth depths
loss/depth_loss.py:6
↓ 2 callersFunctioncoords_grid
(batch, ht, wd, normalize=False)
utils/utils.py:61
↓ 2 callersFunctioncount_flops_attn
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs, params = thop.pr
unimatch/ldm_unet/unet.py:511
↓ 2 callersFunctionexists
(val)
unimatch/ldm_unet/attention.py:9
↓ 2 callersFunctionfeature_add_position
(feature0, feature1, attn_splits, feature_channels)
unimatch/utils.py:111
↓ 2 callersFunctionflow_tensor_to_image
Used for tensorboard visualization
utils/flow_viz.py:283
↓ 2 callersMethodpush
(self, metrics, mode='train', is_depth=False, )
utils/logger.py:82
↓ 2 callersFunctionreproject
(points_tgt, intrinsics, return_mask=False)
unimatch/geometry.py:132
↓ 2 callersFunctionreproject_coords
(depth_ref, intrinsics, extrinsics_ref=None, extrinsics_tgt=None, extrinsics_rel=None, re
unimatch/geometry.py:157
↓ 2 callersFunctionsingle_head_full_attention_1d
(q, k, v, h=None, w=None,
unimatch/attention.py:19
↓ 2 callersMethodspatial_transform
(self, img1, img2, flow, occlusion=None)
dataloader/flow/transforms.py:66
↓ 2 callersMethodunnormalize_image
(self, img)
utils/logger.py:73
↓ 2 callersFunctionupsample_flow_with_mask
(flow, up_mask, upsample_factor, is_depth=False)
unimatch/utils.py:134
↓ 2 callersFunctionvalidate_chairs
Perform evaluation on the FlyingChairs (test) split
evaluate_flow.py:160
↓ 2 callersFunctionvalidate_demon
(model, padding_factor=16, inference_size=None, at
evaluate_depth.py:158
↓ 2 callersFunctionvalidate_eth3d
(model, padding_factor=16, inference_size=None, at
evaluate_stereo.py:516
↓ 2 callersFunctionvalidate_kitti
Peform validation using the KITTI-2015 (train) split
evaluate_flow.py:498
↓ 2 callersFunctionvalidate_kitti15
(model, padding_factor=16, inference_size=None,
evaluate_stereo.py:396
↓ 2 callersFunctionvalidate_middlebury
(model, padding_factor=16, inference_size=None,
evaluate_stereo.py:611
↓ 2 callersFunctionvalidate_scannet
(model, padding_factor=16, inference_size=None,
evaluate_depth.py:22
↓ 2 callersFunctionvalidate_sintel
Peform validation using the Sintel (train) split
evaluate_flow.py:349
↓ 2 callersFunctionvalidate_things
(model, max_disp=400, padding_factor=16, infere
evaluate_stereo.py:302
↓ 2 callersFunctionvalidate_things
Peform validation using the Things (test) split
evaluate_flow.py:247
↓ 2 callersFunctionwarp_with_pose_depth_candidates
feature1: [B, C, H, W] intrinsics: [B, 3, 3] pose: [B, 4, 4] depth: [B, D, H, W]
unimatch/matching.py:239
↓ 1 callersMethod__init__
(self, output_dim=128, norm_layer=nn.InstanceNorm2d, num_output_scales=1,
unimatch/backbone.py:40
↓ 1 callersMethod__init__
( self, in_dim1, in_dim2, dim=128, out_dim=None, num_he
unimatch/ldm_unet/cross_attention.py:24
↓ 1 callersMethod_forward
(self, x)
unimatch/ldm_unet/unet.py:369
↓ 1 callersMethod_forward
(self, x, y=None)
unimatch/ldm_unet/unet.py:449
↓ 1 callersFunction_init_dist_mpi
(backend, **kwargs)
utils/dist_utils.py:33
↓ 1 callersFunction_init_dist_pytorch
(backend, **kwargs)
utils/dist_utils.py:25
↓ 1 callersFunction_init_dist_slurm
Initialize slurm distributed training environment. If argument ``port`` is not specified, then the master port will be system environment va
utils/dist_utils.py:41
↓ 1 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
unimatch/dpt_head.py:5
↓ 1 callersFunction_read_argoverse_disp
(filename)
utils/file_io.py:198
↓ 1 callersFunction_read_crestereo_disp
(filename)
utils/file_io.py:182
↓ 1 callersMethod_read_depth
(self, filename)
dataloader/depth/datasets.py:109
↓ 1 callersFunction_read_fallingthings_disp
(filename)
utils/file_io.py:187
↓ 1 callersFunction_read_instereo2k_disp
(filename)
utils/file_io.py:176
↓ 1 callersFunction_read_kitti_disp
(filename)
utils/file_io.py:130
↓ 1 callersFunction_read_pfm
(file)
utils/file_io.py:60
↓ 1 callersFunction_read_sintel_disparity
Return disparity read from filename.
utils/file_io.py:154
↓ 1 callersFunction_read_tartanair_disp
(filename)
utils/file_io.py:166
↓ 1 callersFunction_read_vkitti2_disp
(filename)
utils/file_io.py:136
↓ 1 callersMethodadd_depth_summary
(self, depth_pred, depth_gt, mode='train')
utils/logger.py:63
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
unimatch/ldm_unet/util.py:265
↓ 1 callersFunctionback_project
(depth, intrinsics)
unimatch/geometry.py:99
↓ 1 callersFunctionbilinear_sample
(img, sample_coords, mode='bilinear', padding_mode='zeros', return_mask=False)
unimatch/geometry.py:41
↓ 1 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
utils/utils.py:27
↓ 1 callersFunctionbuild_dataset
(args)
dataloader/stereo/datasets.py:636
↓ 1 callersFunctionbuild_train_dataset
(args)
dataloader/flow/datasets.py:339
↓ 1 callersFunctioncamera_transform
(points_ref, extrinsics_ref=None, extrinsics_tgt=None, extrinsics_rel=None)
unimatch/geometry.py:113
↓ 1 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
unimatch/ldm_unet/util.py:102
↓ 1 callersMethodcolor_transform
Photometric augmentation
dataloader/flow/transforms.py:35
↓ 1 callersMethodcolor_transform
(self, img1, img2)
dataloader/flow/transforms.py:179
↓ 1 callersFunctioncompute_color
compute optical flow color map :param u: optical flow horizontal map :param v: optical flow vertical map :return: optical flow in col
utils/flow_viz.py:195
next →1–100 of 377, ranked by callers