MCPcopy Create free account

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

Functions746 in github.com/LiheYoung/Depth-Anything

Methodglobal_avg
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:177
Methodhas_checkpoint
Returns: bool: whether a checkpoint exists in the target directory.
torchhub/facebookresearch_dinov2_main/dinov2/fsdp/__init__.py:119
Functionhook
(model, input, output)
metric_depth/zoedepth/models/base_models/midas.py:45
Functionhook
(model, input, output)
metric_depth/zoedepth/models/base_models/depth_anything.py:46
Methodinfer_pil
Inference interface for the model for PIL image Args: pil_img (PIL.Image.Image): input PIL image pad_input (b
metric_depth/zoedepth/models/depth_model.py:131
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:331
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:298
Functioninv_attractor
Inverse attractor: dc = dx / (1 + alpha*dx^gamma), where dx = a - c, a = attractor point, c = bin center, dc = shift in bin center This is the def
metric_depth/zoedepth/models/layers/attractor.py:45
Methoditers_per_epoch
(self)
metric_depth/zoedepth/trainers/base_trainer.py:131
Methodlength
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net_22k.py:46
Methodlength
(self)
torchhub/facebookresearch_dinov2_main/dinov2/data/datasets/image_net.py:28
Functionload_and_merge_config
(config_name: str)
torchhub/facebookresearch_dinov2_main/dinov2/configs/__init__.py:20
Methodload_ckpt
(self, checkpoint_dir="./checkpoints", ckpt_type="best")
metric_depth/zoedepth/trainers/base_trainer.py:71
Functionload_pretrained_weights
(model, pretrained_weights, checkpoint_key)
torchhub/facebookresearch_dinov2_main/dinov2/utils/utils.py:21
Methodlog_bar_plot
(self, title, labels, values)
metric_depth/zoedepth/trainers/base_trainer.py:319
Methodlog_line_plot
(self, data)
metric_depth/zoedepth/trainers/base_trainer.py:310
Methodmedian
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:167
Functionon_submit
(image)
app.py:64
Functionon_trackbar
(val)
metric_depth/point_cloud_on_trackbar.py:150
Methodopen
(self, fpath)
metric_depth/zoedepth/data/data_mono.py:254
Functionpil_to_batched_tensor
(img)
metric_depth/zoedepth/utils/misc.py:355
Functionprintc
(text, color)
metric_depth/zoedepth/utils/misc.py:337
Methodresize_to_target
(self, prediction, target)
metric_depth/zoedepth/trainers/base_trainer.py:64
Functionsave_raw_16bit
(depth, fpath="raw.png")
metric_depth/zoedepth/utils/misc.py:358
Methodset_epoch
(self, epoch)
torchhub/facebookresearch_dinov2_main/dinov2/data/samplers.py:52
Methodsinkhorn_knopp_teacher
(self, teacher_output, teacher_temp, n_masked_patches_tensor, n_iterations=3)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:63
Methodsoftmax_center_teacher
(self, teacher_patch_tokens, teacher_temp)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:47
Methodstringify_losses
(L)
metric_depth/zoedepth/trainers/base_trainer.py:171
Methodsynchronize_between_processes
Distributed synchronization of the metric Warning: does not synchronize the deque!
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:152
Methodtotal_iters
(self)
metric_depth/zoedepth/trainers/base_trainer.py:135
Methodtrain_on_batch
Expects a batch of images and depth as input batch["image"].shape : batch_size, c, h, w batch["depth"].shape : batch_size, 1,
metric_depth/zoedepth/trainers/zoedepth_nk_trainer.py:47
Methodtrain_on_batch
Expects a batch of images and depth as input batch["image"].shape : batch_size, c, h, w batch["depth"].shape : batch_size, 1,
metric_depth/zoedepth/trainers/zoedepth_trainer.py:48
Methodunfreeze_conf
Unfreezes all the 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:308
Methodupdate_center
(self, teacher_patch_tokens)
torchhub/facebookresearch_dinov2_main/dinov2/loss/ibot_patch_loss.py:130
Functionurl_to_torch
(url, size=(384, 384))
metric_depth/zoedepth/utils/misc.py:347
Methodvalidate_on_batch
(self, batch, val_step)
metric_depth/zoedepth/trainers/zoedepth_nk_trainer.py:115
Methodvalidate_on_batch
(self, batch, val_step)
metric_depth/zoedepth/trainers/zoedepth_trainer.py:148
Methodvalue
(self)
torchhub/facebookresearch_dinov2_main/dinov2/logging/helpers.py:185
Functionvit_base
(patch_size=16, num_register_tokens=0, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:353
Functionvit_base
(patch_size=16, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:319
Functionvit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
torchhub/facebookresearch_dinov2_main/vision_transformer.py:381
Functionvit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:345
Functionvit_large
(patch_size=16, num_register_tokens=0, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:367
Functionvit_large
(patch_size=16, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:332
Functionvit_small
(patch_size=16, num_register_tokens=0, **kwargs)
torchhub/facebookresearch_dinov2_main/vision_transformer.py:339
Functionvit_small
(patch_size=16, **kwargs)
torchhub/facebookresearch_dinov2_main/dinov2/models/vision_transformer.py:306
← previous701–746 of 746, ranked by callers