MCPcopy Create free account

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

Functions746 in github.com/LiheYoung/Depth-Anything

↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:142
↓ 1 callersMethodapply_center_update
(self)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:142
↓ 1 callersMethodapply_center_update
(self)
torchhub/facebookresearch_dinov2_main/dinov2/loss/dino_clstoken_loss.py:90
↓ 1 callersFunctionapply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
metric_depth/zoedepth/data/transforms.py:55
↓ 1 callersFunctionapply_optim_scheduler
(optimizer, lr, wd, last_layer_lr)
torchhub/facebookresearch_dinov2_main/dinov2/train/train.py:114
↓ 1 callersFunctionapply_scaling_rules_to_cfg
(cfg)
torchhub/facebookresearch_dinov2_main/dinov2/utils/config.py:22
↓ 1 callersFunctionas_torch_dtype
(dtype: TypeSpec)
torchhub/facebookresearch_dinov2_main/dinov2/utils/dtype.py:32
↓ 1 callersMethodattach_hooks
(self, midas)
metric_depth/zoedepth/models/base_models/midas.py:299
↓ 1 callersMethodattach_hooks
(self, midas)
metric_depth/zoedepth/models/base_models/depth_anything.py:298
↓ 1 callersMethodaugment_image
(self, image)
metric_depth/zoedepth/data/data_mono.py:488
↓ 1 callersMethodbackprop_loss
(self, loss)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:129
↓ 1 callersMethodbuild
(midas_model_type="DPT_BEiT_L_384", train_midas=False, use_pretrained_midas=True, fetch_features=False, freeze
metric_depth/zoedepth/models/base_models/midas.py:335
↓ 1 callersMethodbuild
(midas_model_type="DPT_BEiT_L_384", pretrained_resource=None, use_pretrained_midas=False, train_midas=False, f
metric_depth/zoedepth/models/zoedepth/zoedepth_v1.py:249
↓ 1 callersMethodbuild
(midas_model_type="DPT_BEiT_L_384", pretrained_resource=None, use_pretrained_midas=False, train_midas=False, f
metric_depth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:326
↓ 1 callersMethodbuild_from_config
(config)
metric_depth/zoedepth/models/base_models/midas.py:352
↓ 1 callersFunctionbuild_model
(args, only_teacher=False, img_size=224)
torchhub/facebookresearch_dinov2_main/dinov2/models/__init__.py:15
↓ 1 callersFunctionbuild_model_for_eval
(config, pretrained_weights)
torchhub/facebookresearch_dinov2_main/dinov2/eval/setup.py:63
↓ 1 callersFunctionbuild_optimizer
(cfg, params_groups)
torchhub/facebookresearch_dinov2_main/dinov2/train/train.py:62
↓ 1 callersFunctionbuild_schedulers
(cfg)
torchhub/facebookresearch_dinov2_main/dinov2/train/train.py:66
↓ 1 callersFunctionbuild_topk_imagenet_real_accuracy_metric
(num_classes: int, ks: tuple = (1, 5))
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:67
↓ 1 callersMethodcompute
(self)
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:112
↓ 1 callersFunctioncompute_errors
Compute metrics for 'pred' compared to 'gt' Args: gt (numpy.ndarray): Ground truth values pred (numpy.ndarray): Predicted values
metric_depth/zoedepth/utils/misc.py:159
↓ 1 callersMethodcompute_neighbors
(self, features_rank)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:163
↓ 1 callersFunctioncompute_scale_and_shift
(prediction, target, mask)
metric_depth/zoedepth/trainers/loss.py:259
↓ 1 callersFunctioncreate_class_indices_mapping
(labels)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:235
↓ 1 callersFunctioncreate_module_dict
(*, module, n_per_class_list, n_tries, nb_knn, train_features, train_labels)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:199
↓ 1 callersFunctioncreate_point_cloud
(raw_frame, depth_map, frame_index)
metric_depth/point_cloud_on_trackbar.py:128
↓ 1 callersMethodcrop_aware_infer
(self, x)
metric_depth/zoedepth/trainers/zoedepth_trainer.py:114
↓ 1 callersFunctioncrop_image
Crops the image according to the crop parameters. Args: image: RGB or depth image, shape (H, W, 3) or (H, W). crop_params: Crop p
metric_depth/zoedepth/data/preprocess.py:112
↓ 1 callersFunctiondefault_setup
(args)
torchhub/facebookresearch_dinov2_main/dinov2/utils/config.py:50
↓ 1 callersFunctiondenormalize
Reverses the imagenet normalization applied to the input. Args: x (torch.Tensor - shape(N,3,H,W)): input tensor Returns: tor
metric_depth/zoedepth/models/base_models/midas.py:31
↓ 1 callersFunctiondenormalize
Reverses the imagenet normalization applied to the input. Args: x (torch.Tensor - shape(N,3,H,W)): input tensor Returns: tor
metric_depth/zoedepth/models/base_models/depth_anything.py:32
↓ 1 callersFunctiondo_train
(cfg, model, resume=False)
torchhub/facebookresearch_dinov2_main/dinov2/train/train.py:135
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
torchhub/facebookresearch_dinov2_main/dinov2/layers/drop_path.py:15
↓ 1 callersMethoddump_in_output_file
(self, iteration, iter_time, data_time)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:54
↓ 1 callersFunctioneval_knn
( model, train_dataset, val_dataset, accuracy_averaging, nb_knn, temperature, batc
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:246
↓ 1 callersFunctioneval_knn_with_model
( model, output_dir, train_dataset_str="ImageNet:split=TRAIN", val_dataset_str="ImageNet:split
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:319
↓ 1 callersFunctioneval_linear
( *, feature_model, linear_classifiers, train_data_loader, val_data_loader, metrics_fi
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:314
↓ 1 callersFunctioneval_log_regression
Implements the "standard" process for log regression evaluation: The value of C is chosen by training on train_dataset and evaluating on
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:253
↓ 1 callersFunctioneval_log_regression_with_model
( model, train_dataset_str="ImageNet:split=TRAIN", val_dataset_str="ImageNet:split=VAL", finet
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:363
↓ 1 callersFunctioneval_model
(model_name, pretrained_resource, dataset='nyu', **kwargs)
metric_depth/evaluate.py:123
↓ 1 callersFunctionevaluate
(model, test_loader, config, round_vals=True, round_precision=3)
metric_depth/evaluate.py:68
↓ 1 callersMethodexport
(self, *, overwrite: bool)
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:220
↓ 1 callersFunctionextract_features_with_dataloader
(model, data_loader, sample_count, gather_on_cpu=False)
torchhub/facebookresearch_dinov2_main/dinov2/eval/utils.py:114
↓ 1 callersFunctionfilter_train
(mapping, n_per_class, seed)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:226
↓ 1 callersMethodfit
(self, train_features, train_labels)
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:138
↓ 1 callersFunctionfix_random_seed
Fix random seed for reproducibility Args: seed (int): random seed
metric_depth/train_mix.py:43
↓ 1 callersFunctionfix_random_seed
(seed: int)
metric_depth/train_mono.py:43
↓ 1 callersMethodforward
(self, x: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:82
↓ 1 callersMethodforward
(self, x: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/layers/attention.py:49
↓ 1 callersMethodforward_backward
(self, images, teacher_temp)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:135
↓ 1 callersMethodforward_features
(self, x, masks=None)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:253
↓ 1 callersMethodforward_features
(self, x, masks=None)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:221
↓ 1 callersMethodforward_features_list
(self, x_list, masks_list)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:233
↓ 1 callersMethodforward_features_list
(self, x_list, masks_list)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:202
↓ 1 callersMethodforward_masked
( self, student_patch_tokens_masked, teacher_patch_tokens_masked, student_mask
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:106
↓ 1 callersMethodforward_nested
x_list contains a list of tensors to nest together and run
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:205
↓ 1 callersFunctionfree_if_fsdp
(x)
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:66
↓ 1 callersMethodfreeze
(self)
metric_depth/zoedepth/models/base_models/midas.py:240
↓ 1 callersMethodfreeze
(self)
metric_depth/zoedepth/models/base_models/depth_anything.py:243
↓ 1 callersMethodfreeze_bn
(self)
metric_depth/zoedepth/models/base_models/midas.py:252
↓ 1 callersMethodfreeze_bn
(self)
metric_depth/zoedepth/models/base_models/depth_anything.py:255
↓ 1 callersMethodfreeze_encoder
(self, freeze_rel_pos=False)
metric_depth/zoedepth/models/base_models/midas.py:290
↓ 1 callersMethodfsdp_synchronize_streams
(self)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:351
↓ 1 callersFunctionfuse_params_groups
(all_params_groups, keys=("lr_multiplier", "wd_multiplier", "is_last_layer"))
torchhub/facebookresearch_dinov2_main/dinov2/utils/param_groups.py:83
↓ 1 callersFunctionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:34
↓ 1 callersFunctionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:39
↓ 1 callersFunctionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:30
↓ 1 callersFunctionget_args_parser
(add_help: bool = True)
torchhub/facebookresearch_dinov2_main/dinov2/train/train.py:31
↓ 1 callersFunctionget_autocast_dtype
(config)
torchhub/facebookresearch_dinov2_main/dinov2/eval/setup.py:53
↓ 1 callersFunctionget_branges_scales
(x, sample_drop_ratio=0.0)
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:134
↓ 1 callersFunctionget_cfg_from_args
(args)
torchhub/facebookresearch_dinov2_main/dinov2/utils/config.py:41
↓ 1 callersFunctionget_checkpoint_path
(cluster_type: Optional[ClusterType] = None)
torchhub/facebookresearch_dinov2_main/dinov2/utils/cluster.py:39
↓ 1 callersMethodget_class_id
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:157
↓ 1 callersFunctionget_ddad_loader
(data_dir_root, resize_shape, batch_size=1, **kwargs)
metric_depth/zoedepth/data/ddad.py:123
↓ 1 callersFunctionget_diml_indoor_loader
(data_dir_root, batch_size=1, **kwargs)
metric_depth/zoedepth/data/diml_indoor_test.py:120
↓ 1 callersFunctionget_diml_outdoor_loader
(data_dir_root, batch_size=1, **kwargs)
metric_depth/zoedepth/data/diml_outdoor_test.py:109
↓ 1 callersFunctionget_diode_loader
(data_dir_root, batch_size=1, **kwargs)
metric_depth/zoedepth/data/diode.py:121
↓ 1 callersMethodget_enc_params_except_rel_pos
(self)
metric_depth/zoedepth/models/base_models/midas.py:285
↓ 1 callersMethodget_enc_params_except_rel_pos
(self)
metric_depth/zoedepth/models/base_models/depth_anything.py:284
↓ 1 callersMethodget_enc_params_except_rel_pos
()
metric_depth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:263
↓ 1 callersFunctionget_hypersim_loader
(data_dir_root, batch_size=1, **kwargs)
metric_depth/zoedepth/data/hypersim.py:136
↓ 1 callersFunctionget_ibims_loader
(config, batch_size=1, **kwargs)
metric_depth/zoedepth/data/ibims.py:79
↓ 1 callersMethodget_image_data
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/extended.py:18
↓ 1 callersFunctionget_image_from_url
(url)
metric_depth/zoedepth/utils/misc.py:342
↓ 1 callersMethodget_image_relpath
(self, actual_index: int, class_id: Optional[str] = None)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:39
↓ 1 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:264
↓ 1 callersFunctionget_intrinsics
Intrinsics for a pinhole camera model. Assume fov of 55 degrees and central principal point.
metric_depth/zoedepth/utils/geometry.py:27
↓ 1 callersMethodget_lr_params
Learning rate configuration for different layers of the model Args: lr (float) : Base learning rate Returns:
metric_depth/zoedepth/models/zoedepth/zoedepth_v1.py:213
↓ 1 callersMethodget_maybe_fused_params_for_submodel
(self, m)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:374
↓ 1 callersFunctionget_model_config
Find and parse the .json config file for the model. Args: model_name (str): name of the model. The config file should be named config_{mo
metric_depth/zoedepth/utils/config.py:306
↓ 1 callersFunctionget_package_version
()
torchhub/facebookresearch_dinov2_main/setup.py:43
↓ 1 callersMethodget_params_groups
(self)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:387
↓ 1 callersFunctionget_params_groups_with_decay
(model, lr_decay_rate=1.0, patch_embed_lr_mult=1.0)
torchhub/facebookresearch_dinov2_main/dinov2/utils/param_groups.py:42
↓ 1 callersMethodget_rel_pos_params
()
metric_depth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:257
↓ 1 callersMethodget_shape
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/masking.py:47
↓ 1 callersFunctionget_shared_folder
()
torchhub/facebookresearch_dinov2_main/dinov2/run/submit.py:84
↓ 1 callersMethodget_size
(self, width, height)
depth_anything/util/transform.py:111
↓ 1 callersMethodget_size
(self, width, height)
metric_depth/zoedepth/data/transforms.py:215
↓ 1 callersMethodget_size
(self, width, height)
metric_depth/zoedepth/models/base_models/midas.py:113
← previousnext →201–300 of 746, ranked by callers