MCPcopy Create free account

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

Functions746 in github.com/LiheYoung/Depth-Anything

↓ 2 callersMethodget_dirname
(self, class_id: Optional[str] = None)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:36
↓ 2 callersFunctionget_fsdp_wrapper
(model_cfg, modules_to_wrap=set())
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:23
↓ 2 callersFunctionget_global_rank
Returns: The rank of the current process within the global process group.
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:36
↓ 2 callersFunctionget_global_size
Returns: The number of processes in the process group
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:28
↓ 2 callersFunctionget_requirements
(path: str = HERE / "requirements.txt")
torchhub/facebookresearch_dinov2_main/setup.py:30
↓ 2 callersFunctionget_slurm_partition
(cluster_type: Optional[ClusterType] = None)
torchhub/facebookresearch_dinov2_main/dinov2/utils/cluster.py:62
↓ 2 callersFunctionget_trainer
Builds and returns a trainer based on the config. Args: config (dict): the config dict (typically constructed using utils.config.get_conf
metric_depth/zoedepth/trainers/builder.py:28
↓ 2 callersFunctionget_vkitti2_loader
(data_dir_root, batch_size=1, **kwargs)
metric_depth/zoedepth/data/vkitti2.py:172
↓ 2 callersFunctionget_vkitti_loader
(data_dir_root, batch_size=1, **kwargs)
metric_depth/zoedepth/data/vkitti.py:136
↓ 2 callersFunctionget_white_border
Crops the white border of the RGB. Args: rgb: RGB image, shape (H, W, 3). Returns: Crop parameters.
metric_depth/zoedepth/data/preprocess.py:82
↓ 2 callersFunctiongrad
(x)
metric_depth/zoedepth/trainers/loss.py:96
↓ 2 callersFunctioninfer_type
(x)
metric_depth/zoedepth/utils/arg_utils.py:3
↓ 2 callersFunctionload_config
(config_name: str)
torchhub/facebookresearch_dinov2_main/dinov2/configs/__init__.py:12
↓ 2 callersFunctionload_state_dict
Load state_dict into model, handling DataParallel and DistributedDataParallel. Also checks for "model" key in state_dict. DataParallel prefixes s
metric_depth/zoedepth/models/model_io.py:27
↓ 2 callersFunctionload_state_from_resource
Loads weights to the model from a given resource. A resource can be of following types: 1. URL. Prefixed with "url::" e.g. url
metric_depth/zoedepth/models/model_io.py:64
↓ 2 callersFunctionmake_2tuple
(x)
torchhub/facebookresearch_dinov2_main/dinov2/layers/patch_embed.py:17
↓ 2 callersFunctionmake_eval_data_loader
(test_dataset_str, batch_size, num_workers, metric_type)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:412
↓ 2 callersFunctionparallelize
(config, model, find_unused_parameters=True)
metric_depth/zoedepth/utils/misc.py:251
↓ 2 callersMethodquantize_depth
(self, depth)
metric_depth/zoedepth/trainers/loss.py:198
↓ 2 callersMethodrotate_image
(self, image, angle, flag=Image.BILINEAR)
metric_depth/zoedepth/data/data_mono.py:440
↓ 2 callersMethodshould_early_stop
(self)
metric_depth/zoedepth/trainers/base_trainer.py:138
↓ 2 callersMethodsinkhorn_knopp_teacher
(self, teacher_output, teacher_temp, n_iterations=3)
torchhub/facebookresearch_dinov2_main/dinov2/loss/dino_clstoken_loss.py:36
↓ 2 callersMethodsoftmax_center_teacher
(self, teacher_output, teacher_temp)
torchhub/facebookresearch_dinov2_main/dinov2/loss/dino_clstoken_loss.py:30
↓ 2 callersMethodsynchronize_between_processes
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:47
↓ 2 callersMethodto_tensor
(self, pic)
metric_depth/zoedepth/data/vkitti.py:52
↓ 2 callersMethodto_tensor
(self, pic)
metric_depth/zoedepth/data/vkitti2.py:53
↓ 2 callersMethodto_tensor
(self, pic)
metric_depth/zoedepth/data/diode.py:51
↓ 2 callersMethodto_tensor
(self, pic)
metric_depth/zoedepth/data/data_mono.py:543
↓ 2 callersMethodto_tensor
(self, pic)
metric_depth/zoedepth/data/diml_outdoor_test.py:48
↓ 2 callersMethodto_tensor
(self, pic)
metric_depth/zoedepth/data/sun_rgbd_loader.py:48
↓ 2 callersMethodto_tensor
(self, pic)
metric_depth/zoedepth/data/hypersim.py:68
↓ 2 callersMethodto_tensor
(self, pic)
metric_depth/zoedepth/data/ddad.py:51
↓ 2 callersMethodto_tensor
(self, pic)
metric_depth/zoedepth/data/diml_indoor_test.py:51
↓ 2 callersMethodtrain
(self)
metric_depth/zoedepth/trainers/base_trainer.py:142
↓ 2 callersFunctiontrain_for_C
(*, C, max_iter, train_features, train_labels, dtype=torch.float64, device=_CPU_DEVICE)
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:154
↓ 2 callersMethodunfreeze
(self)
metric_depth/zoedepth/models/base_models/midas.py:246
↓ 2 callersMethodupdate
(self, value, num=1)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:147
↓ 2 callersMethodupdate_center
(self, teacher_output)
torchhub/facebookresearch_dinov2_main/dinov2/loss/dino_clstoken_loss.py:78
↓ 2 callersMethodvalidate
(self)
metric_depth/zoedepth/trainers/base_trainer.py:259
↓ 1 callersMethod__init__
(self, model)
torchhub/facebookresearch_dinov2_main/dinov2/eval/utils.py:23
↓ 1 callersMethod__init__
(self, train_features, train_labels, nb_knn, T, device, num_classes=1000)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:110
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
torchhub/facebookresearch_dinov2_main/dinov2/layers/swiglu_ffn.py:14
↓ 1 callersMethod__init__
Init. Args: features (int): number of features
depth_anything/blocks.py:41
↓ 1 callersMethod__init__
Init. Args: width (int): desired output width height (int): desired output height resize_target (bool, opt
metric_depth/zoedepth/models/base_models/midas.py:54
↓ 1 callersMethod__init__
Init. Args: width (int): desired output width height (int): desired output height resize_target (bool, opt
metric_depth/zoedepth/models/base_models/depth_anything.py:55
↓ 1 callersMethod__init__
(self, in_channels, features=256, use_bn=False, out_channels=[256, 512, 1024, 1024], use_clstoken=False)
metric_depth/zoedepth/models/base_models/dpt_dinov2/dpt.py:21
↓ 1 callersMethod__init__
Init. Args: features (int): number of features
metric_depth/zoedepth/models/base_models/dpt_dinov2/blocks.py:41
↓ 1 callersMethod__init__
Compute log binomial distribution for n_classes Args: n_classes (int, optional): number of output classes. Defaults to 256.
metric_depth/zoedepth/models/layers/dist_layers.py:37
↓ 1 callersMethod__init__
Attractor layer for bin centers. Bin centers are bounded on the interval (min_depth, max_depth)
metric_depth/zoedepth/models/layers/attractor.py:61
↓ 1 callersFunction_build_mlp
(nlayers, in_dim, bottleneck_dim, hidden_dim=None, use_bn=False, bias=True)
torchhub/facebookresearch_dinov2_main/dinov2/layers/dino_head.py:45
↓ 1 callersFunction_collect_env_vars
()
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:121
↓ 1 callersFunction_configure_logger
Configure a logger. Adapted from Detectron2. Args: name: The name of the logger to configure. level: The logging level
torchhub/facebookresearch_dinov2_main/dinov2/logging/__init__.py:19
↓ 1 callersMethod_create_ord_label
(self, gt)
metric_depth/zoedepth/trainers/loss.py:144
↓ 1 callersMethod_dump_class_ids
(self, *args, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:281
↓ 1 callersMethod_dump_class_ids_and_names
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:253
↓ 1 callersMethod_dump_entries
(self, *args, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:243
↓ 1 callersMethod_dump_entries
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:187
↓ 1 callersMethod_dump_extra
(self, *args, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:298
↓ 1 callersMethod_find_class_ids
(self, path: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:130
↓ 1 callersMethod_gather_all_knn_for_rank
(self, topk_sims, neighbors_labels, target_rank)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:145
↓ 1 callersFunction_generate_randperm_indices
Generate the indices of a random permutation.
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:64
↓ 1 callersFunction_get_available_port
()
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:102
↓ 1 callersMethod_get_class_ids
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:112
↓ 1 callersMethod_get_class_names
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:120
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:283
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:250
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:271
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:238
↓ 1 callersFunction_get_master_port
(seed: int = 0)
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:91
↓ 1 callersFunction_get_numpy_dtype
(size: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:56
↓ 1 callersMethod_get_pad
(self, size)
torchhub/facebookresearch_dinov2_main/utils.py:28
↓ 1 callersFunction_get_tarball_path
(class_id: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:56
↓ 1 callersFunction_guess_cluster_type
()
torchhub/facebookresearch_dinov2_main/dinov2/utils/cluster.py:19
↓ 1 callersMethod_infer
Inference interface for the model Args: x (torch.Tensor): input tensor of shape (b, c, h, w) Returns:
metric_depth/zoedepth/models/depth_model.py:47
↓ 1 callersFunction_is_numpy_image
(img)
metric_depth/zoedepth/data/data_mono.py:60
↓ 1 callersFunction_is_pil_image
(img)
metric_depth/zoedepth/data/data_mono.py:56
↓ 1 callersFunction_is_slurm_job_process
()
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:125
↓ 1 callersMethod_iterator
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:105
↓ 1 callersMethod_iterator
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:202
↓ 1 callersMethod_load_entries_class_ids
(self, root: Optional[str] = None)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:142
↓ 1 callersMethod_load_labels
(self, labels_path: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:172
↓ 1 callersFunction_make_mmap_tarball
(tarballs_root: str, mmap_cache_size: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:60
↓ 1 callersFunction_make_sampler
( *, dataset, type: Optional[SamplerType] = None, shuffle: bool = False, seed: int = 0,
torchhub/facebookresearch_dinov2_main/dinov2/data/loaders.py:101
↓ 1 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
depth_anything/blocks.py:4
↓ 1 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
metric_depth/zoedepth/models/base_models/dpt_dinov2/blocks.py:4
↓ 1 callersFunction_make_seed
(seed: int, start: int, iter_count: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:161
↓ 1 callersMethod_mask
(self, mask, max_mask_patches)
torchhub/facebookresearch_dinov2_main/dinov2/data/masking.py:50
↓ 1 callersFunction_parse_dataset_str
(dataset_str: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/loaders.py:45
↓ 1 callersFunction_parse_slurm_node_list
(s: str)
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:129
↓ 1 callersFunction_restrict_print_to_main_process
This function disables printing when not in the main process
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:75
↓ 1 callersMethod_set_from_local
(self)
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:211
↓ 1 callersMethod_set_from_preset_env
(self)
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:199
↓ 1 callersMethod_set_from_slurm_env
(self)
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:182
↓ 1 callersMethod_setup_args
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/linear.py:36
↓ 1 callersMethod_setup_args
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/log_regression.py:36
↓ 1 callersMethod_setup_args
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/knn.py:36
↓ 1 callersMethod_setup_args
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/train/train.py:36
↓ 1 callersMethod_shuffled_iterator
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:112
↓ 1 callersMethod_shuffled_iterator
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:209
↓ 1 callersMethod_similarity_for_rank
(self, features_rank, source_rank)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:130
← previousnext →101–200 of 746, ranked by callers