MCPcopy Create free account

hub / github.com/XiandaGuo/OpenStereo / functions

Functions2,487 in github.com/XiandaGuo/OpenStereo

↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
stereo/modeling/models/foundationstereo/dinov2/eval/segmentation_m2f/models/segmentors/encoder_decoder_mask2former.py:206
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
stereo/modeling/models/foundationstereo/dinov2/eval/depth/models/depther/encoder_decoder.py:173
↓ 3 callersFunctionmake_classification_eval_transform
( *, resize_size: int = 256, interpolation=transforms.InterpolationMode.BICUBIC, crop_size: in
stereo/modeling/models/foundationstereo/dinov2/data/transforms.py:77
↓ 3 callersFunctionmake_normalize_transform
( mean: Sequence[float] = IMAGENET_DEFAULT_MEAN, std: Sequence[float] = IMAGENET_DEFAULT_STD, )
stereo/modeling/models/foundationstereo/dinov2/data/transforms.py:46
↓ 3 callersFunctionpool2x
(x)
stereo/modeling/disp_refinement/gru_blocks.py:282
↓ 3 callersFunctionpool2x
(x)
stereo/modeling/models/stereobase/gru_blocks.py:282
↓ 3 callersFunctionpool2x
(x)
stereo/modeling/models/igev/update.py:97
↓ 3 callersFunctionpool2x
(x)
stereo/modeling/models/foundationstereo/core/update.py:70
↓ 3 callersFunctionpool2x
(x)
stereo/modeling/models/igevpp/update.py:102
↓ 3 callersFunctionpreprocess
(name, img)
stereo/modeling/models/iinet/utils.py:92
↓ 3 callersFunctionreadPFM
(file)
stereo/modeling/models/nmrf/utils/frame_utils.py:40
↓ 3 callersFunctionremove_ddp_wrapper
(m: nn.Module)
stereo/modeling/models/foundationstereo/dinov2/eval/linear.py:159
↓ 3 callersMethodrun
deploy/cpp/src/inference.cpp:200
↓ 3 callersFunctionsetup_and_build_model
(args)
stereo/modeling/models/foundationstereo/dinov2/eval/setup.py:70
↓ 3 callersFunctionshape_check
stereo/libs/AANet/deform_conv/src/deform_conv_cuda.cpp:62
↓ 3 callersMethodupdate
(self, new_input)
stereo/modeling/models/iinet/utils.py:137
↓ 3 callersFunctionvolume
deploy/cpp/src/inference.cpp:9
↓ 3 callersMethodwindow_partition
x: [B, H, W, N, C] Returns: (B*num_windows, num_heads, window_size*window_size*N, head_dim]
stereo/modeling/models/nmrf/NMP.py:185
↓ 2 callersFunctionDINOv2
(model_name)
stereo/modeling/models/monster/depth_anything_v2/dinov2.py:398
↓ 2 callersMethod__init__
(self, in_planes, out_planes, stride, padding, dilation)
stereo/modeling/disp_refinement/disp_refinement.py:11
↓ 2 callersMethod__init__
(self, in_channels, left_att, blocks, expanse_ratio, backbone_channels)
stereo/modeling/models/lightstereo/aggregation.py:8
↓ 2 callersMethod__init__
(self, hidden_dim: int = 128, nhead: int = 8, num_attn_layers: int = 6)
stereo/modeling/models/sttr/utilities/transformer.py:22
↓ 2 callersMethod__init__
(self, num_input_features, growth_rate, bn_size, drop_rate, memory_efficient=False)
stereo/modeling/models/sttr/utilities/densenet_in.py:24
↓ 2 callersMethod__init__
(self, block_config: list, backbone_feat_channel: list, hidden_dim: int, growth_rate: int)
stereo/modeling/models/sttr/utilities/feat_extractor_tokenizer.py:68
↓ 2 callersMethod__init__
(self, enabled)
stereo/modeling/models/igev_rt/igev_rt_stereo.py:14
↓ 2 callersMethod__init__
(self)
stereo/modeling/models/coex/coex_backbone.py:11
↓ 2 callersMethod__init__
(self, output_dim=128, norm_layer=nn.InstanceNorm2d)
stereo/modeling/models/nmrf/backbone.py:50
↓ 2 callersMethod__init__
(self, enabled)
stereo/modeling/models/foundationstereo/core/foundation_stereo.py:26
↓ 2 callersMethod__init__
(self, nclass, in_channels, features=256, use_bn=False, out_channels=[256, 512, 1024, 1024], use_clstoken=Fals
stereo/modeling/models/foundationstereo/depth_anything/dpt.py:24
↓ 2 callersMethod__init__
(self, classifiers_dict)
stereo/modeling/models/foundationstereo/dinov2/eval/linear.py:205
↓ 2 callersMethod__init__
(self, use_concat_volume=True, concat_channels=12)
stereo/modeling/models/gwcnet/gwcnet_backbone.py:95
↓ 2 callersMethod__init__
(self, in_channels, out_channels, deconv=False, is_3d=False, concat=True, keep_concat=True, IN=True, relu=True
stereo/modeling/models/igevpp/submodule.py:39
↓ 2 callersMethod__init__
(self, enabled)
stereo/modeling/models/igevpp/igevpp_stereo.py:15
↓ 2 callersMethod__init__
(self, in_planes, batch_norm=True)
stereo/modeling/models/psmnet/psmnet_cost_processor.py:77
↓ 2 callersMethod__init__
(self, optimizer, warmup_params, last_step=-1)
stereo/utils/warmup.py:15
↓ 2 callersFunction_called_with_cfg
Returns: bool: whether the arguments contain CfgNode and should be considered forwarded to from_config.
stereo/modeling/models/nmrf/config/config.py:334
↓ 2 callersFunction_check_env_variable
(key: str, new_value: str)
stereo/modeling/models/foundationstereo/dinov2/distributed/__init__.py:145
↓ 2 callersMethod_forward
(self, x)
stereo/modeling/models/psmnet/psmnet_backbone.py:82
↓ 2 callersFunction_get_args_from_config
Use `from_config` to obtain explicit arguments. Returns: dict: arguments to be used for cls.__init__
stereo/modeling/models/nmrf/config/config.py:301
↓ 2 callersMethod_get_class_ids_path
(self, root: Optional[str] = None)
stereo/modeling/models/foundationstereo/dinov2/data/datasets/image_net_22k.py:126
↓ 2 callersFunction_get_depth_range
(pretrained: bool, weights: Weights = Weights.NYU)
stereo/modeling/models/foundationstereo/dinov2/hub/depthers.py:22
↓ 2 callersMethod_get_extra_full_path
(self, extra_path: str)
stereo/modeling/models/foundationstereo/dinov2/data/datasets/image_net.py:81
↓ 2 callersMethod_get_knn_sims_and_labels
(self, similarity, train_labels)
stereo/modeling/models/foundationstereo/dinov2/eval/knn.py:124
↓ 2 callersFunction_get_torch_dtype
(size: int)
stereo/modeling/models/foundationstereo/dinov2/data/samplers.py:59
↓ 2 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
stereo/modeling/models/sttr/utilities/feat_extractor_backbone_in.py:57
↓ 2 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
stereo/modeling/models/sttr/utilities/feat_extractor_backbone.py:57
↓ 2 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
stereo/modeling/models/monster/depth_anything_v2/util/blocks.py:4
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
stereo/modeling/models/foundationstereo/dinov2/eval/segmentation_m2f/core/anchor/point_generator.py:40
↓ 2 callersMethod_open_cfg
(cls, filename)
stereo/modeling/models/nmrf/config/config.py:49
↓ 2 callersMethod_readDsp5Disp
(self, filename)
stereo/datasets/spring.py:78
↓ 2 callersMethod_reset_parameters
(self)
stereo/modeling/models/nmrf/ops/modules/ms_deform_attn.py:64
↓ 2 callersMethod_reset_parameters
(self)
stereo/modeling/models/foundationstereo/dinov2/eval/segmentation_m2f/ops/modules/ms_deform_attn.py:99
↓ 2 callersMethod_save_extra
(self, extra_array: np.ndarray, extra_path: str)
stereo/modeling/models/foundationstereo/dinov2/data/datasets/image_net_22k.py:190
↓ 2 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
stereo/modeling/disp_refinement/gru_blocks.py:152
↓ 2 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
stereo/modeling/models/stereobase/gru_blocks.py:152
↓ 2 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
stereo/modeling/models/fast_foundationstereo/core/utils/utils.py:102
↓ 2 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
stereo/modeling/models/igev/utils.py:61
↓ 2 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
stereo/modeling/models/foundationstereo/core/utils/utils.py:44
↓ 2 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
stereo/modeling/models/monster/utils.py:59
↓ 2 callersFunctionbilinear_sampler1d
1D bilinear sampling along width dimension only (for stereo applications) Much faster than grid_sample for stereo where y is constant Ar
stereo/modeling/models/fast_foundationstereo/core/utils/utils.py:34
↓ 2 callersMethodbn_function
(self, inputs)
stereo/modeling/models/sttr/utilities/densenet_in.py:39
↓ 2 callersFunctionbuild_dataloader
(data_cfg, batch_size, is_dist, workers, pin_memory, mode)
stereo/datasets/__init__.py:53
↓ 2 callersFunctionbuild_gwc_volume_triton
(refimg_fea: torch.Tensor, targetimg_fea: torch.Tensor, maxdisp: int, num_groups: int, normalize=True)
stereo/modeling/models/fast_foundationstereo/core/submodule.py:444
↓ 2 callersFunctionbuild_model_from_cfg
(cfg, only_teacher=False)
stereo/modeling/models/foundationstereo/dinov2/models/__init__.py:42
↓ 2 callersFunctionbuild_topk_accuracy_metric
(average_type: AccuracyAveraging, num_classes: int, ks: tuple = (1, 5))
stereo/modeling/models/foundationstereo/dinov2/eval/metrics.py:59
↓ 2 callersFunctioncal_metric
(disp_est: Tensor, disp_gt: Tensor, metric_dict: dict, valid_mask: Tensor)
stereo/modeling/models/iinet/metrics.py:105
↓ 2 callersFunctioncheck_path
(path)
stereo/modeling/models/nmrf/utils/misc.py:30
↓ 2 callersFunctioncheck_version
(current='0.0.0', minimum='0.0.0', name='version ', pinned=False, hard=False, verbose=False, logger=None)
deploy/deploy_utils.py:54
↓ 2 callersMethodcompute_l1_loss
compute smooth l1 loss :param pred: disparity prediction [N,H,W] :param inputs: input data :param invalid_mask: inva
stereo/modeling/models/sttr/utilities/loss.py:127
↓ 2 callersFunctioncontext_upsample
(disp_low, up_weights)
stereo/modeling/models/igev_rt/submodule.py:241
↓ 2 callersFunctioncontext_upsample
(disp_low, up_weights, scale_factor=4)
stereo/modeling/models/stereobase/igev_blocks.py:51
↓ 2 callersFunctioncontext_upsample
@disp_low: (b,1,h,w) 1/4 resolution @up_weights: (b,9,4*h,4*w) Image resolution
stereo/modeling/models/fast_foundationstereo/core/submodule.py:531
↓ 2 callersFunctioncontext_upsample
(disp_low, up_weights)
stereo/modeling/models/igev/submodule.py:253
↓ 2 callersFunctioncontext_upsample
(disp_low, up_weights)
stereo/modeling/models/monster/submodule.py:241
↓ 2 callersFunctionconv2d
(in_channels, out_channels, kernel_size=3, stride=1, dilation=1, groups=1)
stereo/modeling/models/aanet/submodule.py:25
↓ 2 callersFunctionconv3d_bn
(batchNorm, in_planes, out_planes, kernel_size=3, stride=1, padding=1, dilation=1, bias=True)
stereo/modeling/models/psmnet/submodule.py:68
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
stereo/modeling/models/coex/submodule.py:157
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
stereo/modeling/models/iinet/layers.py:8
↓ 2 callersFunctionconv_bn
(batchNorm, in_planes, out_planes, kernel_size=3, stride=1, padding=1, dilation=1, bias=True)
stereo/modeling/models/psmnet/submodule.py:31
↓ 2 callersFunctionconvbn
(in_planes, out_planes, kernel_size, stride, pad, dilation)
stereo/modeling/models/coex/submodule.py:9
↓ 2 callersFunctionconvbn_dws
(inp, oup, kernel_size, stride, pad, dilation, second_relu=True)
stereo/modeling/models/msnet/submodule.py:45
↓ 2 callersMethodcorr
fmap1: [B, C, H, W] warped_fmap2: [B, C, H, W, num_disp] Returns: local cost: [B*H*W, num_disp, G]
stereo/modeling/models/nmrf/NMP.py:709
↓ 2 callersFunctioncorrelation
(fea1, fea2)
stereo/modeling/models/igev_rt/submodule.py:189
↓ 2 callersFunctioncorrelation
(fea1, fea2)
stereo/modeling/models/igev/submodule.py:199
↓ 2 callersFunctioncorrelation
(fea1, fea2)
stereo/modeling/models/monster/submodule.py:189
↓ 2 callersFunctioncorrelation
(fea1, fea2)
stereo/modeling/models/igevpp/submodule.py:117
↓ 2 callersFunctioncreate_backbone
(model_type, norm_fn, out_channels, drop_path)
stereo/modeling/models/nmrf/backbone.py:177
↓ 2 callersFunctioncreate_linear_input
(x_tokens_list, use_n_blocks, use_avgpool)
stereo/modeling/models/foundationstereo/dinov2/eval/linear.py:171
↓ 2 callersFunctioncross_entropy
cross_entropy. The wrapper function for :func:`F.cross_entropy` Args: pred (torch.Tensor): The prediction with shape (N, 1). labe
stereo/modeling/models/foundationstereo/dinov2/eval/segmentation_m2f/models/losses/cross_entropy_loss.py:15
↓ 2 callersMethoddampen
Dampen the learning rates. Arguments: step (int): The index of current step. (Default: None)
stereo/utils/warmup.py:42
↓ 2 callersFunctiondeconv3d_bn
(batchNorm, in_planes, out_planes, kernel_size=4, stride=2, padding=1, output_padding=0, bias=True)
stereo/modeling/models/psmnet/submodule.py:86
↓ 2 callersMethoddepth_pred
Prediction each pixel.
stereo/modeling/models/foundationstereo/dinov2/eval/depth/models/decode_heads/decode_head.py:155
↓ 2 callersMethoddepth_pred
Prediction each pixel.
stereo/modeling/models/foundationstereo/dinov2/hub/depth/decode_heads.py:149
↓ 2 callersFunctiondisp_to_color
Transfer disparity map to color map Args: disp (numpy.array): disparity map in (Height, Width) layout, value range [0, 255] m
stereo/utils/disp_color.py:4
↓ 2 callersFunctiondisparity_regression
(x, maxdisp)
stereo/modeling/disp_pred/disp_regression.py:8
↓ 2 callersFunctiondisparity_regression
(x, maxdisp)
stereo/modeling/models/fast_foundationstereo/core/submodule.py:506
↓ 2 callersFunctiondo_test
(cfg, model, iteration)
stereo/modeling/models/foundationstereo/dinov2/train/train.py:122
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
stereo/modeling/models/foundationstereo/dinov2/layers/block.py:117
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
stereo/modeling/models/monster/depth_anything_v2/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
stereo/modeling/models/foundationstereo/dinov2/layers/block.py:188
← previousnext →201–300 of 2,487, ranked by callers