MCPcopy Create free account

hub / github.com/ByteDance-Seed/Depth-Anything-3 / functions

Functions731 in github.com/ByteDance-Seed/Depth-Anything-3

↓ 1 callersFunctionunproject_depth
Turn the depth map into a 3D point cloud in world space Args: depth: (b, v, h, w, 1) intrinsics: (b, v, 3, 3) c2w: (
src/depth_anything_3/utils/geometry.py:434
↓ 1 callersMethodupdate_gallery_on_upload
Handle file uploads and update gallery. Args: input_video: Path to input video file input_images: List of in
src/depth_anything_3/app/modules/file_handlers.py:195
↓ 1 callersFunctionupdate_recursive
Update two config dictionaries recursively. dict1 get masked by dict2, and we retuen dict1. Args: dict1 (dict): first dictionary to
da3_streaming/loop_utils/config_utils.py:52
↓ 1 callersMethodupdate_view_selectors
Update view selector dropdowns based on available views. Args: processed_data: Processed data dictionary Return
src/depth_anything_3/app/modules/visualization.py:36
↓ 1 callersFunctionvis_depth_map_tensor
Color-map the depth map.
src/depth_anything_3/utils/visualize.py:84
↓ 1 callersFunctionvisualize_depth
Visualize a depth map using a colormap. Args: depth: Input depth map array depth_min: Minimum depth value for normalization.
src/depth_anything_3/utils/visualize.py:23
↓ 1 callersFunctionwarmup_numba
()
da3_streaming/loop_utils/sim3utils.py:909
↓ 1 callersFunctionwarmup_torch
()
da3_streaming/loop_utils/alignment_torch.py:310
↓ 1 callersFunctionwarmup_triton
()
da3_streaming/loop_utils/alignment_triton.py:457
↓ 1 callersFunctionweighted_align_point_maps
point_map2 -> point_map1
da3_streaming/loop_utils/sim3utils.py:1167
↓ 1 callersFunctionweighted_estimate_se3_triton
(source_points, target_points, weights)
da3_streaming/loop_utils/alignment_triton.py:288
↓ 1 callersFunctionweighted_estimate_sim3_triton
(source_points, target_points, weights)
da3_streaming/loop_utils/alignment_triton.py:315
↓ 1 callersFunctionwrite_cameras_binary
see: src/colmap/scene/reconstruction.cc void Reconstruction::WriteCamerasBinary(const std::string& path) void Reconstruction::Rea
src/depth_anything_3/utils/read_write_model.py:182
↓ 1 callersFunctionwrite_cameras_text
see: src/colmap/scene/reconstruction.cc void Reconstruction::WriteCamerasText(const std::string& path) void Reconstruction::ReadC
src/depth_anything_3/utils/read_write_model.py:163
↓ 1 callersFunctionwrite_images_binary
see: src/colmap/scene/reconstruction.cc void Reconstruction::ReadImagesBinary(const std::string& path) void Reconstruction::Write
src/depth_anything_3/utils/read_write_model.py:325
↓ 1 callersFunctionwrite_images_text
see: src/colmap/scene/reconstruction.cc void Reconstruction::ReadImagesText(const std::string& path) void Reconstruction::WriteIm
src/depth_anything_3/utils/read_write_model.py:287
↓ 1 callersFunctionwrite_model
(cameras, images, points3D, path, ext=".bin")
src/depth_anything_3/utils/read_write_model.py:496
↓ 1 callersFunctionwrite_points3D_binary
see: src/colmap/scene/reconstruction.cc void Reconstruction::ReadPoints3DBinary(const std::string& path) void Reconstruction::Wri
src/depth_anything_3/utils/read_write_model.py:443
↓ 1 callersFunctionwrite_points3D_text
see: src/colmap/scene/reconstruction.cc void Reconstruction::ReadPoints3DText(const std::string& path) void Reconstruction::Write
src/depth_anything_3/utils/read_write_model.py:414
FunctionLog
(*args, tag="DA3-Streaming")
da3_streaming/loop_utils/logging_utils.py:30
MethodSE3_to_Sim3
Convert SE3 to Sim3 (add unit scale)
da3_streaming/loop_utils/sim3loop.py:117
Method__call__
Convert model output to Prediction object. Args: model_output: Model output dictionary containing depth, conf, extrinsic
src/depth_anything_3/utils/io/output_processor.py:42
Method__call__
Returns: (tensor, extrinsics_list, intrinsics_list) tensor shape: (1, N, 3, H, W)
src/depth_anything_3/utils/io/input_processor.py:65
Method__call__
Generates spatial positions for a batch of patches. Args: batch_size: Number of samples in the batch. height: Height
src/depth_anything_3/model/dinov2/layers/rope.py:38
Function__getattr__
Lazy import to avoid circular import when running as __main__.
src/depth_anything_3/bench/__init__.py:36
Method__init__
(self, image_dir, save_dir, config)
da3_streaming/da3_streaming.py:133
Method__init__
(self, config, device="cpu")
da3_streaming/loop_utils/sim3loop.py:50
Method__init__
( self, # ---- Backbone backbone_arch="resnet50", backbone_config={},
da3_streaming/loop_utils/loop_detector.py:43
Method__init__
Initialize the loop detector Args: image_dir: Directory path containing images ckpt_path: Model checkpoint path
da3_streaming/loop_utils/loop_detector.py:77
Method__init__
Initialize DepthAnything3 with specified preset. Args: model_name: The name of the model preset to use.
src/depth_anything_3/api.py:75
Method__init__
(self)
src/depth_anything_3/utils/logger.py:38
Method__init__
( self, device=None, q_oversample: int = 16, clip_percent: float = 10.0,
src/depth_anything_3/utils/pca_utils.py:135
Method__init__
(self)
src/depth_anything_3/utils/registry.py:20
Method__init__
Initialize the output processor.
src/depth_anything_3/utils/io/output_processor.py:39
Method__init__
(self)
src/depth_anything_3/utils/io/input_processor.py:59
Method__init__
(self, features: int, activation: nn.Module, bn: bool, groups: int = 1)
src/depth_anything_3/model/dpt.py:382
Method__init__
( self, features: int, activation: nn.Module, deconv: bool = False, bn
src/depth_anything_3/model/dpt.py:410
Method__init__
( self, dim_in: int, patch_size: int = 14, output_dim: int = 4, activa
src/depth_anything_3/model/gsdpt.py:26
Method__init__
( self, dim_in: int, *, patch_size: int = 14, output_dim: int = 2,
src/depth_anything_3/model/dualdpt.py:44
Method__init__
( self, dim_out: int = 1024, dim_in: int = 9, trunk_depth: int = 4, ta
src/depth_anything_3/model/cam_enc.py:30
Method__init__
Initialize NestedDepthAnything3Net with two branches. Args: preset: Configuration for main depth estimation branch
src/depth_anything_3/model/da3.py:324
Method__init__
( self, sh_degree: int = 0, pred_color: bool = False, pred_offset_depth: bool
src/depth_anything_3/model/gs_adapter.py:29
Method__init__
(self, dim_in=1536)
src/depth_anything_3/model/cam_dec.py:20
Method__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
src/depth_anything_3/model/utils/block.py:23
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = True, proj_bias
src/depth_anything_3/model/utils/attention.py:24
Method__init__
( self, dim: int, init_values: Union[float, Tensor] = 1e-5, inplace: bool = Fa
src/depth_anything_3/model/utils/attention.py:71
Method__init__
(self, dims: Tuple[int, ...])
src/depth_anything_3/model/utils/head_utils.py:88
Method__init__
( self, name: str, out_layers: List[int], alt_start: int = -1, qknorm_
src/depth_anything_3/model/dinov2/dinov2.py:23
Method__init__
Args: img_size (int, tuple): input image size patch_size (int, tuple): patch size in_chans (int): number
src/depth_anything_3/model/dinov2/vision_transformer.py:84
Method__init__
Initializes the 2D RoPE module.
src/depth_anything_3/model/dinov2/layers/rope.py:80
Method__init__
(self, drop_prob=None)
src/depth_anything_3/model/dinov2/layers/drop_path.py:30
Method__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
src/depth_anything_3/model/dinov2/layers/block.py:27
Method__init__
( self, dim: int, init_values: Union[float, Tensor] = 1e-5, inplace: bool = Fa
src/depth_anything_3/model/dinov2/layers/layer_scale.py:15
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, proj_bia
src/depth_anything_3/model/dinov2/layers/attention.py:19
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
src/depth_anything_3/model/dinov2/layers/mlp.py:17
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
src/depth_anything_3/model/dinov2/layers/swiglu_ffn.py:45
Method__init__
( self, img_size: Union[int, Tuple[int, int]] = 224, patch_size: Union[int, Tuple[int,
src/depth_anything_3/model/dinov2/layers/patch_embed.py:37
Method__init__
(self, *args, directory=None, **kwargs)
src/depth_anything_3/services/gallery.py:705
Method__init__
(self, model_dir: str, device: str = "cuda")
src/depth_anything_3/services/backend.py:99
Method__init__
(self, model_dir: str, device: str = "cuda")
src/depth_anything_3/services/inference_service.py:31
Method__init__
Initialize the application. Args: model_dir: Path to the model directory workspace_dir: Path to the workspac
src/depth_anything_3/app/gradio_app.py:40
Method__init__
Initialize the UI components handler.
src/depth_anything_3/app/modules/ui_components.py:33
Method__init__
Initialize the event handlers.
src/depth_anything_3/app/modules/event_handlers.py:40
Method__init__
Initialize the model inference handler.
src/depth_anything_3/app/modules/model_inference.py:39
Method__init__
Initialize the file handler.
src/depth_anything_3/app/modules/file_handlers.py:38
Method__init__
Initialize the visualization handler.
src/depth_anything_3/app/modules/visualization.py:33
Method__init__
Initialize the evaluator. Args: work_dir: Base directory for model outputs and metric files datas: List of d
src/depth_anything_3/bench/evaluator.py:59
Method__init__
(self)
src/depth_anything_3/bench/dataset.py:71
Method__init__
Initialize the printer. Args: use_color: Whether to use ANSI colors in output
src/depth_anything_3/bench/print_metrics.py:108
Method__init__
(self)
src/depth_anything_3/bench/datasets/scannetpp.py:97
Method__init__
(self)
src/depth_anything_3/bench/datasets/sevenscenes.py:99
Method__init__
(self)
src/depth_anything_3/bench/datasets/hiroom.py:100
Method__init__
(self)
src/depth_anything_3/bench/datasets/eth3d.py:95
Method__init__
(self)
src/depth_anything_3/bench/datasets/dtu64.py:69
Function_denorm_and_to_uint8
Denormalize to [0,255] and output (N, H, W, 3) uint8.
src/depth_anything_3/utils/export/utils.py:19
Method_forward
(self, x: Tensor)
src/depth_anything_3/model/dinov2/layers/attention.py:83
Method_forward_impl
( self, feats: List[torch.Tensor], H: int, W: int, patch_start_idx: in
src/depth_anything_3/model/gsdpt.py:76
Function_func_sum
(*x)
da3_streaming/loop_utils/loop_refinement.py:172
Method_func_sum
(*x)
da3_streaming/loop_utils/sim3loop.py:190
Method_metric_dir
Directory for storing metric JSON files.
src/depth_anything_3/bench/evaluator.py:474
Method_process_one
( self, img: np.ndarray | Image.Image | str, extrinsic: np.ndarray | None = None,
src/depth_anything_3/utils/io/input_processor.py:219
Method_residual
(C, Gi, Gj)
da3_streaming/loop_utils/sim3loop.py:153
Function_run_inference_task
Run inference task in background thread with OOM protection.
src/depth_anything_3/services/backend.py:202
Functionadd_border
( image: Tensor, # "channel height width" border: int = 8, color: Color = 1, )
src/depth_anything_3/utils/layout_helpers.py:204
Functionalign_point_maps
point_map2 -> point_map1
da3_streaming/loop_utils/sim3utils.py:83
Methodall
(self)
src/depth_anything_3/bench/registries.py:71
Functionapply_sim3
(points, s, R, t)
da3_streaming/loop_utils/sim3utils.py:124
Functionapply_sim3_direct
(point_maps, s, R, t)
da3_streaming/loop_utils/sim3utils.py:128
Functionapply_transformation_residual_kernel
( src_ptr, # [n, 3] tgt_ptr, # [n, 3] transformed_ptr, # [n, 3] residuals_ptr, # [n] s
da3_streaming/loop_utils/alignment_triton.py:24
Functionapply_umeyama_alignment_to_ext
Apply Sim(3) (R, t, s) to a batch of world-to-camera extrinsics ext_est. Returns the aligned extrinsics, with the same shape as input.
src/depth_anything_3/utils/pose_align.py:227
Functionasync_call
(fn)
src/depth_anything_3/utils/parallel_utils.py:40
Functionasync_call_func
(func)
src/depth_anything_3/utils/parallel_utils.py:25
Methodattn_residual_func
(x: Tensor, pos=None, attn_mask=None)
src/depth_anything_3/model/utils/block.py:72
Methodattn_residual_func
(x: Tensor, pos=None, attn_mask=None)
src/depth_anything_3/model/dinov2/layers/block.py:78
Functionauto
Automatically detect input type and run appropriate processing. Supports: - Single image file (.jpg, .png, etc.) - Directory of imag
src/depth_anything_3/cli.py:112
Functionbackend
Start model backend service with integrated gallery.
src/depth_anything_3/cli.py:640
Functionbatch_apply_alignment_to_enc
( rots: torch.Tensor, trans: torch.Tensor, scales: torch.Tensor, enc_list: List[torch.Tensor] )
src/depth_anything_3/utils/pose_align.py:23
Functionbatch_apply_alignment_to_ext
( rots: torch.Tensor, trans: torch.Tensor, scales: torch.Tensor, ext: torch.Tensor )
src/depth_anything_3/utils/pose_align.py:29
Methodbatch_jacobian
(func, x)
da3_streaming/loop_utils/sim3loop.py:189
Functioncamera_space_to_pixel_space
Convert camera space points to pixel space points. Args: camera_space_points (torch.Tensor): Camera space points with shape (b, v1,
src/depth_anything_3/utils/geometry.py:398
← previousnext →501–600 of 731, ranked by callers