MCPcopy Create free account

hub / github.com/HVision-NKU/DepthAnythingAC / functions

Functions579 in github.com/HVision-NKU/DepthAnythingAC

Methodforward
(self, *args, is_training=False, **kwargs)
depth_anything/dinov2.py:323
Methodforward
(self, out_features, patch_h, patch_w)
depth_anything/dpt_teacher.py:102
Methodforward
(self, x)
depth_anything/dpt_teacher.py:154
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
depth_anything/util/blocksv1.py:69
Methodforward
Forward pass. Returns: tensor: output
depth_anything/util/blocksv1.py:126
Methodforward
depth_map: depth patches HW_tuple: (H, W) H * W == l
depth_anything/util/priorgenerate.py:62
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
depth_anything/util/blocksv2.py:57
Methodforward
Forward pass. Returns: tensor: output
depth_anything/util/blocksv2.py:123
Methodforward
(self, x)
depth_anything/dinov2_layers/drop_path.py:34
Methodforward
(self, x_or_x_list)
depth_anything/dinov2_layers/block.py:245
Methodforward
(self, x: Tensor)
depth_anything/dinov2_layers/layer_scale.py:27
Methodforward
(self, x: Tensor, attn_bias=None)
depth_anything/dinov2_layers/attention.py:66
Methodforward
(self, x: Tensor)
depth_anything/dinov2_layers/mlp.py:35
Methodforward
(self, x: Tensor)
depth_anything/dinov2_layers/swiglu_ffn.py:29
Methodforward
(self, x: Tensor)
depth_anything/dinov2_layers/patch_embed.py:69
Methodforward
(self, predicted_depth, target_depth, mask, eps=1e-6, need_inverse=True, need_norm=True, uncertainty=None)
losses/depth_anything_loss.py:10
Functionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
torchhub/facebookresearch_dinov2_main/dinov2/eval/setup.py:18
Methodget_checkpoint_file
Returns: str: The latest checkpoint file in target directory.
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:127
Methodget_class_id
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:229
Methodget_class_ids
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:232
Methodget_class_name
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:162
Methodget_image_data
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/adapters.py:16
Methodget_image_data
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:204
Methodget_image_data
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:136
Methodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
torchhub/facebookresearch_dinov2_main/vision_transformer.py:297
Functionget_local_rank
Returns: The rank of the current process within the local (per-machine) process group.
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:44
Functionget_local_size
Returns: The size of the per-machine process group, i.e. the number of processes per machine.
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:55
Functionget_sha
()
torchhub/facebookresearch_dinov2_main/dinov2/utils/utils.py:47
Methodget_target
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/adapters.py:19
Methodget_target
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:223
Methodget_target
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:148
Methodget_targets
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:226
Methodget_teacher_output
()
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:161
Methodglobal_avg
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:177
Methodhas_checkpoint
Returns: bool: whether a checkpoint exists in the target directory.
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:119
Functionhflip_ori
(img, mask, p=0.5)
dataset/transform.py:244
Functionimg_aug_autocontrast
(img, scale=None)
dataset/transform.py:395
Functionimg_aug_blur
(img, scale=[0.1, 2.0])
dataset/transform.py:411
Functionimg_aug_brightness
(img, scale=[0.05, 0.95])
dataset/transform.py:427
Functionimg_aug_color
(img, scale=[0.05, 0.95])
dataset/transform.py:434
Functionimg_aug_contrast
(img, scale=[0.05, 0.95], p=0.2)
dataset/transform.py:417
Functionimg_aug_equalize
(img, scale=None)
dataset/transform.py:399
Functionimg_aug_hue
(img, scale=[0, 0.5])
dataset/transform.py:448
Functionimg_aug_identity
(img, scale=None)
dataset/transform.py:407
Functionimg_aug_invert
(img, scale=None)
dataset/transform.py:403
Functionimg_aug_posterize
(img, scale=[4, 8])
dataset/transform.py:469
Functionimg_aug_sharpness
(img, scale=[0.05, 0.95])
dataset/transform.py:441
Functionimg_aug_solarize
(img, scale=[1, 256])
dataset/transform.py:478
Functioninfer_batch_images
Batch process images
tools/infer.py:163
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:331
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:298
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
depth_anything/dinov2.py:331
Methodlength
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:46
Methodlength
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:28
Functionload_and_merge_config
(config_name: str)
torchhub/facebookresearch_dinov2_main/dinov2/configs/__init__.py:20
Functionload_pretrained_weights
(model, pretrained_weights, checkpoint_key)
torchhub/facebookresearch_dinov2_main/dinov2/utils/utils.py:21
Methodmedian
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:167
Functionnormalize
(sample)
dataset/transform.py:270
Functionnormalize_ori
(img, mask=None)
dataset/transform.py:260
Functionobtain_cutmix_box
(img_size, p=0.5, size_min=0.02, size_max=0.4, ratio_1=0.3, ratio_2=1/0.3)
dataset/transform.py:375
Functionresize
(sample, ratio_range)
dataset/transform.py:312
Functionresize_ori
(img, mask, ratio_range)
dataset/transform.py:296
Methodsinkhorn_knopp_teacher
(self, teacher_output, teacher_temp, n_masked_patches_tensor, n_iterations=3)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:63
Methodsoftmax_center_teacher
(self, teacher_patch_tokens, teacher_temp)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:47
Methodsynchronize_between_processes
Distributed synchronization of the metric Warning: does not synchronize the deque!
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:152
Methodupdate_center
(self, teacher_patch_tokens)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:130
Methodvalue
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:185
Functionvit_base
(patch_size=16, num_register_tokens=0, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:353
Functionvit_base
(patch_size=16, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:319
Functionvit_base
(patch_size=16, num_register_tokens=0, **kwargs)
depth_anything/dinov2.py:353
Functionvit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
torchhub/facebookresearch_dinov2_main/vision_transformer.py:381
Functionvit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:345
Functionvit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
depth_anything/dinov2.py:381
Functionvit_large
(patch_size=16, num_register_tokens=0, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:367
Functionvit_large
(patch_size=16, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:332
Functionvit_large
(patch_size=16, num_register_tokens=0, **kwargs)
depth_anything/dinov2.py:367
Functionvit_small
(patch_size=16, num_register_tokens=0, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:339
Functionvit_small
(patch_size=16, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:306
Functionvit_small
(patch_size=16, num_register_tokens=0, **kwargs)
depth_anything/dinov2.py:339
← previous501–579 of 579, ranked by callers