MCPcopy Create free account

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

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

Method__init__
(self)
metric_depth/dataset/transform.py:225
Method__init__
(self, size)
metric_depth/dataset/transform.py:251
Method__init__
(self, filelist_path, mode, size=(518, 518))
metric_depth/dataset/hypersim.py:27
Method__init__
(self, in_feature, out_feature)
metric_depth/depth_anything_v2/dpt.py:25
Method__init__
( self, encoder='vitl', features=256, out_channels=[256, 512, 1024, 1024],
metric_depth/depth_anything_v2/dpt.py:153
Method__init__
Args: img_size (int, tuple): input image size patch_size (int, tuple): patch size in_chans (int): number
metric_depth/depth_anything_v2/dinov2.py:45
Method__init__
Init. Args: features (int): number of features
metric_depth/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
metric_depth/depth_anything_v2/util/transform.py:9
Method__init__
(self, mean, std)
metric_depth/depth_anything_v2/util/transform.py:129
Method__init__
(self)
metric_depth/depth_anything_v2/util/transform.py:143
Method__init__
(self, drop_prob=None)
metric_depth/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
metric_depth/depth_anything_v2/dinov2_layers/block.py:37
Method__init__
( self, dim: int, init_values: Union[float, Tensor] = 1e-5, inplace: bool = Fa
metric_depth/depth_anything_v2/dinov2_layers/layer_scale.py:17
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, proj_bia
metric_depth/depth_anything_v2/dinov2_layers/attention.py:30
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
metric_depth/depth_anything_v2/dinov2_layers/mlp.py:18
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
metric_depth/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,
metric_depth/depth_anything_v2/dinov2_layers/patch_embed.py:38
Method__init__
(self, lambd=0.5)
metric_depth/util/loss.py:6
Method__len__
(self)
metric_depth/dataset/kitti.py:56
Method__len__
(self)
metric_depth/dataset/vkitti2.py:53
Method__len__
(self)
metric_depth/dataset/hypersim.py:73
Functionapply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
metric_depth/dataset/transform.py:8
Methodattn_residual_func
(x: Tensor)
depth_anything_v2/dinov2_layers/block.py:83
Methodattn_residual_func
(x: Tensor, attn_bias=None)
depth_anything_v2/dinov2_layers/block.py:213
Methodattn_residual_func
(x: Tensor)
metric_depth/depth_anything_v2/dinov2_layers/block.py:83
Methodattn_residual_func
(x: Tensor, attn_bias=None)
metric_depth/depth_anything_v2/dinov2_layers/block.py:213
Methodf
(*args, **kwargs)
depth_anything_v2/dinov2.py:130
Methodf
(*args, **kwargs)
metric_depth/depth_anything_v2/dinov2.py:130
Methodffn_residual_func
(x: Tensor)
depth_anything_v2/dinov2_layers/block.py:86
Methodffn_residual_func
(x: Tensor, attn_bias=None)
depth_anything_v2/dinov2_layers/block.py:216
Methodffn_residual_func
(x: Tensor)
metric_depth/depth_anything_v2/dinov2_layers/block.py:86
Methodffn_residual_func
(x: Tensor, attn_bias=None)
metric_depth/depth_anything_v2/dinov2_layers/block.py:216
Methodflops
(self)
depth_anything_v2/dinov2_layers/patch_embed.py:84
Methodflops
(self)
metric_depth/depth_anything_v2/dinov2_layers/patch_embed.py:84
Methodforward
(self, x)
depth_anything_v2/dpt.py:34
Methodforward
(self, out_features, patch_h, patch_w)
depth_anything_v2/dpt.py:117
Methodforward
(self, x)
depth_anything_v2/dinov2.py:38
Methodforward
(self, *args, is_training=False, **kwargs)
depth_anything_v2/dinov2.py:323
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
depth_anything_v2/util/blocks.py:57
Methodforward
Forward pass. Returns: tensor: output
depth_anything_v2/util/blocks.py:123
Methodforward
(self, x)
depth_anything_v2/dinov2_layers/drop_path.py:34
Methodforward
(self, x_or_x_list)
depth_anything_v2/dinov2_layers/block.py:245
Methodforward
(self, x: Tensor)
depth_anything_v2/dinov2_layers/layer_scale.py:27
Methodforward
(self, x: Tensor, attn_bias=None)
depth_anything_v2/dinov2_layers/attention.py:66
Methodforward
(self, x: Tensor)
depth_anything_v2/dinov2_layers/mlp.py:35
Methodforward
(self, x: Tensor)
depth_anything_v2/dinov2_layers/swiglu_ffn.py:29
Methodforward
(self, x: Tensor)
depth_anything_v2/dinov2_layers/patch_embed.py:69
Methodforward
(self, x)
metric_depth/depth_anything_v2/dpt.py:34
Methodforward
(self, out_features, patch_h, patch_w)
metric_depth/depth_anything_v2/dpt.py:116
Methodforward
(self, x)
metric_depth/depth_anything_v2/dinov2.py:38
Methodforward
(self, *args, is_training=False, **kwargs)
metric_depth/depth_anything_v2/dinov2.py:323
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
metric_depth/depth_anything_v2/util/blocks.py:57
Methodforward
Forward pass. Returns: tensor: output
metric_depth/depth_anything_v2/util/blocks.py:123
Methodforward
(self, x)
metric_depth/depth_anything_v2/dinov2_layers/drop_path.py:34
Methodforward
(self, x_or_x_list)
metric_depth/depth_anything_v2/dinov2_layers/block.py:245
Methodforward
(self, x: Tensor)
metric_depth/depth_anything_v2/dinov2_layers/layer_scale.py:27
Methodforward
(self, x: Tensor, attn_bias=None)
metric_depth/depth_anything_v2/dinov2_layers/attention.py:66
Methodforward
(self, x: Tensor)
metric_depth/depth_anything_v2/dinov2_layers/mlp.py:35
Methodforward
(self, x: Tensor)
metric_depth/depth_anything_v2/dinov2_layers/swiglu_ffn.py:29
Methodforward
(self, x: Tensor)
metric_depth/depth_anything_v2/dinov2_layers/patch_embed.py:69
Methodforward
(self, pred, target, valid_mask)
metric_depth/util/loss.py:10
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
depth_anything_v2/dinov2.py:331
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
metric_depth/depth_anything_v2/dinov2.py:331
Functionon_submit
(image)
app.py:60
Functionvit_base
(patch_size=16, num_register_tokens=0, **kwargs)
depth_anything_v2/dinov2.py:353
Functionvit_base
(patch_size=16, num_register_tokens=0, **kwargs)
metric_depth/depth_anything_v2/dinov2.py:353
Functionvit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
depth_anything_v2/dinov2.py:381
Functionvit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
metric_depth/depth_anything_v2/dinov2.py:381
Functionvit_large
(patch_size=16, num_register_tokens=0, **kwargs)
depth_anything_v2/dinov2.py:367
Functionvit_large
(patch_size=16, num_register_tokens=0, **kwargs)
metric_depth/depth_anything_v2/dinov2.py:367
Functionvit_small
(patch_size=16, num_register_tokens=0, **kwargs)
depth_anything_v2/dinov2.py:339
Functionvit_small
(patch_size=16, num_register_tokens=0, **kwargs)
metric_depth/depth_anything_v2/dinov2.py:339
← previous101–172 of 172, ranked by callers