MCPcopy Create free account

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

Functions746 in github.com/LiheYoung/Depth-Anything

↓ 1 callersMethodget_size
(self, width, height)
metric_depth/zoedepth/models/base_models/depth_anything.py:114
↓ 1 callersFunctionget_slurm_executor_parameters
( nodes: int, num_gpus_per_node: int, cluster_type: Optional[ClusterType] = None, **kwargs )
torchhub/facebookresearch_dinov2_main/dinov2/utils/cluster.py:75
↓ 1 callersFunctionget_sunrgbd_loader
(data_dir_root, batch_size=1, **kwargs)
metric_depth/zoedepth/data/sun_rgbd_loader.py:113
↓ 1 callersMethodget_target
(self, index: int)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/extended.py:21
↓ 1 callersMethodget_targets
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:153
↓ 1 callersFunctionget_user_checkpoint_path
(cluster_type: Optional[ClusterType] = None)
torchhub/facebookresearch_dinov2_main/dinov2/utils/cluster.py:52
↓ 1 callersMethodget_value
(self)
metric_depth/zoedepth/utils/misc.py:56
↓ 1 callersFunctionget_vit_lr_decay_rate
Calculate lr decay rate for different ViT blocks. Args: name (string): parameter name. lr_decay_rate (float): base lr decay r
torchhub/facebookresearch_dinov2_main/dinov2/utils/param_groups.py:14
↓ 1 callersFunctiongrad_mask
(mask)
metric_depth/zoedepth/trainers/loss.py:106
↓ 1 callersFunctionhas_batchnorms
(model)
torchhub/facebookresearch_dinov2_main/dinov2/utils/utils.py:91
↓ 1 callersFunctionhas_ddp_wrapper
(m: nn.Module)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:156
↓ 1 callersFunctionhypersim_distance_to_depth
(npyDistance)
metric_depth/zoedepth/data/hypersim.py:36
↓ 1 callersFunctioninfer
Inference with flip augmentation
metric_depth/evaluate.py:41
↓ 1 callersMethodinfer
Inference interface for the model Args: x (torch.Tensor): input tensor of shape (b, c, h, w) pad_input (bool,
metric_depth/zoedepth/models/depth_model.py:115
↓ 1 callersMethodinfer_with_flip_aug
Inference interface for the model with horizontal flip augmentation Horizontal flip augmentation improves the accuracy of the model b
metric_depth/zoedepth/models/depth_model.py:99
↓ 1 callersMethodinit_optimizer
(self)
metric_depth/zoedepth/trainers/base_trainer.py:95
↓ 1 callersMethodinit_scheduler
(self)
metric_depth/zoedepth/trainers/base_trainer.py:113
↓ 1 callersMethodinit_weights
(self)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:172
↓ 1 callersMethodinit_weights
(self)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:160
↓ 1 callersMethodinterpolate_pos_encoding
(self, x, w, h)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:179
↓ 1 callersMethodinterpolate_pos_encoding
(self, x, w, h)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:165
↓ 1 callersFunctionis_fsdp
(x)
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:58
↓ 1 callersFunctionis_main_process
Returns: True if the current process is the main one.
torchhub/facebookresearch_dinov2_main/dinov2/distributed/__init__.py:67
↓ 1 callersFunctionis_sharded_fsdp
(x)
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:62
↓ 1 callersFunctionload_ckpt
(config, model, checkpoint_dir="./checkpoints", ckpt_type="best")
metric_depth/train_mix.py:65
↓ 1 callersFunctionload_ckpt
(config, model, checkpoint_dir="./checkpoints", ckpt_type="best")
metric_depth/train_mono.py:59
↓ 1 callersFunctionload_state_dict_from_url
(model, url, **kwargs)
metric_depth/zoedepth/models/model_io.py:59
↓ 1 callersFunctionlog_binom
log(nCk) using stirling approximation
metric_depth/zoedepth/models/layers/dist_layers.py:29
↓ 1 callersFunctionlossfunc
(t, s, temp)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:21
↓ 1 callersFunctionmain
(args)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:596
↓ 1 callersFunctionmain
(args)
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:424
↓ 1 callersFunctionmain
(args)
torchhub/facebookresearch_dinov2_main/dinov2/eval/knn.py:380
↓ 1 callersFunctionmain
(args)
torchhub/facebookresearch_dinov2_main/dinov2/train/train.py:298
↓ 1 callersFunctionmain
()
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/linear.py:45
↓ 1 callersFunctionmain
()
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/log_regression.py:45
↓ 1 callersFunctionmain
()
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/knn.py:45
↓ 1 callersFunctionmain
()
torchhub/facebookresearch_dinov2_main/dinov2/run/train/train.py:45
↓ 1 callersFunctionmain
(model_name, pretrained_resource)
metric_depth/depth_to_pointcloud.py:66
↓ 1 callersFunctionmain
(config)
metric_depth/evaluate.py:111
↓ 1 callersFunctionmain
()
metric_depth/point_cloud_on_trackbar.py:35
↓ 1 callersFunctionmain_worker
(gpu, ngpus_per_node, config)
metric_depth/train_mix.py:89
↓ 1 callersFunctionmain_worker
(gpu, ngpus_per_node, config)
metric_depth/train_mono.py:83
↓ 1 callersFunctionmake_classification_train_transform
( *, crop_size: int = 224, interpolation=transforms.InterpolationMode.BICUBIC, hflip_prob: flo
torchhub/facebookresearch_dinov2_main/dinov2/data/transforms.py:56
↓ 1 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:26
↓ 1 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:27
↓ 1 callersFunctionnum_value_pixels
(arr)
metric_depth/zoedepth/data/preprocess.py:44
↓ 1 callersMethodpairwise_NNs_inner
Pairwise nearest neighbors for L2-normalized vectors. Uses Torch rather than Faiss to remain on GPU.
torchhub/facebookresearch_dinov2_main/dinov2/loss/koleo_loss.py:26
↓ 1 callersMethodparse_image_relpath
(self, image_relpath: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:47
↓ 1 callersMethodparse_img_size
(config)
metric_depth/zoedepth/models/base_models/midas.py:356
↓ 1 callersMethodparse_img_size
(config)
metric_depth/zoedepth/models/base_models/depth_anything.py:353
↓ 1 callersFunctionparse_list
Parse a list of values for the key if the value is a string. The values are separated by a comma. Modifies the config in place.
metric_depth/zoedepth/utils/config.py:295
↓ 1 callersMethodpositional_encoding_1d
Generate positional encodings Args: sequence_length (int): Sequence length embedding_dim (int): Embedding dimension
metric_depth/zoedepth/models/layers/patch_transformer.py:50
↓ 1 callersMethodpostprocess
(self, sample)
metric_depth/zoedepth/data/data_mono.py:289
↓ 1 callersFunctionpredict_depth
(model, image)
app.py:49
↓ 1 callersMethodprepare_for_distributed_training
(self)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:393
↓ 1 callersFunctionprocess_images
(model)
metric_depth/depth_to_pointcloud.py:29
↓ 1 callersFunctionr
(m)
metric_depth/evaluate.py:105
↓ 1 callersMethodraise_if_nan
(self, losses)
metric_depth/zoedepth/trainers/base_trainer.py:125
↓ 1 callersMethodrandom_crop
(self, img, depth, height, width)
metric_depth/zoedepth/data/data_mono.py:444
↓ 1 callersMethodrandom_translate
(self, img, depth, max_t=20)
metric_depth/zoedepth/data/data_mono.py:456
↓ 1 callersFunctionrecurse
(inp)
metric_depth/zoedepth/utils/config.py:258
↓ 1 callersMethodreduce_center_update
(self, teacher_patch_tokens)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:134
↓ 1 callersMethodreduce_center_update
(self, teacher_output)
torchhub/facebookresearch_dinov2_main/dinov2/loss/dino_clstoken_loss.py:82
↓ 1 callersFunctionrepetitive_roundrobin
cycles through iterables but sample wise first yield first sample from first iterable then first sample from second iterable and so on th
metric_depth/zoedepth/data/data_mono.py:181
↓ 1 callersFunctionreshard_fsdp_model
(x)
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:77
↓ 1 callersFunctionrun_eval_linear
( model, output_dir, train_dataset_str, val_dataset_str, batch_size, epochs, epoch
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:464
↓ 1 callersFunctionscale_lr
(learning_rates, batch_size)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:232
↓ 1 callersMethodset_fetch_features
(self, fetch_features)
metric_depth/zoedepth/models/base_models/midas.py:231
↓ 1 callersMethodset_fetch_features
(self, fetch_features)
metric_depth/zoedepth/models/base_models/depth_anything.py:234
↓ 1 callersMethodset_output_channels
(self, model_type)
metric_depth/zoedepth/models/base_models/midas.py:331
↓ 1 callersMethodset_output_channels
(self)
metric_depth/zoedepth/models/base_models/depth_anything.py:330
↓ 1 callersMethodset_trainable
(self, trainable)
metric_depth/zoedepth/models/base_models/midas.py:223
↓ 1 callersMethodset_trainable
(self, trainable)
metric_depth/zoedepth/models/base_models/depth_anything.py:226
↓ 1 callersFunctionsetup_linear_classifiers
(sample_output, n_last_blocks_list, learning_rates, batch_size, num_classes=1000)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:236
↓ 1 callersFunctionsplit_combined_args
Splits the arguments that are combined with '__' into multiple arguments. Combined arguments should have equal number of keys and values.
metric_depth/zoedepth/utils/config.py:271
↓ 1 callersFunctionsweep_C_values
( *, train_features, train_labels, test_data_loader, metric_type, num_classes, tra
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:188
↓ 1 callersMethodtag_last_checkpoint
Tag the last checkpoint. Args: last_filename_basename (str): the basename of the last filename.
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:144
↓ 1 callersFunctiontest_on_datasets
( feature_model, linear_classifiers, test_dataset_strs, batch_size, num_workers, test_
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:430
↓ 1 callersMethodtrain
(self)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:370
↓ 1 callersFunctiontrain_and_evaluate
( *, C, max_iter, train_features, train_labels, logreg_metric, test_data_loader,
torchhub/facebookresearch_dinov2_main/dinov2/eval/log_regression.py:160
↓ 1 callersMethodtrain_on_batch
(self, batch, train_step)
metric_depth/zoedepth/trainers/base_trainer.py:119
↓ 1 callersMethodtrain_preprocess
(self, image, depth_gt)
metric_depth/zoedepth/data/data_mono.py:473
↓ 1 callersMethodunfreeze
(self)
metric_depth/zoedepth/models/base_models/depth_anything.py:249
↓ 1 callersMethodupdate
(self, e=None, **f)
metric_depth/zoedepth/utils/easydict/__init__.py:145
↓ 1 callersMethodupdate_teacher
(self, m)
torchhub/facebookresearch_dinov2_main/dinov2/train/ssl_meta_arch.py:359
↓ 1 callersMethodvalidate_on_batch
(self, batch, val_step)
metric_depth/zoedepth/trainers/base_trainer.py:122
↓ 1 callersFunctionwrite_config
(cfg, output_dir, name="config.yaml")
torchhub/facebookresearch_dinov2_main/dinov2/utils/config.py:33
Method__call__
(self, num_masking_patches=0)
torchhub/facebookresearch_dinov2_main/dinov2/data/masking.py:74
Method__call__
Args: pic (PIL Image, numpy.ndarray or torch.tensor): Image to be converted to tensor. Returns: Tensor: Conve
torchhub/facebookresearch_dinov2_main/dinov2/data/transforms.py:30
Method__call__
(self, image)
torchhub/facebookresearch_dinov2_main/dinov2/data/augmentations.py:97
Method__call__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/linear.py:23
Method__call__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/log_regression.py:23
Method__call__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/knn.py:23
Method__call__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/train/train.py:23
Method__call__
(self, sample)
depth_anything/util/transform.py:168
Method__call__
(self, sample)
depth_anything/util/transform.py:219
Method__call__
(self, sample)
depth_anything/util/transform.py:232
Method__call__
(self, sample)
metric_depth/zoedepth/data/vkitti.py:41
Method__call__
(self, sample)
metric_depth/zoedepth/data/transforms.py:44
Method__call__
(self, sample)
metric_depth/zoedepth/data/transforms.py:120
← previousnext →301–400 of 746, ranked by callers