MCPcopy Create free account

hub / github.com/LiheYoung/Depth-Anything / functions

Functions746 in github.com/LiheYoung/Depth-Anything

Methoddecode
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/decoders.py:31
Functiondenormalize
Reverses the imagenet normalization applied to the input. Args: x (torch.Tensor - shape(N,3,H,W)): input tensor Returns: tor
metric_depth/zoedepth/utils/misc.py:60
Functiondepth_to_points
(depth, R=None, t=None)
metric_depth/zoedepth/utils/geometry.py:39
Functiondinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
torchhub/facebookresearch_dinov2_main/hubconf.py:77
Functiondinov2_vitb14_reg
DINOv2 ViT-B/14 model with registers (optionally) pretrained on the LVD-142M dataset.
torchhub/facebookresearch_dinov2_main/hubconf.py:119
Functiondinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
torchhub/facebookresearch_dinov2_main/hubconf.py:91
Functiondinov2_vitg14_reg
DINOv2 ViT-g/14 model with registers (optionally) pretrained on the LVD-142M dataset.
torchhub/facebookresearch_dinov2_main/hubconf.py:149
Functiondinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
torchhub/facebookresearch_dinov2_main/hubconf.py:84
Functiondinov2_vitl14_reg
DINOv2 ViT-L/14 model with registers (optionally) pretrained on the LVD-142M dataset.
torchhub/facebookresearch_dinov2_main/hubconf.py:134
Functiondinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
torchhub/facebookresearch_dinov2_main/hubconf.py:70
Functiondinov2_vits14_reg
DINOv2 ViT-S/14 model with registers (optionally) pretrained on the LVD-142M dataset.
torchhub/facebookresearch_dinov2_main/hubconf.py:104
Methoddump_extra
(self, root: Optional[str] = None)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:302
Methoddump_extra
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:289
Functionenable
Enable distributed mode Args: set_cuda_current_device: If True, call torch.cuda.set_device() to set the current PyTorch CUDA
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:240
Methodentries_path
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:52
Functionexp_attractor
Exponential attractor: dc = exp(-alpha*|dx|^gamma) * dx , where dx = a - c, a = attractor point, c = bin center, dc = shift in bin centermmary for exp
metric_depth/zoedepth/models/layers/attractor.py:30
Methodf
(*args, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:130
Methodf
(*args, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:118
Methodffn_residual_func
(x: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:86
Methodffn_residual_func
(x: Tensor, attn_bias=None)
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:216
Methodfind_class_id
(self, class_index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:201
Methodfind_class_id
(self, class_index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:128
Methodfind_class_name
(self, class_index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:132
Functionfix_random_seeds
Fix random seeds.
torchhub/facebookresearch_dinov2_main/dinov2/utils/utils.py:37
Methodflops
(self)
torchhub/facebookresearch_dinov2_main/dinov2/layers/patch_embed.py:84
Methodforward
(self, x)
torchhub/facebookresearch_dinov2_main/utils.py:36
Methodforward
(self, x)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:38
Methodforward
(self, *args, is_training=False, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:323
Methodforward
(self, x_tokens_list)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:200
Methodforward
(self, inputs)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:211
Methodforward
(self, samples, targets)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:224
Methodforward
(self, samples, targets)
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:130
Methodforward
(self, samples)
torchhub/facebookresearch_dinov2_main/dinov2/eval/utils.py:27
Methodforward
(self, images)
torchhub/facebookresearch_dinov2_main/dinov2/eval/utils.py:39
Methodforward
Compute the results on all values of `self.nb_knn` neighbors from the full `self.max_k`
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:171
Methodforward
(self, features_dict, targets)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:193
Methodforward
(self, *args, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:242
Methodforward
(self, x)
torchhub/facebookresearch_dinov2_main/dinov2/layers/drop_path.py:34
Methodforward
(self, x_or_x_list)
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:245
Methodforward
(self, x)
torchhub/facebookresearch_dinov2_main/dinov2/layers/dino_head.py:37
Methodforward
(self, x: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/layers/layer_scale.py:27
Methodforward
(self, x: Tensor, attn_bias=None)
torchhub/facebookresearch_dinov2_main/dinov2/layers/attention.py:66
Methodforward
(self, x: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/layers/mlp.py:35
Methodforward
(self, x: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/layers/swiglu_ffn.py:29
Methodforward
(self, x: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/layers/patch_embed.py:69
Methodforward
(self, x)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:39
Methodforward
(self, *args, is_training=False, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:290
Methodforward
Args: student_output (BxD): backbone output of student
torchhub/facebookresearch_dinov2_main/dinov2/loss/koleo_loss.py:39
Methodforward
Cross-entropy between softmax outputs of the teacher and student networks. student_patch_tokens: (B, N, D) tensor teacher_pat
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:93
Methodforward
Cross-entropy between softmax outputs of the teacher and student networks.
torchhub/facebookresearch_dinov2_main/dinov2/loss/dino_clstoken_loss.py:64
Methodforward
(self, inputs)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:126
Methodforward
(self, out_features, patch_h, patch_w)
depth_anything/dpt.py:103
Methodforward
(self, x)
depth_anything/dpt.py:155
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
depth_anything/blocks.py:69
Methodforward
Forward pass. Returns: tensor: output
depth_anything/blocks.py:126
Methodforward
(self, inputs)
semseg/dinov2.py:32
Methodforward
(self, input, target, mask=None, interpolate=True, return_interpolated=False)
metric_depth/zoedepth/trainers/loss.py:49
Methodforward
(self, input, target, mask=None, interpolate=True, return_interpolated=False)
metric_depth/zoedepth/trainers/loss.py:116
Methodforward
(self, input, target, mask=None, interpolate=True, return_interpolated=False)
metric_depth/zoedepth/trainers/loss.py:221
Methodforward
(self, prediction, target, mask, interpolate=True, return_interpolated=False)
metric_depth/zoedepth/trainers/loss.py:286
Methodforward
(self, x, *args, **kwargs)
metric_depth/zoedepth/models/depth_model.py:44
Methodforward
(self, x, denorm=False, return_rel_depth=False)
metric_depth/zoedepth/models/base_models/midas.py:258
Methodforward
(self, x, denorm=False, return_rel_depth=False)
metric_depth/zoedepth/models/base_models/depth_anything.py:261
Methodforward
(self, out_features, patch_h, patch_w)
metric_depth/zoedepth/models/base_models/dpt_dinov2/dpt.py:97
Methodforward
(self, x)
metric_depth/zoedepth/models/base_models/dpt_dinov2/dpt.py:146
Methodforward
Forward pass. Args: x (tensor): input Returns: tensor: output
metric_depth/zoedepth/models/base_models/dpt_dinov2/blocks.py:69
Methodforward
Forward pass. Returns: tensor: output
metric_depth/zoedepth/models/base_models/dpt_dinov2/blocks.py:126
Methodforward
Args: x (torch.Tensor): Input image tensor of shape (B, C, H, W) return_final_centers (bool, optional): Whether to re
metric_depth/zoedepth/models/zoedepth/zoedepth_v1.py:127
Methodforward
Forward pass Args: x (torch.Tensor - NCHW): Input feature tensor Returns: torch.Tensor - SNE: Transformer ou
metric_depth/zoedepth/models/layers/patch_transformer.py:71
Methodforward
Compute log binomial distribution for x Args: x (torch.Tensor - NCHW): probabilities t (float, torch.Tensor - NCHW, o
metric_depth/zoedepth/models/layers/dist_layers.py:51
Methodforward
Forward pass Args: x (torch.Tensor - NCHW): Main feature cond (torch.Tensor - NCHW): condition feature Retur
metric_depth/zoedepth/models/layers/dist_layers.py:100
Methodforward
Returns tensor of bin_width vectors (centers). One vector b for every pixel
metric_depth/zoedepth/models/layers/localbins_layers.py:52
Methodforward
Returns tensor of bin_width vectors (centers). One vector b for every pixel
metric_depth/zoedepth/models/layers/localbins_layers.py:91
Methodforward
(self, x)
metric_depth/zoedepth/models/layers/localbins_layers.py:116
Methodforward
x : feature block; shape - n, c, h, w b_prev : previous bin widths normed; shape - n, prev_nbins, h, w
metric_depth/zoedepth/models/layers/localbins_layers.py:137
Methodforward
Args: x (torch.Tensor) : feature block; shape - n, c, h, w b_prev (torch.Tensor) : previous bin centers normed; shape
metric_depth/zoedepth/models/layers/attractor.py:85
Methodforward
Args: x (torch.Tensor) : feature block; shape - n, c, h, w b_prev (torch.Tensor) : previous bin centers normed; shape
metric_depth/zoedepth/models/layers/attractor.py:164
Methodforward
Args: x (torch.Tensor): Input image tensor of shape (B, C, H, W). Assumes all images are from the same domain. return
metric_depth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:160
Methodfreeze_all_confs
Freezes all the parameters of all the ModuleDicts children
metric_depth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:315
Methodfreeze_conf
Freezes all the parameters of all the ModuleDicts children that are exclusively used for the given bin configuration
metric_depth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:301
Methodfreeze_encoder
(self, freeze_rel_pos=False)
metric_depth/zoedepth/models/base_models/depth_anything.py:289
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
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
Methodget_lr_params
Learning rate configuration for different layers of the model Args: lr (float) : Base learning rate Returns:
metric_depth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:246
Methodget_rel_pos_params
(self)
metric_depth/zoedepth/models/base_models/midas.py:280
Methodget_rel_pos_params
(self)
metric_depth/zoedepth/models/base_models/depth_anything.py:279
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
← previousnext →601–700 of 746, ranked by callers