Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Robbyant/lingbot-depth
/ functions
Functions
198 in github.com/Robbyant/lingbot-depth
⨍
Functions
198
◇
Types & classes
32
Function
catch_exception
(fn)
mdm/utils/tools.py:14
Function
colorize_depth
(depth: np.ndarray, mask: np.ndarray = None, normalize: bool = True, cmap: str = 'Spectral')
mdm/utils/vis.py:11
Function
colorize_depth_affine
(depth: np.ndarray, mask: np.ndarray = None, cmap: str = 'Spectral')
mdm/utils/vis.py:27
Function
colorize_disparity
(disparity: np.ndarray, mask: np.ndarray = None, normalize: bool = True, cmap: str = 'Spectral')
mdm/utils/vis.py:38
Function
colorize_error_map
(error_map: np.ndarray, mask: np.ndarray = None, cmap: str = 'plasma', value_range: Tuple[float, float] = None
mdm/utils/vis.py:58
Function
colorize_normal
(normal: np.ndarray, mask: np.ndarray = None)
mdm/utils/vis.py:50
Function
decorator
(fn: Callable)
mdm/utils/tools.py:234
Function
dinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
mdm/model/dinov2_rgbd/hub/backbones.py:71
Function
dinov2_vitb14_reg
DINOv2 ViT-B/14 model with registers (optionally) pretrained on the LVD-142M dataset.
mdm/model/dinov2_rgbd/hub/backbones.py:119
Function
dinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
mdm/model/dinov2_rgbd/hub/backbones.py:91
Function
dinov2_vitg14_reg
DINOv2 ViT-g/14 model with registers (optionally) pretrained on the LVD-142M dataset.
mdm/model/dinov2_rgbd/hub/backbones.py:149
Function
dinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
mdm/model/dinov2_rgbd/hub/backbones.py:78
Function
dinov2_vitl14_reg
DINOv2 ViT-L/14 model with registers (optionally) pretrained on the LVD-142M dataset.
mdm/model/dinov2_rgbd/hub/backbones.py:134
Function
dinov2_vitl16
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
mdm/model/dinov2_rgbd/hub/backbones.py:84
Function
dinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
mdm/model/dinov2_rgbd/hub/backbones.py:64
Function
dinov2_vits14_reg
DINOv2 ViT-S/14 model with registers (optionally) pretrained on the LVD-142M dataset.
mdm/model/dinov2_rgbd/hub/backbones.py:104
Method
enable_gradient_checkpointing
(self)
mdm/model/modules_decoder.py:166
Method
enable_gradient_checkpointing
(self)
mdm/model/modules_rgbd_encoder.py:86
Method
enable_pytorch_native_sdpa
(self)
mdm/model/v2.py:95
Method
enable_pytorch_native_sdpa
(self)
mdm/model/modules_rgbd_encoder.py:90
Method
f
(*args, **kwargs)
mdm/model/dinov2_rgbd/models/vision_transformer.py:151
Method
ffn_residual_func
(x: Tensor)
mdm/model/dinov2_rgbd/layers/block.py:92
Method
ffn_residual_func
(x: Tensor, attn_bias=None)
mdm/model/dinov2_rgbd/layers/block.py:222
Function
fix_random_seeds
Fix random seeds.
mdm/model/dinov2_rgbd/utils/utils.py:36
Method
flops
(self)
mdm/model/dinov2_rgbd/layers/patch_embed_mlp.py:148
Method
flops
(self)
mdm/model/dinov2_rgbd/layers/patch_embed.py:83
Method
forward
(self, *args, **kwargs)
mdm/model/utils.py:11
Method
forward
(self, x: torch.Tensor, attn_bias=None)
mdm/model/utils.py:25
Method
forward
(self, x)
mdm/model/modules_decoder.py:62
Method
forward
(self, in_features: List[torch.Tensor])
mdm/model/modules_decoder.py:173
Method
forward
(self, image: torch.Tensor, depth: torch.Tensor, token_rows
mdm/model/modules_rgbd_encoder.py:94
Method
forward
(self, x)
mdm/model/dinov2_rgbd/hub/utils.py:36
Method
forward
(self, input)
mdm/model/dinov2_rgbd/layers/patch_embed_mlp.py:30
Method
forward
(self, input: torch.Tensor)
mdm/model/dinov2_rgbd/layers/patch_embed_mlp.py:48
Method
forward
(self, x)
mdm/model/dinov2_rgbd/layers/patch_embed_mlp.py:76
Method
forward
(self, x: Tensor)
mdm/model/dinov2_rgbd/layers/patch_embed_mlp.py:133
Method
forward
(self, x)
mdm/model/dinov2_rgbd/layers/drop_path.py:33
Method
forward
(self, x_or_x_list)
mdm/model/dinov2_rgbd/layers/block.py:251
Method
forward
(self, x)
mdm/model/dinov2_rgbd/layers/dino_head.py:36
Method
forward
(self, x: Tensor)
mdm/model/dinov2_rgbd/layers/layer_scale.py:26
Method
forward
(self, x: Tensor, attn_bias=None)
mdm/model/dinov2_rgbd/layers/attention.py:84
Method
forward
(self, x: Tensor)
mdm/model/dinov2_rgbd/layers/mlp.py:34
Method
forward
(self, x: Tensor)
mdm/model/dinov2_rgbd/layers/swiglu_ffn.py:30
Method
forward
(self, x: Tensor)
mdm/model/dinov2_rgbd/layers/patch_embed.py:68
Method
forward
(self, x)
mdm/model/dinov2_rgbd/models/vision_transformer.py:39
Function
fuse_params_groups
(all_params_groups, keys=("lr_multiplier", "wd_multiplier", "is_last_layer"))
mdm/model/dinov2_rgbd/utils/param_groups.py:92
Function
get_params_groups_with_decay
(model, lr_decay_rate=1.0, patch_embed_lr_mult=1.0)
mdm/model/dinov2_rgbd/utils/param_groups.py:51
Function
get_sha
()
mdm/model/dinov2_rgbd/utils/utils.py:46
Function
get_slurm_executor_parameters
( nodes: int, num_gpus_per_node: int, cluster_type: Optional[ClusterType] = None, **kwargs )
mdm/model/dinov2_rgbd/utils/cluster.py:74
Function
get_user_checkpoint_path
(cluster_type: Optional[ClusterType] = None)
mdm/model/dinov2_rgbd/utils/cluster.py:51
Function
has_batchnorms
(model)
mdm/model/dinov2_rgbd/utils/utils.py:90
Method
history
(self)
mdm/utils/tools.py:195
Function
import_file_as_module
(file_path: Union[str, os.PathLike], module_name: str)
mdm/utils/tools.py:285
Function
import_model_class_by_version
(version: str)
mdm/model/__init__.py:7
Method
infer_feat
( self, image: torch.Tensor, depth_in: torch.Tensor = None, num_tokens: int
mdm/model/v2.py:263
Method
init_weights
(self)
mdm/model/v2.py:92
Method
init_weights
(self)
mdm/model/modules_rgbd_encoder.py:64
Function
init_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
mdm/model/dinov2_rgbd/models/vision_transformer.py:416
Method
interpolate_pos_encoding
(self, x, h, w)
mdm/model/dinov2_rgbd/models/vision_transformer.py:208
Function
key_average
Returns a dictionary with the average value of each key in the input list of dictionaries.
mdm/utils/tools.py:65
Function
load_pretrained_weights
(model, pretrained_weights, checkpoint_key)
mdm/model/dinov2_rgbd/utils/utils.py:20
Function
multithead_execute
(inputs: List[Any], num_workers: int, pbar = None)
mdm/utils/tools.py:224
Method
onnx_compatible_mode
(self)
mdm/model/modules_rgbd_encoder.py:56
Method
onnx_compatible_mode
(self)
mdm/model/dinov2_rgbd/models/vision_transformer.py:194
Function
parse
(x)
mdm/model/dinov2_rgbd/layers/patch_embed_mlp.py:54
Method
process_output
(out)
mdm/model/dinov2_rgbd/models/vision_transformer.py:374
Function
read_depth
Read a depth image, return float32 depth array of shape (H, W).
mdm/utils/io.py:89
Function
read_image
Read a image, return uint8 RGB array of shape (H, W, 3).
mdm/utils/io.py:66
Function
read_json
(path: Union[str, os.PathLike, IO[str]])
mdm/utils/io.py:257
Function
read_jsonl
(file)
mdm/utils/tools.py:116
Function
read_mask
Read a binary mask, return bool array of shape (H, W).
mdm/utils/io.py:227
Function
read_normal
Read a normal image, return float32 normal array of shape (H, W, 3).
mdm/utils/io.py:197
Function
read_segmentation
Read a segmentation mask ### Parameters: - `path: Union[str, os.PathLike, IO]` The file path or file object to read from. ###
mdm/utils/io.py:152
Function
recursive_replace
(d: Union[List, Dict, str], mapping: Dict[str, str])
mdm/utils/tools.py:139
Function
save_glb
( save_path: Union[str, os.PathLike], vertices: np.ndarray, faces: np.ndarray, vertex_uvs:
mdm/utils/io.py:18
Function
save_ply
( save_path: Union[str, os.PathLike], vertices: np.ndarray, faces: np.ndarray, vertex_color
mdm/utils/io.py:46
Function
setup
Create configs and perform basic setups.
mdm/model/dinov2_rgbd/utils/config.py:63
Function
strip_common_prefix_suffix
(strings: List[str])
mdm/utils/tools.py:210
Function
suppress_traceback
(fn)
mdm/utils/tools.py:252
Function
sync_ddp_hook
(state, bucket: torch.distributed.GradBucket)
mdm/model/utils.py:58
Function
to_hierachical_dataframe
(data: List[Dict[Tuple[str, ...], Any]])
mdm/utils/tools.py:130
Function
unflatten_nested_dict
Unflattens a single-level dictionary into a nested dictionary, with keys as tuples.
mdm/utils/tools.py:101
Function
unwrap_module_with_gradient_checkpointing
(module: nn.Module)
mdm/model/utils.py:18
Function
vit_base
(patch_size=16, num_register_tokens=0, **kwargs)
mdm/model/dinov2_rgbd/models/vision_transformer.py:437
Function
vit_giant2
Close to ViT-giant, with embed-dim 1536 and 24 heads => embed-dim per head 64
mdm/model/dinov2_rgbd/models/vision_transformer.py:465
Function
vit_large
(patch_size=16, num_register_tokens=0, **kwargs)
mdm/model/dinov2_rgbd/models/vision_transformer.py:451
Function
vit_small
(patch_size=16, num_register_tokens=0, **kwargs)
mdm/model/dinov2_rgbd/models/vision_transformer.py:423
Function
wrap_dinov3_attention_with_sdpa
(module: nn.Module)
mdm/model/utils.py:40
Function
wrapper
(*args, **kwargs)
mdm/utils/tools.py:16
Method
wrapper
(*args, **kwargs)
mdm/utils/tools.py:167
Method
wrapper
(*args, **kwargs)
mdm/utils/tools.py:270
Function
write_depth
Encode and write a depth image as 16-bit PNG format. ## Parameters: - `path: Union[str, os.PathLike, IO]` The file path or file o
mdm/utils/io.py:111
Function
write_image
Write a image, input uint8 RGB array of shape (H, W, 3).
mdm/utils/io.py:78
Function
write_json
(path: Union[str, os.PathLike, IO[str]], content: JSON_TYPE)
mdm/utils/io.py:265
Function
write_jsonl
(data: List[dict], file)
mdm/utils/tools.py:123
Function
write_mask
Write a binary mask, input bool array of shape (H, W).
mdm/utils/io.py:241
Function
write_normal
Write a normal image, input float32 normal array of shape (H, W, 3).
mdm/utils/io.py:213
Function
write_segmentation
Write a segmentation mask and label mapping, as PNG format. ### Parameters: - `path: Union[str, os.PathLike, IO]` The file path o
mdm/utils/io.py:174
← previous
101–198 of 198, ranked by callers