Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HVision-NKU/DepthAnythingAC
/ functions
Functions
579 in github.com/HVision-NKU/DepthAnythingAC
⨍
Functions
579
◇
Types & classes
98
Method
forward
(self, *args, is_training=False, **kwargs)
depth_anything/dinov2.py:323
Method
forward
(self, out_features, patch_h, patch_w)
depth_anything/dpt_teacher.py:102
Method
forward
(self, x)
depth_anything/dpt_teacher.py:154
Method
forward
Forward pass. Args: x (tensor): input Returns: tensor: output
depth_anything/util/blocksv1.py:69
Method
forward
Forward pass. Returns: tensor: output
depth_anything/util/blocksv1.py:126
Method
forward
depth_map: depth patches HW_tuple: (H, W) H * W == l
depth_anything/util/priorgenerate.py:62
Method
forward
Forward pass. Args: x (tensor): input Returns: tensor: output
depth_anything/util/blocksv2.py:57
Method
forward
Forward pass. Returns: tensor: output
depth_anything/util/blocksv2.py:123
Method
forward
(self, x)
depth_anything/dinov2_layers/drop_path.py:34
Method
forward
(self, x_or_x_list)
depth_anything/dinov2_layers/block.py:245
Method
forward
(self, x: Tensor)
depth_anything/dinov2_layers/layer_scale.py:27
Method
forward
(self, x: Tensor, attn_bias=None)
depth_anything/dinov2_layers/attention.py:66
Method
forward
(self, x: Tensor)
depth_anything/dinov2_layers/mlp.py:35
Method
forward
(self, x: Tensor)
depth_anything/dinov2_layers/swiglu_ffn.py:29
Method
forward
(self, x: Tensor)
depth_anything/dinov2_layers/patch_embed.py:69
Method
forward
(self, predicted_depth, target_depth, mask, eps=1e-6, need_inverse=True, need_norm=True, uncertainty=None)
losses/depth_anything_loss.py:10
Function
get_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
torchhub/facebookresearch_dinov2_main/dinov2/eval/setup.py:18
Method
get_checkpoint_file
Returns: str: The latest checkpoint file in target directory.
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:127
Method
get_class_id
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:229
Method
get_class_ids
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:232
Method
get_class_name
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:162
Method
get_image_data
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/adapters.py:16
Method
get_image_data
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:204
Method
get_image_data
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:136
Method
get_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
Function
get_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
Function
get_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
Function
get_sha
()
torchhub/facebookresearch_dinov2_main/dinov2/utils/utils.py:47
Method
get_target
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/adapters.py:19
Method
get_target
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:223
Method
get_target
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:148
Method
get_targets
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:226
Method
get_teacher_output
()
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:161
Method
global_avg
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:177
Method
has_checkpoint
Returns: bool: whether a checkpoint exists in the target directory.
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:119
Function
hflip_ori
(img, mask, p=0.5)
dataset/transform.py:244
Function
img_aug_autocontrast
(img, scale=None)
dataset/transform.py:395
Function
img_aug_blur
(img, scale=[0.1, 2.0])
dataset/transform.py:411
Function
img_aug_brightness
(img, scale=[0.05, 0.95])
dataset/transform.py:427
Function
img_aug_color
(img, scale=[0.05, 0.95])
dataset/transform.py:434
Function
img_aug_contrast
(img, scale=[0.05, 0.95], p=0.2)
dataset/transform.py:417
Function
img_aug_equalize
(img, scale=None)
dataset/transform.py:399
Function
img_aug_hue
(img, scale=[0, 0.5])
dataset/transform.py:448
Function
img_aug_identity
(img, scale=None)
dataset/transform.py:407
Function
img_aug_invert
(img, scale=None)
dataset/transform.py:403
Function
img_aug_posterize
(img, scale=[4, 8])
dataset/transform.py:469
Function
img_aug_sharpness
(img, scale=[0.05, 0.95])
dataset/transform.py:441
Function
img_aug_solarize
(img, scale=[1, 256])
dataset/transform.py:478
Function
infer_batch_images
Batch process images
tools/infer.py:163
Function
init_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:331
Function
init_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:298
Function
init_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
depth_anything/dinov2.py:331
Method
length
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:46
Method
length
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:28
Function
load_and_merge_config
(config_name: str)
torchhub/facebookresearch_dinov2_main/dinov2/configs/__init__.py:20
Function
load_pretrained_weights
(model, pretrained_weights, checkpoint_key)
torchhub/facebookresearch_dinov2_main/dinov2/utils/utils.py:21
Method
median
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:167
Function
normalize
(sample)
dataset/transform.py:270
Function
normalize_ori
(img, mask=None)
dataset/transform.py:260
Function
obtain_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
Function
resize
(sample, ratio_range)
dataset/transform.py:312
Function
resize_ori
(img, mask, ratio_range)
dataset/transform.py:296
Method
sinkhorn_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
Method
softmax_center_teacher
(self, teacher_patch_tokens, teacher_temp)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:47
Method
synchronize_between_processes
Distributed synchronization of the metric Warning: does not synchronize the deque!
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:152
Method
update_center
(self, teacher_patch_tokens)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:130
Method
value
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:185
Function
vit_base
(patch_size=16, num_register_tokens=0, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:353
Function
vit_base
(patch_size=16, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:319
Function
vit_base
(patch_size=16, num_register_tokens=0, **kwargs)
depth_anything/dinov2.py:353
Function
vit_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
Function
vit_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
Function
vit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
depth_anything/dinov2.py:381
Function
vit_large
(patch_size=16, num_register_tokens=0, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:367
Function
vit_large
(patch_size=16, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:332
Function
vit_large
(patch_size=16, num_register_tokens=0, **kwargs)
depth_anything/dinov2.py:367
Function
vit_small
(patch_size=16, num_register_tokens=0, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:339
Function
vit_small
(patch_size=16, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:306
Function
vit_small
(patch_size=16, num_register_tokens=0, **kwargs)
depth_anything/dinov2.py:339
← previous
501–579 of 579, ranked by callers