MCPcopy Create free account

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

Functions579 in github.com/HVision-NKU/DepthAnythingAC

↓ 85 callersFunctionprint
(*args, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:83
↓ 71 callersMethodappend
(self, value)
evaluate_depth.py:28
↓ 50 callersMethodsplit
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:79
↓ 31 callersFunctionevaluate
Evaluate depth estimation model on a dataset using standard depth metrics. This function performs comprehensive evaluation of a depth es
evaluate_depth.py:249
↓ 22 callersMethodload
(self, *args, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:115
↓ 19 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 callersFunctionevaluate_DA2K
Evaluate depth estimation model on DA2K dataset using relative depth accuracy. DA2K (Depth Anything 2K) evaluation focuses on relative d
evaluate_depth.py:368
↓ 9 callersFunctionsave_feature_visualization
Visualize feature map by averaging all feature maps into one image and resize to 518*518 Args: feature_map: feature map tensor with s
util/visualize_utils.py:82
↓ 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
↓ 8 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
↓ 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)
dataset/transform.py:57
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
depth_anything/util/transform.py:100
↓ 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:12
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size = None)
depth_anything/dpt_teacher.py:9
↓ 4 callersFunctionextract_features
(model, dataset, batch_size, num_workers, gather_on_cpu=False)
torchhub/facebookresearch_dinov2_main/dinov2/eval/utils.py:99
↓ 4 callersFunctionfind_files_recursive
Recursively find files with specified extensions Args: directory (str): Root directory to search extensions (list): List
tools/infer.py:324
↓ 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 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
depth_anything/dinov2.py:297
↓ 4 callersFunctioninfer_single_image
Perform depth estimation inference on a single image
tools/infer.py:122
↓ 4 callersFunctionis_enabled
Returns: True if distributed training is enabled
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:20
↓ 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 callersFunctionpostprocess_depth
Postprocess depth map
tools/infer.py:86
↓ 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 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
depth_anything/dinov2.py:212
↓ 4 callersFunctionrankstr
()
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:82
↓ 4 callersFunctionsubmit_jobs
(task_class, args, name: str)
torchhub/facebookresearch_dinov2_main/dinov2/run/submit.py:93
↓ 4 callersFunctionvisualize_geo_prior
Visualize geometric prior matrix and overlay the result on the original image Args: img: Original image tensor [B,C,H,W] geo_
util/visualize_utils.py:6
↓ 3 callersMethod_get_entries_path
(self, root: Optional[str] = None)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:124
↓ 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 callersFunctionbitget
(byteval, idx)
util/utils.py:15
↓ 3 callersFunctionbuild_metric
(metric_type: MetricType, *, num_classes: int, ks: Optional[tuple] = None)
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:44
↓ 3 callersMethoddecode
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/decoders.py:14
↓ 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 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_intermediate_features
Extract intermediate features from the model Args: x: Input tensor of shape (B, C, H, W) Re
depth_anything/dpt.py:192
↓ 3 callersFunctioninfer_video
Perform depth estimation inference on a video file Args: model: Trained depth estimation model video_path (str): Path to
tools/infer.py:187
↓ 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 callersFunctionremove_ddp_wrapper
(m: nn.Module)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:160
↓ 3 callersFunctionsave_depth_visualization
Save depth map visualization as a colored image. Args: depth_map (torch.Tensor): Depth map tensor with shape [H, W] or [B, H, W]
util/visualize_utils.py:100
↓ 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 callersMethodtrain
(self)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:370
↓ 3 callersMethodupdate
(self, new_dict)
evaluate_depth.py:55
↓ 3 callersMethodupdate
(self, preds: Tensor, target: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:88
↓ 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:25
↓ 2 callersMethod__init__
(self, nclass, in_channels, features=256, use_bn=False, out_channels=[256, 512, 1024, 1024], use_clstoken=Fals
depth_anything/dpt_teacher.py:22
↓ 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 callersFunctioncreate_dark
Create corruptions: 'Dark'. Parameters: image: Input image severity_lower: Lower bound of severity (inclusive) severi
perturbation/perturbation.py:44
↓ 2 callersFunctioncreate_linear_input
(x_tokens_list, use_n_blocks, use_avgpool)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:172
↓ 2 callersFunctioncreate_motion_blur
Create corruptions: 'Motion Blur'.
perturbation/perturbation.py:110
↓ 2 callersFunctioncreate_zoom_blur
Create corruptions: 'Zoom Blur'.
perturbation/perturbation.py:128
↓ 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
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
depth_anything/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 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
depth_anything/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 callersMethodgenerate_1d_decay
generate 1d decay mask, the result is l*l
depth_anything/util/priorgenerate.py:52
↓ 2 callersMethodgenerate_1d_depth_decay
generate 1d depth decay mask, the result is l*l
depth_anything/util/priorgenerate.py:41
↓ 2 callersFunctiongeo_prior_generate
Generate geometric prior Args: HW_tuple: (H,W) represents the height and width of the feature map depth_map: depth map tensor
full_train.py:50
↓ 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_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
depth_anything/dinov2_layers/block.py:157
↓ 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 callersMethodget_value
(self)
evaluate_depth.py:67
↓ 2 callersFunctioninit_log
(name, level=logging.INFO)
util/utils.py:89
↓ 2 callersFunctionis_video_file
Check if the given file is a video file based on its extension Args: filepath (str): Path to the file Returns:
tools/infer.py:309
↓ 2 callersFunctionload_config
(config_name: str)
torchhub/facebookresearch_dinov2_main/dinov2/configs/__init__.py:12
↓ 2 callersFunctionmake_2tuple
(x)
torchhub/facebookresearch_dinov2_main/dinov2/layers/patch_embed.py:17
↓ 2 callersFunctionmake_2tuple
(x)
depth_anything/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 callersFunctionnormalize_depth
Convert disparity to depth using normalization method. Args: disparity_tensor (torch.Tensor): Predicted disparity values
tools/infer.py:19
↓ 2 callersFunctionpreprocess_image
Preprocess input image
tools/infer.py:61
↓ 2 callersFunctionsave_image
Save image tensor as a BGR image file. Args: img_tensor (torch.Tensor): Image tensor with shape [C, H, W] or [B, C, H, W]
util/visualize_utils.py:113
next →1–100 of 579, ranked by callers