MCPcopy Create free account

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

Functions746 in github.com/LiheYoung/Depth-Anything

Method__init__
(self, data_dir_root, do_kb_crop=True, split="test")
metric_depth/zoedepth/data/vkitti2.py:84
Method__init__
(self)
metric_depth/zoedepth/data/diode.py:35
Method__init__
(self, data_dir_root)
metric_depth/zoedepth/data/diode.py:83
Method__init__
Data loader for depth datasets Args: config (dict): Config dictionary. Refer to utils/config.py mode (str):
metric_depth/zoedepth/data/data_mono.py:71
Method__init__
(self, *dataloaders)
metric_depth/zoedepth/data/data_mono.py:205
Method__init__
(self, config, mode, device='cpu', **kwargs)
metric_depth/zoedepth/data/data_mono.py:217
Method__init__
(self, shared_dict=None)
metric_depth/zoedepth/data/data_mono.py:248
Method__init__
(self)
metric_depth/zoedepth/data/data_mono.py:262
Method__init__
(self, config, mode, transform=None, is_for_online_eval=False, **kwargs)
metric_depth/zoedepth/data/data_mono.py:271
Method__init__
(self, mode, do_normalize=False, size=None)
metric_depth/zoedepth/data/data_mono.py:514
Method__init__
(self)
metric_depth/zoedepth/data/diml_outdoor_test.py:35
Method__init__
(self, data_dir_root)
metric_depth/zoedepth/data/diml_outdoor_test.py:79
Method__init__
(self)
metric_depth/zoedepth/data/sun_rgbd_loader.py:35
Method__init__
(self, data_dir_root)
metric_depth/zoedepth/data/sun_rgbd_loader.py:79
Method__init__
(self)
metric_depth/zoedepth/data/hypersim.py:52
Method__init__
(self, data_dir_root)
metric_depth/zoedepth/data/hypersim.py:99
Method__init__
(self, resize_shape)
metric_depth/zoedepth/data/ddad.py:35
Method__init__
(self, data_dir_root, resize_shape)
metric_depth/zoedepth/data/ddad.py:83
Method__init__
(self, config)
metric_depth/zoedepth/data/ibims.py:35
Method__init__
(self)
metric_depth/zoedepth/data/diml_indoor_test.py:35
Method__init__
(self, data_dir_root)
metric_depth/zoedepth/data/diml_indoor_test.py:82
Method__init__
(self)
metric_depth/zoedepth/trainers/loss.py:112
Method__init__
(self, ord_num, beta, discretization="SID")
metric_depth/zoedepth/trainers/loss.py:139
Method__init__
(self, min_depth=1e-3, max_depth=10, depth_bins=64)
metric_depth/zoedepth/trainers/loss.py:185
Method__init__
(self)
metric_depth/zoedepth/trainers/loss.py:282
Method__init__
Base Trainer class for training a model.
metric_depth/zoedepth/trainers/base_trainer.py:49
Method__init__
(self, config, model, train_loader, test_loader=None, device=None)
metric_depth/zoedepth/trainers/zoedepth_nk_trainer.py:37
Method__init__
(self, config, model, train_loader, test_loader=None, device=None)
metric_depth/zoedepth/trainers/zoedepth_trainer.py:40
Method__init__
(self)
metric_depth/zoedepth/models/depth_model.py:36
Method__init__
(self, resize_mode="minimal", keep_aspect_ratio=True, img_size=384, do_resize=True)
metric_depth/zoedepth/models/base_models/midas.py:176
Method__init__
Midas Base model used for multi-scale feature extraction. Args: midas (torch.nn.Module): Midas model. trainable (bool
metric_depth/zoedepth/models/base_models/midas.py:190
Method__init__
(self, resize_mode="minimal", keep_aspect_ratio=True, img_size=384, do_resize=True)
metric_depth/zoedepth/models/base_models/depth_anything.py:177
Method__init__
Midas Base model used for multi-scale feature extraction. Args: midas (torch.nn.Module): Midas model. trainable (bool
metric_depth/zoedepth/models/base_models/depth_anything.py:193
Method__init__
(self, encoder='vitl', features=256, use_bn=False, out_channels=[256, 512, 1024, 1024], use_clstoken=False)
metric_depth/zoedepth/models/base_models/dpt_dinov2/dpt.py:134
Method__init__
Init. Args: features (int): number of features
metric_depth/zoedepth/models/base_models/dpt_dinov2/blocks.py:99
Method__init__
ZoeDepth model. This is the version of ZoeDepth that has a single metric head Args: core (models.base_models.midas.MidasCore): Th
metric_depth/zoedepth/models/zoedepth/zoedepth_v1.py:40
Method__init__
ViT-like transformer block Args: in_channels (int): Input channels patch_size (int, optional): patch size. Defaults t
metric_depth/zoedepth/models/layers/patch_transformer.py:30
Method__init__
Conditional Log Binomial distribution Args: in_features (int): number of input channels in main feature condition_dim
metric_depth/zoedepth/models/layers/dist_layers.py:73
Method__init__
Bin center regressor network. Bin centers are bounded on (min_depth, max_depth) interval. Args: in_features (int): input channels
metric_depth/zoedepth/models/layers/localbins_layers.py:30
Method__init__
Bin center regressor network. Bin centers are unbounded Args: in_features (int): input channels n_bins (int, optional
metric_depth/zoedepth/models/layers/localbins_layers.py:72
Method__init__
(self, in_features, prev_nbins, split_factor=2, mlp_dim=128, min_depth=1e-3, max_depth=10)
metric_depth/zoedepth/models/layers/localbins_layers.py:122
Method__init__
Attractor layer for bin centers. Bin centers are unbounded
metric_depth/zoedepth/models/layers/attractor.py:140
Method__init__
ZoeDepthNK model. This is the version of ZoeDepth that has two metric heads and uses a learned router to route to experts. Args:
metric_depth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:42
Method__iter__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:37
Method__iter__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:97
Method__iter__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:189
Method__iter__
(self)
metric_depth/zoedepth/data/data_mono.py:208
Method__len__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:49
Method__len__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/adapters.py:28
Method__len__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/extended.py:38
Method__len__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:240
Method__len__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:167
Method__len__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:214
Method__len__
(self)
metric_depth/zoedepth/data/vkitti.py:132
Method__len__
(self)
metric_depth/zoedepth/data/vkitti2.py:168
Method__len__
(self)
metric_depth/zoedepth/data/diode.py:117
Method__len__
(self)
metric_depth/zoedepth/data/data_mono.py:211
Method__len__
(self)
metric_depth/zoedepth/data/data_mono.py:509
Method__len__
(self)
metric_depth/zoedepth/data/diml_outdoor_test.py:105
Method__len__
(self)
metric_depth/zoedepth/data/sun_rgbd_loader.py:109
Method__len__
(self)
metric_depth/zoedepth/data/hypersim.py:132
Method__len__
(self)
metric_depth/zoedepth/data/ddad.py:119
Method__len__
(self)
metric_depth/zoedepth/data/ibims.py:75
Method__len__
(self)
metric_depth/zoedepth/data/diml_indoor_test.py:116
Method__repr__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/masking.py:35
Method__setattr__
(self, name, value)
metric_depth/zoedepth/utils/easydict/__init__.py:134
Method__str__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:41
Method__str__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:188
Method__str__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:31
Method__str__
(self)
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:40
Method_class_ids_path
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:99
Method_class_names_path
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:103
Method_dequantize_depth
Inverse of quantization depth : NCHW -> N1HW
metric_depth/zoedepth/trainers/loss.py:211
Method_entries_path
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:95
Method_init_weights
(self, m)
torchhub/facebookresearch_dinov2_main/dinov2/layers/dino_head.py:31
Function_make_bool_str
(b: bool)
torchhub/facebookresearch_dinov2_main/dinov2/data/loaders.py:29
Function_make_dinov2_model_name
(arch_name: str, patch_size: int, num_register_tokens: int = 0)
torchhub/facebookresearch_dinov2_main/utils.py:17
Function_make_sample_transform
(image_transform: Optional[Callable] = None, target_transform: Optional[Callable] = None)
torchhub/facebookresearch_dinov2_main/dinov2/data/loaders.py:33
Function_mmap_tarball
(class_id: str)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:62
Function_new_shuffle_tensor_slice
( *, tensor: torch.Tensor, start: int = 0, step: int = 1, generator: torch.Generator )
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:147
Function_pad_and_collate
(batch)
torchhub/facebookresearch_dinov2_main/dinov2/eval/linear.py:164
Function_shuffle_tensor_slice
( *, tensor: torch.Tensor, start: int = 0, step: int = 1, generator: torch.Generator )
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:126
Method_tarballs_root
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:198
Methodaccuracy_averaging
(self)
torchhub/facebookresearch_dinov2_main/dinov2/eval/metrics.py:28
Methodadd_meter
(self, name, meter)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:51
Functionapply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
depth_anything/util/transform.py:12
Methodattn_residual_func
(x: Tensor)
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:83
Methodattn_residual_func
(x: Tensor, attn_bias=None)
torchhub/facebookresearch_dinov2_main/dinov2/layers/block.py:213
Methodavg
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:172
Methodbuild
(midas_model_type="dinov2_large", train_midas=False, use_pretrained_midas=True, fetch_features=False, freeze_b
metric_depth/zoedepth/models/base_models/depth_anything.py:334
Methodbuild_from_config
(config)
metric_depth/zoedepth/models/zoedepth/zoedepth_v1.py:263
Methodbuild_from_config
(config)
metric_depth/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:340
Methodcheckpoint
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/linear.py:29
Methodcheckpoint
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/log_regression.py:29
Methodcheckpoint
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/eval/knn.py:29
Methodcheckpoint
(self)
torchhub/facebookresearch_dinov2_main/dinov2/run/train/train.py:29
Functioncollate_data_and_cast
(samples_list, mask_ratio_tuple, mask_probability, dtype, n_tokens=None, mask_generator=None)
torchhub/facebookresearch_dinov2_main/dinov2/data/collate.py:11
Functioncreate_triangles
Reference: https://github.com/google-research/google-research/blob/e96197de06613f1b027d20328e06d69829fa5a89/infinite_nature/render_utils.py#L68
metric_depth/zoedepth/utils/geometry.py:75
Functioncrop_black_or_white_border
Crops the white and black border of the RGB and depth images. Args: rgb: RGB image, shape (H, W, 3). This image is used to determine the
metric_depth/zoedepth/data/preprocess.py:136
Methoddecode
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/decoders.py:22
← previousnext →501–600 of 746, ranked by callers