MCPcopy Create free account

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

Functions746 in github.com/LiheYoung/Depth-Anything

↓ 77 callersFunctionprint
(*args, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:83
↓ 70 callersMethodappend
(self, value)
metric_depth/zoedepth/utils/misc.py:52
↓ 61 callersMethodto
(self, device)
metric_depth/zoedepth/models/depth_model.py:40
↓ 41 callersMethodsplit
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:79
↓ 27 callersMethodopen
(self, fpath)
metric_depth/zoedepth/data/data_mono.py:266
↓ 21 callersMethodload
(self, *args, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:115
↓ 18 callersMethodupdate
(self, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:27
↓ 17 callersMethodmax
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:181
↓ 11 callersMethodsave
Dump model and checkpointables to a file. Args: name (str): name of the file. kwargs (dict): extra arbitrary
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:87
↓ 11 callersMethodupdate
(self, new_dict)
metric_depth/zoedepth/utils/misc.py:79
↓ 8 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
torchhub/facebookresearch_dinov2_main/hubconf.py:24
↓ 8 callersFunctionmake_dataset
Creates a dataset with the specified parameters. Args: dataset_str: A dataset string description (e.g. ImageNet:split=TRAIN).
torchhub/facebookresearch_dinov2_main/dinov2/data/loaders.py:68
↓ 6 callersMethod_get_entries
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:106
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
depth_anything/util/transform.py:100
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
metric_depth/zoedepth/data/transforms.py:202
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
metric_depth/zoedepth/models/base_models/midas.py:100
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
metric_depth/zoedepth/models/base_models/depth_anything.py:101
↓ 6 callersFunctionget_activation
(name, bank)
metric_depth/zoedepth/models/base_models/midas.py:44
↓ 6 callersFunctionget_activation
(name, bank)
metric_depth/zoedepth/models/base_models/depth_anything.py:45
↓ 6 callersMethodpop
(self, k, d=None)
metric_depth/zoedepth/utils/easydict/__init__.py:151
↓ 6 callersFunctionremove_leading_slash
(s)
metric_depth/zoedepth/data/data_mono.py:241
↓ 5 callersMethodlog_images
(self, rgb: Dict[str, list] = {}, depth: Dict[str, list] = {}, scalar_field: Dict[str, list] = {}, prefix="",
metric_depth/zoedepth/trainers/base_trainer.py:289
↓ 5 callersFunctionmake_data_loader
Creates a data loader with the specified parameters. Args: dataset: A dataset (third party, LaViDa or WebDataset). batch_siz
torchhub/facebookresearch_dinov2_main/dinov2/data/loaders.py:167
↓ 5 callersFunctionsetup_logging
Setup logging. Args: output: A file name or a directory to save log files. If None, log files will not be saved. If outp
torchhub/facebookresearch_dinov2_main/dinov2/logging/__init__.py:83
↓ 4 callersMethod_load_extra
(self, extra_path: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:85
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size = None)
depth_anything/dpt.py:10
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size = None)
metric_depth/zoedepth/models/base_models/dpt_dinov2/dpt.py:8
↓ 4 callersFunctionbuild_model
Builds a model from a config. The model is specified by the model name and version in the config. The model is then constructed using the build_from_c
metric_depth/zoedepth/models/builder.py:28
↓ 4 callersFunctioncolorize
Converts a depth map to a color image. Args: value (torch.Tensor, numpy.ndarry): Input depth map. Shape: (H, W) or (1, H, W) or (1, 1, H,
metric_depth/zoedepth/utils/misc.py:97
↓ 4 callersFunctionextract_features
(model, dataset, batch_size, num_workers, gather_on_cpu=False)
torchhub/facebookresearch_dinov2_main/dinov2/eval/utils.py:99
↓ 4 callersFunctionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
torchhub/facebookresearch_dinov2_main/dinov2/run/submit.py:25
↓ 4 callersFunctionget_config
Main entry point to get the config for the model. Args: model_name (str): name of the desired model. mode (str, optional): "train
metric_depth/zoedepth/utils/config.py:354
↓ 4 callersMethodget_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
↓ 4 callersFunctionis_above_tolerance
(arr, total_pixels)
metric_depth/zoedepth/data/preprocess.py:47
↓ 4 callersFunctionis_enabled
Returns: True if distributed training is enabled
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:20
↓ 4 callersFunctionis_rank_zero
(args)
metric_depth/zoedepth/trainers/base_trainer.py:44
↓ 4 callersFunctionload_wts
(model, checkpoint_path)
metric_depth/zoedepth/models/model_io.py:54
↓ 4 callersMethodlog_every
(self, iterable, print_freq, header=None, n_iterations=None, start_iteration=0)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:67
↓ 4 callersMethodmake_letter_box
(self, sample)
metric_depth/zoedepth/data/transforms.py:273
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:212
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:191
↓ 4 callersFunctionrankstr
()
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:82
↓ 4 callersMethodsave_checkpoint
(self, filename)
metric_depth/zoedepth/trainers/base_trainer.py:273
↓ 4 callersFunctionsubmit_jobs
(task_class, args, name: str)
torchhub/facebookresearch_dinov2_main/dinov2/run/submit.py:93
↓ 3 callersMethod__init__
(self, beta=0.15)
metric_depth/zoedepth/trainers/loss.py:44
↓ 3 callersMethod__init__
Projector MLP Args: in_features (int): input channels out_features (int): output channels mlp_dim (int, o
metric_depth/zoedepth/models/layers/localbins_layers.py:100
↓ 3 callersMethod_get_entries_path
(self, root: Optional[str] = None)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:124
↓ 3 callersMethod_infer_with_pad_aug
Inference interface for the model with padding augmentation Padding augmentation fixes the boundary artifacts in the output depth map
metric_depth/zoedepth/models/depth_model.py:57
↓ 3 callersMethod_load_extra
(self, extra_path: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:186
↓ 3 callersFunction_run
(command)
torchhub/facebookresearch_dinov2_main/dinov2/utils/utils.py:50
↓ 3 callersMethod_save_extra
(self, extra_array: np.ndarray, extra_path: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:89
↓ 3 callersFunctionall_gather_and_flatten
(tensor_rank)
torchhub/facebookresearch_dinov2_main/dinov2/eval/utils.py:87
↓ 3 callersFunctionbuild_metric
(metric_type: MetricType, *, num_classes: int, ks: Optional[tuple] = None)
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:44
↓ 3 callersFunctioncheck_choices
(name, value, choices)
metric_depth/zoedepth/utils/config.py:344
↓ 3 callersFunctioncompute_metrics
Compute metrics of predicted depth maps. Applies cropping and masking as necessary or specified via arguments. Refer to compute_errors for more detail
metric_depth/zoedepth/utils/misc.py:202
↓ 3 callersFunctioncount_parameters
(model, include_all=False)
metric_depth/zoedepth/utils/misc.py:155
↓ 3 callersMethoddecode
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/decoders.py:14
↓ 3 callersMethodeval_infer
(self, x)
metric_depth/zoedepth/trainers/zoedepth_trainer.py:107
↓ 3 callersFunctionevaluate
( model: nn.Module, data_loader, postprocessors: Dict[str, nn.Module], metrics: Dict[str, Metr
torchhub/facebookresearch_dinov2_main/dinov2/eval/utils.py:49
↓ 3 callersFunctionevaluate_linear_classifiers
( feature_model, linear_classifiers, data_loader, metric_type, metrics_file_path, trai
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:261
↓ 3 callersFunctionextract_key
(prediction, key)
metric_depth/zoedepth/trainers/loss.py:35
↓ 3 callersFunctionflatten
(config, except_keys=('bin_conf'))
metric_depth/zoedepth/utils/config.py:257
↓ 3 callersFunctionget_cluster_type
(cluster_type: Optional[ClusterType] = None)
torchhub/facebookresearch_dinov2_main/dinov2/utils/cluster.py:32
↓ 3 callersFunctionget_fsdp_modules
(x)
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:73
↓ 3 callersMethodget_value
(self)
metric_depth/zoedepth/utils/misc.py:91
↓ 3 callersFunctionmake_classification_eval_transform
( *, resize_size: int = 256, interpolation=transforms.InterpolationMode.BICUBIC, crop_size: in
torchhub/facebookresearch_dinov2_main/dinov2/data/transforms.py:78
↓ 3 callersFunctionmake_normalize_transform
( mean: Sequence[float] = IMAGENET_DEFAULT_MEAN, std: Sequence[float] = IMAGENET_DEFAULT_STD, )
torchhub/facebookresearch_dinov2_main/dinov2/data/transforms.py:47
↓ 3 callersFunctionparse_unknown
(unknown_args)
metric_depth/zoedepth/utils/arg_utils.py:22
↓ 3 callersFunctionpreprocessing_transforms
(mode, **kwargs)
metric_depth/zoedepth/data/data_mono.py:64
↓ 3 callersFunctionremove_ddp_wrapper
(m: nn.Module)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:160
↓ 3 callersMethodremove_hooks
(self)
metric_depth/zoedepth/models/base_models/midas.py:323
↓ 3 callersMethodremove_hooks
(self)
metric_depth/zoedepth/models/base_models/depth_anything.py:322
↓ 3 callersFunctionsetup
Create configs and perform basic setups.
torchhub/facebookresearch_dinov2_main/dinov2/utils/config.py:64
↓ 3 callersFunctionsetup_and_build_model
(args)
torchhub/facebookresearch_dinov2_main/dinov2/eval/setup.py:71
↓ 3 callersFunctiontransform
(sample)
torchhub/facebookresearch_dinov2_main/dinov2/data/loaders.py:34
↓ 3 callersMethodupdate
(self, preds: Tensor, target: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:88
↓ 3 callersFunctionupdate_model_config
(config, mode, model_name, model_version=None, strict=False)
metric_depth/zoedepth/utils/config.py:334
↓ 2 callersMethod__init__
(self, classifiers_dict)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:206
↓ 2 callersMethod__init__
(self, nclass, in_channels, features=256, use_bn=False, out_channels=[256, 512, 1024, 1024], use_clstoken=Fals
depth_anything/dpt.py:23
↓ 2 callersFunction_check_env_variable
(key: str, new_value: str)
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:146
↓ 2 callersMethod_get_class_ids_path
(self, root: Optional[str] = None)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:127
↓ 2 callersMethod_get_extra_full_path
(self, extra_path: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:82
↓ 2 callersMethod_get_knn_sims_and_labels
(self, similarity, train_labels)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:125
↓ 2 callersFunction_get_torch_dtype
(size: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:60
↓ 2 callersFunction_make_dinov2_model_name
(arch_name: str, patch_size: int, num_register_tokens: int = 0)
torchhub/facebookresearch_dinov2_main/hubconf.py:14
↓ 2 callersMethod_save_extra
(self, extra_array: np.ndarray, extra_path: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:191
↓ 2 callersFunctionbuild_model_from_cfg
(cfg, only_teacher=False)
torchhub/facebookresearch_dinov2_main/dinov2/models/__init__.py:40
↓ 2 callersFunctionbuild_topk_accuracy_metric
(average_type: AccuracyAveraging, num_classes: int, ks: tuple = (1, 5))
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:60
↓ 2 callersFunctionchange_dataset
(config, new_dataset)
metric_depth/zoedepth/utils/config.py:435
↓ 2 callersFunctioncreate_linear_input
(x_tokens_list, use_n_blocks, use_avgpool)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:172
↓ 2 callersFunctioncrop_images
Crops the images according to the crop parameters. Args: images: RGB or depth images, shape (H, W, 3) or (H, W). crop_params: Cro
metric_depth/zoedepth/data/preprocess.py:124
↓ 2 callersFunctiondo_test
(cfg, model, iteration)
torchhub/facebookresearch_dinov2_main/dinov2/train/train.py:123
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:181
↓ 2 callersFunctionevaluate_model
(*, logreg_model, logreg_metric, test_data_loader, device)
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:148
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:157
↓ 2 callersFunctionget_black_border
Crops the black border of the RGB. Args: rgb: RGB image, shape (H, W, 3). Returns: Crop parameters.
metric_depth/zoedepth/data/preprocess.py:100
↓ 2 callersFunctionget_border_params
(rgb_image, tolerance=0.1, cut_off=20, value=0, level_diff_threshold=5, channel_axis=-1, min_border=5)
metric_depth/zoedepth/data/preprocess.py:39
↓ 2 callersMethodget_conf_parameters
Returns 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:289
↓ 2 callersFunctionget_depth_from_prediction
(pred)
metric_depth/evaluate.py:44
next →1–100 of 746, ranked by callers