MCPcopy Create free account

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

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

↓ 44 callersMethodget
(self, name)
src/depth_anything_3/utils/registry.py:32
↓ 19 callersFunctionwrite_next_bytes
pack and write to a binary file. :param fid: :param data: data to send, if multiple elements are sent at the same time, they should be enc
src/depth_anything_3/utils/read_write_model.py:84
↓ 16 callersMethodinfo
(self, *args, **kwargs)
src/depth_anything_3/utils/logger.py:67
↓ 13 callersFunctionalign_poses_umeyama
Align estimated trajectory to reference using Umeyama Sim(3). Default no RANSAC; if ransac=True, use RANSAC (max iterations default 10).
src/depth_anything_3/utils/pose_align.py:158
↓ 13 callersFunctionread_next_bytes
Read and unpack the next bytes from a binary file. :param fid: :param num_bytes: Sum of combination of {2, 4, 8}, e.g. 2, 6, 16, 30, etc.
src/depth_anything_3/utils/read_write_model.py:72
↓ 12 callersFunction_make_fusion_block
( features: int, size: Tuple[int, int] = None, has_residual: bool = True, groups: int = 1,
src/depth_anything_3/model/dpt.py:342
↓ 11 callersMethodlog
(self, level_str, *args, **kwargs)
src/depth_anything_3/utils/logger.py:41
↓ 10 callersFunctionaffine_inverse
(A: torch.Tensor)
src/depth_anything_3/utils/geometry.py:55
↓ 10 callersFunctioncleanup_cuda_memory
Perform a robust GPU cleanup sequence. This includes synchronizing, emptying caches, collecting IPC handles and running the Python garbage co
src/depth_anything_3/utils/memory.py:42
↓ 10 callersMethodget
(self, name)
src/depth_anything_3/bench/registries.py:67
↓ 9 callersFunctionas_homogeneous
Accept (..., 3,4) or (..., 4,4) extrinsics, return (...,4,4) homogeneous matrix. Supports torch.Tensor or np.ndarray.
src/depth_anything_3/utils/geometry.py:23
↓ 9 callersFunctioncreate_object
Create an object from config. The config is expected to contains the following: __object__: path: path.to.module name: MyClas
src/depth_anything_3/cfg.py:108
↓ 9 callersMethodeval
Evaluate for all configured modes and write JSON files. Evaluation order by mode (all datasets per mode): 1. pose -
src/depth_anything_3/bench/evaluator.py:204
↓ 8 callersMethodhandle_export_dir
Handle export directory
src/depth_anything_3/services/input_handlers.py:41
↓ 8 callersMethodprocess
Process single image
src/depth_anything_3/services/input_handlers.py:70
↓ 8 callersFunctionrun_inference
Unified inference interface
src/depth_anything_3/services/inference_service.py:179
↓ 7 callersFunctionaffine_inverse_np
(A: np.ndarray)
src/depth_anything_3/utils/geometry.py:74
↓ 7 callersFunctioncompute_weighted_mean_triton
(points, weights)
da3_streaming/loop_utils/alignment_triton.py:225
↓ 7 callersFunctiondepth_to_point_cloud_vectorized
depth: [N, H, W] numpy array or torch tensor intrinsics: [N, 3, 3] numpy array or torch tensor extrinsics: [N, 3, 4] (w2c) numpy array or
da3_streaming/da3_streaming.py:53
↓ 7 callersFunctionsample_points_from_mesh
Uniformly sample points from a triangle mesh. Args: mesh: Input triangle mesh num_points: Number of points to sample Re
src/depth_anything_3/bench/utils.py:256
↓ 7 callersFunctionstrip_ansi
Remove ANSI escape sequences from string for length calculation.
src/depth_anything_3/bench/print_metrics.py:55
↓ 6 callersFunction_wait_for_file_ready
Wait until file size stabilizes for 2 consecutive checks.
src/depth_anything_3/bench/dataset.py:35
↓ 6 callersFunction_wrap_cfg
(cfg_obj)
src/depth_anything_3/model/da3.py:36
↓ 6 callersMethodinference
Run inference on input images. Args: image: List of input images (numpy arrays, PIL Images, or file paths) e
src/depth_anything_3/api.py:133
↓ 6 callersMethodvalidate_path
Validate path
src/depth_anything_3/services/input_handlers.py:34
↓ 5 callersFunctionget_gpu_memory_info
Return a snapshot of current GPU memory usage or None if CUDA not available. Keys in returned dict: total_gb, allocated_gb, reserved_gb, free_gb,
src/depth_anything_3/utils/memory.py:16
↓ 5 callersFunctionindex_i_gs_attr
(full_attr, idx)
src/depth_anything_3/model/utils/gs_renderer.py:97
↓ 5 callersFunctionparse_export_feat
Parse export_feat parameter
src/depth_anything_3/services/input_handlers.py:255
↓ 5 callersMethodsequential_to_absolute_poses
Convert sequential relative transforms to absolute pose sequence S_01, S_12, S_23, ... -> T_0, T_1, T_2, T_3, ... Where T_i i
da3_streaming/loop_utils/sim3loop.py:76
↓ 5 callersFunctiontrim_select_reshape
(element)
src/depth_anything_3/utils/gsply_helpers.py:156
↓ 5 callersMethodwarn
(self, *args, **kwargs)
src/depth_anything_3/utils/logger.py:64
↓ 4 callersMethod_add_pos_embed
Simple UV position encoding directly added to feature map.
src/depth_anything_3/model/dpt.py:330
↓ 4 callersMethod_apply_activation_single
Apply activation to single channel output, maintaining semantic consistency with value branch in multi-channel case. Supports: exp /
src/depth_anything_3/model/dpt.py:286
↓ 4 callersMethod_apply_activation_single
Apply activation to single channel output, maintaining semantic consistency with value branch in multi-channel case. Supports: exp /
src/depth_anything_3/model/dualdpt.py:341
↓ 4 callersMethod_export_dir
Get export directory path. Structure: .../model_results/{data}/{scene}/{posed|unposed}
src/depth_anything_3/bench/evaluator.py:478
↓ 4 callersFunction_umeyama_sim3_from_paths
(pose_ref, pose_est)
src/depth_anything_3/utils/pose_align.py:84
↓ 4 callersFunctioncalculate_auc_np
Calculate the Area Under the Curve (AUC) for the given error arrays. Args: r_error: Rotation error values in degrees t_error
src/depth_anything_3/bench/utils.py:435
↓ 4 callersFunctioncreate_tsdf_volume
Create a scalable TSDF volume for depth fusion. Args: voxel_length: Size of each voxel sdf_trunc: Truncation distance for SD
src/depth_anything_3/bench/utils.py:173
↓ 4 callersFunctioncustom_interpolate
Safe interpolation implementation to avoid INT_MAX overflow in torch.nn.functional.interpolate.
src/depth_anything_3/model/utils/head_utils.py:205
↓ 4 callersFunctionextract_xyz
(pose_tensor)
da3_streaming/loop_utils/sim3loop.py:367
↓ 4 callersFunctionfind_homography_least_squares_weighted_torch
src_pts: (N,2) source points (torch.Tensor, float32/float64) dst_pts: (N,2) target points (torch.Tensor, float32/float64) confident_weigh
src/depth_anything_3/utils/ray_utils.py:112
↓ 4 callersFunctionfuse_depth_to_tsdf
Fuse multiple depth maps into TSDF volume and extract mesh. Args: volume: TSDF volume to integrate into depths: Depth maps [
src/depth_anything_3/bench/utils.py:202
↓ 4 callersFunctionhomogenize_points
Convert batched points (xyz) to (xyz1).
src/depth_anything_3/utils/geometry.py:241
↓ 4 callersFunctionload_config
Load a configuration. Will resolve inheritance. Supports both file paths and module paths (e.g., depth_anything_3.configs.giant).
src/depth_anything_3/cfg.py:31
↓ 4 callersFunctionmake_K
(w, h, fx=1200.0, fy=1100.0)
src/depth_anything_3/utils/io/input_processor.py:431
↓ 4 callersFunctionnn_correspondance
Compute nearest neighbor distances from verts2 to verts1 using KDTree. Args: verts1: Reference point cloud [N, 3] verts2: Qu
src/depth_anything_3/bench/utils.py:72
↓ 4 callersMethodprint_metrics
Print evaluation metrics in a beautiful tabular format. Args: metrics: Metrics dictionary. If None, loads from saved JSO
src/depth_anything_3/bench/evaluator.py:246
↓ 4 callersFunctionprocess_vector
(vector)
src/depth_anything_3/utils/geometry.py:319
↓ 4 callersFunctionshow_result
( tag: str, tensor: torch.Tensor, Ks_in: Sequence[np.ndarray | None] | None = None,
src/depth_anything_3/utils/io/input_processor.py:408
↓ 3 callersFunctionSE3_to_Sim3
(x: pp.SE3)
da3_streaming/loop_utils/loop_refinement.py:32
↓ 3 callersMethod_add_pos_embed
Simple UV positional embedding added to feature maps.
src/depth_anything_3/model/dualdpt.py:313
↓ 3 callersFunction_as_homogeneous44
Accept (4,4) or (3,4) extrinsic parameters, return (4,4) homogeneous matrix.
src/depth_anything_3/utils/export/glb.py:192
↓ 3 callersFunction_gallery_url_join
Join URL parts safely.
src/depth_anything_3/services/backend.py:478
↓ 3 callersMethod_generate_points_from_depth
Back-project depth map into 3D world coordinates. Args: depth: Depth tensor [B, 1, H, W] proj: Projection ma
src/depth_anything_3/bench/datasets/dtu.py:244
↓ 3 callersMethod_get_scenes
Get list of scenes to evaluate, optionally filtered.
src/depth_anything_3/bench/evaluator.py:134
↓ 3 callersFunction_import_all_datasets_once
Scan and import all .py submodules under depth_anything_3.bench.datasets (skip files/packages starting with underscore), to trigger @REGISTRY
src/depth_anything_3/bench/registries.py:35
↓ 3 callersFunction_process_next_task
Process the next task in the queue.
src/depth_anything_3/services/backend.py:172
↓ 3 callersFunction_url_join
(*parts: str)
src/depth_anything_3/services/gallery.py:631
↓ 3 callersMethodalign_2pcds
( self, point_map1, conf1, point_map2, conf2, chunk1_depth,
da3_streaming/da3_streaming.py:322
↓ 3 callersMethodall
(self)
src/depth_anything_3/utils/registry.py:35
↓ 3 callersMethodclose
Clean up temporary files and calculate reclaimed disk space. This method deletes all temporary files generated during processing fro
da3_streaming/da3_streaming.py:819
↓ 3 callersFunctionclosed_form_inverse_se3
Compute the inverse of each 4x4 (or 3x4) SE3 matrix in a batch. Uses closed-form solution instead of torch.inverse() for numerical stability
src/depth_anything_3/bench/utils.py:485
↓ 3 callersFunctioncompute_sky_mask
Compute non-sky mask from sky prediction. Args: sky_prediction: Sky prediction tensor threshold: Threshold for sky classific
src/depth_anything_3/utils/alignment.py:54
↓ 3 callersFunctioncompute_weighted_covariance_triton
(src, tgt, weights, mu_src, mu_tgt)
da3_streaming/loop_utils/alignment_triton.py:245
↓ 3 callersFunctionconvert_general_state_dict
Convert general model state dict to match current model architecture. Args: state_dict: Original state dictionary Returns:
src/depth_anything_3/utils/model_loading.py:25
↓ 3 callersFunctionevaluate_3d_reconstruction
Evaluate 3D reconstruction quality using standard metrics. This function computes: - Accuracy: Mean distance from predicted points to GT
src/depth_anything_3/bench/utils.py:91
↓ 3 callersFunctiongenerate_coordinate_frame
Generate a coordinate frame given perpendicular, unit-length Y and Z vectors.
src/depth_anything_3/utils/camera_trj_helpers.py:205
↓ 3 callersFunctionget_scene_info
Get information about scenes in the examples directory. Args: examples_dir: Path to examples directory Returns: List of
src/depth_anything_3/app/modules/utils.py:141
↓ 3 callersMethodload_model
Load model
da3_streaming/loop_utils/loop_detector.py:123
↓ 3 callersFunctionnormalize_metric
(metric)
src/depth_anything_3/model/reference_view_selector.py:79
↓ 3 callersFunctionread_model
(path, ext="")
src/depth_anything_3/utils/read_write_model.py:474
↓ 3 callersMethodrun
(self)
da3_streaming/da3_streaming.py:701
↓ 3 callersFunctionsave_confident_pointcloud_batch
- points: np.ndarray, (b, H, W, 3) / (N, 3) - colors: np.ndarray, (b, H, W, 3) / (N, 3) - confs: np.ndarray, (b, H, W) / (N,) - ou
da3_streaming/loop_utils/sim3utils.py:237
↓ 3 callersMethodupdate_measure_view
Update measure view for a specific view index. Args: processed_data: Processed data dictionary view_index: I
src/depth_anything_3/app/modules/visualization.py:135
↓ 2 callersMethod__init__
( self, dim_in: int, *, patch_size: int = 14, output_dim: int = 1,
src/depth_anything_3/model/dpt.py:42
↓ 2 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
src/depth_anything_3/model/utils/attention.py:86
↓ 2 callersMethod_apply_1d_rope
Applies 1D rotary position embeddings along one dimension. Args: tokens: Input token features. positions: Position in
src/depth_anything_3/model/dinov2/layers/rope.py:134
↓ 2 callersFunction_apply_sim3_to_poses
(poses, r, t, s)
src/depth_anything_3/utils/pose_align.py:92
↓ 2 callersFunction_cleanup_old_tasks
Clean up old completed/failed tasks to prevent memory buildup.
src/depth_anything_3/services/backend.py:392
↓ 2 callersFunction_compute_offset
(base: int, overlay: int, align: Alignment)
src/depth_anything_3/utils/layout_helpers.py:77
↓ 2 callersFunction_depths_to_world_points_with_colors
For each frame, transform (u,v,1) through K^{-1} to get rays, multiply by depth to camera frame, then use (w2c)^{-1} to transform to world fr
src/depth_anything_3/utils/export/glb.py:205
↓ 2 callersMethod_dump_json
Write JSON with UTF-8 and pretty indentation.
src/depth_anything_3/bench/evaluator.py:504
↓ 2 callersMethod_eval_reconstruction
Compute reconstruction metrics for each dataset and scene. Args: mode: "recon_unposed" or "recon_posed"
src/depth_anything_3/bench/evaluator.py:306
↓ 2 callersFunction_format
(es)
da3_streaming/loop_utils/loop_refinement.py:38
↓ 2 callersMethod_forward_impl
( self, feats: List[torch.Tensor], H: int, W: int, patch_start_idx: in
src/depth_anything_3/model/dpt.py:207
↓ 2 callersMethod_forward_impl
( self, feats: List[torch.Tensor], H: int, W: int, patch_start_idx: in
src/depth_anything_3/model/dualdpt.py:208
↓ 2 callersMethod_fuse
4-layer top-down fusion, returns finest scale features (after fusion, before neck1).
src/depth_anything_3/model/dpt.py:268
↓ 2 callersFunction_get_cross_dim
(main_axis: Axis)
src/depth_anything_3/utils/layout_helpers.py:70
↓ 2 callersFunction_get_main_dim
(main_axis: Axis)
src/depth_anything_3/utils/layout_helpers.py:63
↓ 2 callersFunction_is_plain_name
Check if name is safe for use in paths.
src/depth_anything_3/services/backend.py:485
↓ 2 callersMethod_knn_dist_gpu
GPU-accelerated nearest neighbor distance computation. Args: query: Query points [N, 3] target: Target point
src/depth_anything_3/bench/datasets/dtu.py:479
↓ 2 callersMethod_load_gt_mask
Load GT depth and create valid mask. For ScanNet++, GT depth is stored as 16-bit PNG in millimeters. Returns: B
src/depth_anything_3/bench/datasets/scannetpp.py:551
↓ 2 callersMethod_load_gt_mask
Load GT depth and create valid mask. For 7Scenes, GT depth is stored as 16-bit PNG in millimeters. Value 65535 indicates inv
src/depth_anything_3/bench/datasets/sevenscenes.py:396
↓ 2 callersMethod_load_gt_mask
Load GT depth and aliasing mask to create valid mask. For HiRoom: - GT depth is stored as 16-bit PNG, scaled to 100m range
src/depth_anything_3/bench/datasets/hiroom.py:396
↓ 2 callersMethod_load_gt_mask
Load GT mask for masking invalid regions. GT mask marks occluded or invalid regions that should be excluded from depth fusio
src/depth_anything_3/bench/datasets/eth3d.py:506
↓ 2 callersFunction_make_scratch
( in_shape: List[int], out_shape: int, groups: int = 1, expand: bool = False )
src/depth_anything_3/model/dpt.py:362
↓ 2 callersMethod_mask_invalid_depth
Mask invalid depth values by setting them to 0.
src/depth_anything_3/bench/datasets/scannetpp.py:576
↓ 2 callersMethod_mask_invalid_depth
Mask invalid depth values by setting them to 0. Args: depth: Depth map to mask gt_zero_mask: Optional GT mas
src/depth_anything_3/bench/datasets/sevenscenes.py:422
↓ 2 callersMethod_mask_invalid_depth
Mask invalid depth values by setting them to 0.
src/depth_anything_3/bench/datasets/hiroom.py:425
↓ 2 callersMethod_mask_invalid_depth
Mask invalid depth values by setting them to 0. Logic: 1. Apply GT mask (if provided) - marks occluded/invalid regions
src/depth_anything_3/bench/datasets/eth3d.py:563
next →1–100 of 731, ranked by callers