MCPcopy Create free account

hub / github.com/DepthAnything/Depth-Anything-V2 / functions

Functions172 in github.com/DepthAnything/Depth-Anything-V2

↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
depth_anything_v2/util/transform.py:51
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
metric_depth/dataset/transform.py:96
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
metric_depth/depth_anything_v2/util/transform.py:51
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
depth_anything_v2/dpt.py:12
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
metric_depth/depth_anything_v2/dpt.py:12
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
depth_anything_v2/dinov2.py:212
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
metric_depth/depth_anything_v2/dinov2.py:212
↓ 3 callersMethodinfer_image
(self, raw_image, input_size=518)
depth_anything_v2/dpt.py:187
↓ 2 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256
depth_anything_v2/dpt.py:39
↓ 2 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256
metric_depth/depth_anything_v2/dpt.py:39
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
depth_anything_v2/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
metric_depth/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 =
depth_anything_v2/dinov2_layers/block.py:181
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
metric_depth/depth_anything_v2/dinov2_layers/block.py:181
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
depth_anything_v2/dinov2_layers/block.py:157
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
metric_depth/depth_anything_v2/dinov2_layers/block.py:157
↓ 2 callersMethodinfer_image
(self, raw_image, input_size=518)
metric_depth/depth_anything_v2/dpt.py:188
↓ 2 callersFunctionmake_2tuple
(x)
depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionmake_2tuple
(x)
metric_depth/depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 1 callersFunctionDINOv2
(model_name)
depth_anything_v2/dinov2.py:398
↓ 1 callersFunctionDINOv2
(model_name)
metric_depth/depth_anything_v2/dinov2.py:398
↓ 1 callersMethod__init__
Init. Args: features (int): number of features
depth_anything_v2/util/blocks.py:33
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
depth_anything_v2/dinov2_layers/swiglu_ffn.py:14
↓ 1 callersMethod__init__
Init. Args: features (int): number of features
metric_depth/depth_anything_v2/util/blocks.py:33
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
metric_depth/depth_anything_v2/dinov2_layers/swiglu_ffn.py:14
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
depth_anything_v2/dinov2.py:283
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
metric_depth/depth_anything_v2/dinov2.py:283
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
depth_anything_v2/dinov2.py:271
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
metric_depth/depth_anything_v2/dinov2.py:271
↓ 1 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
depth_anything_v2/util/blocks.py:4
↓ 1 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
metric_depth/depth_anything_v2/util/blocks.py:4
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
depth_anything_v2/dinov2_layers/block.py:142
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
metric_depth/depth_anything_v2/dinov2_layers/block.py:142
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
depth_anything_v2/dinov2_layers/drop_path.py:15
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
metric_depth/depth_anything_v2/dinov2_layers/drop_path.py:15
↓ 1 callersFunctioneval_depth
(pred, target)
metric_depth/util/metric.py:4
↓ 1 callersMethodforward
(self, x)
depth_anything_v2/dpt.py:176
↓ 1 callersMethodforward
(self, x: Tensor)
depth_anything_v2/dinov2_layers/block.py:82
↓ 1 callersMethodforward
(self, x: Tensor)
depth_anything_v2/dinov2_layers/attention.py:49
↓ 1 callersMethodforward
(self, x)
metric_depth/depth_anything_v2/dpt.py:178
↓ 1 callersMethodforward
(self, x: Tensor)
metric_depth/depth_anything_v2/dinov2_layers/block.py:82
↓ 1 callersMethodforward
(self, x: Tensor)
metric_depth/depth_anything_v2/dinov2_layers/attention.py:49
↓ 1 callersMethodforward_features
(self, x, masks=None)
depth_anything_v2/dinov2.py:253
↓ 1 callersMethodforward_features
(self, x, masks=None)
metric_depth/depth_anything_v2/dinov2.py:253
↓ 1 callersMethodforward_features_list
(self, x_list, masks_list)
depth_anything_v2/dinov2.py:233
↓ 1 callersMethodforward_features_list
(self, x_list, masks_list)
metric_depth/depth_anything_v2/dinov2.py:233
↓ 1 callersMethodforward_nested
x_list contains a list of tensors to nest together and run
depth_anything_v2/dinov2_layers/block.py:205
↓ 1 callersMethodforward_nested
x_list contains a list of tensors to nest together and run
metric_depth/depth_anything_v2/dinov2_layers/block.py:205
↓ 1 callersFunctionget_branges_scales
(x, sample_drop_ratio=0.0)
depth_anything_v2/dinov2_layers/block.py:134
↓ 1 callersFunctionget_branges_scales
(x, sample_drop_ratio=0.0)
metric_depth/depth_anything_v2/dinov2_layers/block.py:134
↓ 1 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
depth_anything_v2/dinov2.py:297
↓ 1 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
metric_depth/depth_anything_v2/dinov2.py:297
↓ 1 callersMethodget_size
(self, width, height)
depth_anything_v2/util/transform.py:62
↓ 1 callersMethodget_size
(self, width, height)
metric_depth/dataset/transform.py:107
↓ 1 callersMethodget_size
(self, width, height)
metric_depth/depth_anything_v2/util/transform.py:62
↓ 1 callersFunctionhypersim_distance_to_depth
(npyDistance)
metric_depth/dataset/hypersim.py:11
↓ 1 callersMethodimage2tensor
(self, raw_image, input_size=518)
depth_anything_v2/dpt.py:196
↓ 1 callersMethodimage2tensor
(self, raw_image, input_size=518)
metric_depth/depth_anything_v2/dpt.py:197
↓ 1 callersFunctioninit_log
(name, level=logging.INFO)
metric_depth/util/utils.py:9
↓ 1 callersMethodinit_weights
(self)
depth_anything_v2/dinov2.py:172
↓ 1 callersMethodinit_weights
(self)
metric_depth/depth_anything_v2/dinov2.py:172
↓ 1 callersMethodinterpolate_pos_encoding
(self, x, w, h)
depth_anything_v2/dinov2.py:179
↓ 1 callersMethodinterpolate_pos_encoding
(self, x, w, h)
metric_depth/depth_anything_v2/dinov2.py:179
↓ 1 callersFunctionmain
()
metric_depth/train.py:43
↓ 1 callersFunctionmain
()
metric_depth/depth_to_pointcloud.py:34
↓ 1 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
depth_anything_v2/dinov2.py:26
↓ 1 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
metric_depth/depth_anything_v2/dinov2.py:26
↓ 1 callersFunctionpredict_depth
(image)
app.py:43
↓ 1 callersFunctionsetup_distributed
AdaHessian Optimizer Lifted from https://github.com/BIGBALLON/distribuuuu/blob/master/distribuuuu/utils.py Originally licensed MIT, Copyright
metric_depth/util/dist_helper.py:8
Method__call__
(self, sample)
depth_anything_v2/util/transform.py:109
Method__call__
(self, sample)
depth_anything_v2/util/transform.py:133
Method__call__
(self, sample)
depth_anything_v2/util/transform.py:146
Method__call__
(self, sample)
metric_depth/dataset/transform.py:164
Method__call__
(self, sample)
metric_depth/dataset/transform.py:215
Method__call__
(self, sample)
metric_depth/dataset/transform.py:228
Method__call__
(self, sample)
metric_depth/dataset/transform.py:257
Method__call__
(self, sample)
metric_depth/depth_anything_v2/util/transform.py:109
Method__call__
(self, sample)
metric_depth/depth_anything_v2/util/transform.py:133
Method__call__
(self, sample)
metric_depth/depth_anything_v2/util/transform.py:146
Method__getitem__
(self, item)
metric_depth/dataset/kitti.py:35
Method__getitem__
(self, item)
metric_depth/dataset/vkitti2.py:33
Method__getitem__
(self, item)
metric_depth/dataset/hypersim.py:50
Method__init__
(self, in_feature, out_feature)
depth_anything_v2/dpt.py:25
Method__init__
( self, encoder='vitl', features=256, out_channels=[256, 512, 1024, 1024],
depth_anything_v2/dpt.py:154
Method__init__
Args: img_size (int, tuple): input image size patch_size (int, tuple): patch size in_chans (int): number
depth_anything_v2/dinov2.py:45
Method__init__
Init. Args: features (int): number of features
depth_anything_v2/util/blocks.py:87
Method__init__
Init. Args: width (int): desired output width height (int): desired output height resize_target (bool, op
depth_anything_v2/util/transform.py:9
Method__init__
(self, mean, std)
depth_anything_v2/util/transform.py:129
Method__init__
(self)
depth_anything_v2/util/transform.py:143
Method__init__
(self, drop_prob=None)
depth_anything_v2/dinov2_layers/drop_path.py:30
Method__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
depth_anything_v2/dinov2_layers/block.py:37
Method__init__
( self, dim: int, init_values: Union[float, Tensor] = 1e-5, inplace: bool = Fa
depth_anything_v2/dinov2_layers/layer_scale.py:17
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, proj_bia
depth_anything_v2/dinov2_layers/attention.py:30
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
depth_anything_v2/dinov2_layers/mlp.py:18
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
depth_anything_v2/dinov2_layers/swiglu_ffn.py:46
Method__init__
( self, img_size: Union[int, Tuple[int, int]] = 224, patch_size: Union[int, Tuple[int,
depth_anything_v2/dinov2_layers/patch_embed.py:38
Method__init__
(self, filelist_path, mode, size=(518, 518))
metric_depth/dataset/kitti.py:10
Method__init__
(self, filelist_path, mode, size=(518, 518))
metric_depth/dataset/vkitti2.py:10
Method__init__
Init. Args: width (int): desired output width height (int): desired output height resize_target (bool, op
metric_depth/dataset/transform.py:54
Method__init__
(self, mean, std)
metric_depth/dataset/transform.py:211
next →1–100 of 172, ranked by callers