MCPcopy Create free account

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

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

↓ 2 callersMethod_mean_of_dicts
Compute elementwise mean across a list of homogeneous metric dicts.
src/depth_anything_3/bench/evaluator.py:495
↓ 2 callersMethod_print_footer
Print report footer.
src/depth_anything_3/bench/print_metrics.py:247
↓ 2 callersMethod_print_header
Print report header.
src/depth_anything_3/bench/print_metrics.py:239
↓ 2 callersFunction_rand_rot
()
src/depth_anything_3/utils/pose_align.py:282
↓ 2 callersMethod_read_ply
Read point cloud from PLY file.
src/depth_anything_3/bench/datasets/dtu.py:543
↓ 2 callersFunction_residual
(C, Gi, Gj)
da3_streaming/loop_utils/loop_refinement.py:179
↓ 2 callersMethod_resize_ixt
( self, intrinsic: np.ndarray | None, orig_w: int, orig_h: int, w: int
src/depth_anything_3/utils/io/input_processor.py:262
↓ 2 callersFunction_sanitize_color
(color: Color)
src/depth_anything_3/utils/layout_helpers.py:41
↓ 2 callersMethod_save_gt_meta
Save GT extrinsics/intrinsics/image_files for evaluation. This is needed when frames are sampled, so eval_pose and fuse3d can use
src/depth_anything_3/bench/evaluator.py:369
↓ 2 callersFunction_save_image_impl
Common implementation for saving images synchronously or asynchronously
src/depth_anything_3/utils/parallel_utils.py:47
↓ 2 callersFunction_smooth_trj_fn_batch
(raw_c2ws, k_size=50)
src/depth_anything_3/model/utils/gs_renderer.py:193
↓ 2 callersFunction_to44
(ext)
src/depth_anything_3/utils/pose_align.py:68
↓ 2 callersMethod_to_float_dict
Convert numpy scalars to plain Python floats for JSON safety.
src/depth_anything_3/bench/evaluator.py:490
↓ 2 callersFunction_weighted_estimate_se3_numba
(source_points, target_points, weights)
da3_streaming/loop_utils/sim3utils.py:738
↓ 2 callersFunction_weighted_estimate_sim3_numba
(source_points, target_points, weights)
da3_streaming/loop_utils/sim3utils.py:770
↓ 2 callersFunctionalign_to_first_camera
Align all camera poses to the first camera's coordinate frame. Args: camera_poses: Camera poses as SE3 transformations [N, 4, 4]
src/depth_anything_3/bench/utils.py:333
↓ 2 callersFunctionapply_transformation_numba
(src, s, R, t)
da3_streaming/loop_utils/sim3utils.py:860
↓ 2 callersFunctionapply_transformation_residual_triton
(src, tgt, s, R, t)
da3_streaming/loop_utils/alignment_triton.py:188
↓ 2 callersFunctionapply_transformation_torch
(src, s, R, t)
da3_streaming/loop_utils/alignment_torch.py:153
↓ 2 callersFunctionbatch_jacobian
(func, x)
da3_streaming/loop_utils/loop_refinement.py:171
↓ 2 callersMethodcache_examples
Pre-cache all example scenes at startup. Args: show_cam: Whether to show camera in visualization filter_blac
src/depth_anything_3/app/gradio_app.py:64
↓ 2 callersFunctioncat
Arrange images in a line. The interface resembles a CSS div with flexbox.
src/depth_anything_3/utils/layout_helpers.py:120
↓ 2 callersFunctioncheck_memory_availability
Return whether at least ``required_gb`` seems available on the current GPU. The returned tuple is (is_available, message) with a human-friendly m
src/depth_anything_3/utils/memory.py:78
↓ 2 callersFunctioncolorize_value
Apply color to a metric value based on whether it's best/worst. Args: value: String representation of the value is_best: Whe
src/depth_anything_3/bench/print_metrics.py:61
↓ 2 callersFunctioncompute_alignment_error
Compute the average point alignment error (using only original inputs) Args: point_map1: target point map (b, h, w, 3) conf1: target
da3_streaming/loop_utils/sim3utils.py:140
↓ 2 callersFunctioncompute_huber_weights_numba
(residuals, delta)
da3_streaming/loop_utils/sim3utils.py:850
↓ 2 callersFunctioncompute_huber_weights_torch
(residuals, delta)
da3_streaming/loop_utils/alignment_torch.py:141
↓ 2 callersFunctioncompute_huber_weights_triton
(residuals, delta)
da3_streaming/loop_utils/alignment_triton.py:274
↓ 2 callersFunctioncompute_pose
Compute pose estimation metrics between predicted and ground truth trajectories. Args: pred_se3: Predicted SE(3) transformations [N,
src/depth_anything_3/bench/utils.py:307
↓ 2 callersFunctioncompute_residuals_numba
(tgt, transformed)
da3_streaming/loop_utils/sim3utils.py:841
↓ 2 callersFunctioncompute_residuals_torch
(tgt, transformed)
da3_streaming/loop_utils/alignment_torch.py:132
↓ 2 callersFunctioncompute_scale_ransac
Args: depth1: (n1, h, w) depth2: (n2, h, w) conf1: (n1, h, w) conf2: (n2, h, w)
da3_streaming/loop_utils/sim3utils.py:966
↓ 2 callersFunctioncompute_scale_weighted
Args: depth1: (n1, h, w) depth2: (n2, h, w) conf1: (n1, h, w) conf2: (n2, h, w)
da3_streaming/loop_utils/sim3utils.py:1036
↓ 2 callersFunctionconstruct_list_of_attributes
(num_rest: int)
src/depth_anything_3/utils/gsply_helpers.py:25
↓ 2 callersFunctionconvert_metric_state_dict
Convert metric model state dict to match current model architecture. Args: state_dict: Original metric state dictionary Returns
src/depth_anything_3/utils/model_loading.py:75
↓ 2 callersFunctioncreate_uv_grid
Create a normalized UV grid of shape (width, height, 2). The grid spans horizontally and vertically according to an aspect ratio, ensuri
src/depth_anything_3/model/utils/head_utils.py:152
↓ 2 callersFunctiondetect_model_format
(path, ext)
src/depth_anything_3/utils/read_write_model.py:462
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, pos: O
src/depth_anything_3/model/dinov2/layers/block.py:106
↓ 2 callersMethoderror
(self, *args, **kwargs)
src/depth_anything_3/utils/logger.py:61
↓ 2 callersMethodeval3d
Evaluate 3D reconstruction quality against ground truth. Args: scene: Scene identifier fuse_path: Path to fu
src/depth_anything_3/bench/dataset.py:111
↓ 2 callersFunctionexport_to_depth_vis
( prediction: Prediction, export_dir: str, )
src/depth_anything_3/utils/export/depth_vis.py:23
↓ 2 callersFunctionexport_to_glb
Generate a 3D point cloud and camera wireframes and export them as a ``.glb`` file. The function builds a point cloud from the predicted depth ma
src/depth_anything_3/utils/export/glb.py:52
↓ 2 callersFunctionexport_to_gs_video
( prediction: Prediction, export_dir: str, extrinsics: Optional[torch.Tensor] = None, # render vi
src/depth_anything_3/utils/export/gs.py:61
↓ 2 callersMethodextract_descriptors
Extract image feature descriptors
da3_streaming/loop_utils/loop_detector.py:164
↓ 2 callersFunctionextrinsics_to_pivot_parameters
Convert the extrinsics to a representation with 5 degrees of freedom: 1. Distance from pivot point in the "X" (look cross pivot axis) direction.
src/depth_anything_3/utils/camera_trj_helpers.py:257
↓ 2 callersFunctionfind_chunk_index
Find the 0-based chunk index that contains the given index idx. chunks: List of (begin_idx, end_idx). idx: The index to search for. R
da3_streaming/loop_utils/sim3utils.py:460
↓ 2 callersFunctionfind_homography_least_squares_weighted_torch_batch
Batch version of weighted least squares Homography src_pts_batch: (B, K, 2) dst_pts_batch: (B, K, 2) confident_weight_batch: (B, K)
src/depth_anything_3/utils/ray_utils.py:208
↓ 2 callersMethodfind_loop_closures
Find loop closures
da3_streaming/loop_utils/loop_detector.py:242
↓ 2 callersFunctionfmt_k_line
(K: np.ndarray | None)
src/depth_anything_3/utils/io/input_processor.py:402
↓ 2 callersFunctionget_action_args
(length: int, args: List, kwargs: Dict, i: int)
src/depth_anything_3/utils/parallel_utils.py:89
↓ 2 callersMethodget_data
Get scene data including images, camera parameters, and auxiliary info. Args: scene: Scene identifier Returns:
src/depth_anything_3/bench/dataset.py:94
↓ 2 callersMethodget_data
Collect per-view image paths, intrinsics/extrinsics for a scene. Only uses iPhone images (not DSLR). Args: scen
src/depth_anything_3/bench/datasets/scannetpp.py:105
↓ 2 callersMethodget_data
Collect per-view image paths, intrinsics/extrinsics for a scene. Args: scene: Scene identifier (e.g., "chess")
src/depth_anything_3/bench/datasets/sevenscenes.py:107
↓ 2 callersMethodget_data
Collect per-view image paths, intrinsics/extrinsics for a scene. Args: scene: Scene path (e.g., "xxx/yyy/zzz")
src/depth_anything_3/bench/datasets/hiroom.py:108
↓ 2 callersMethodget_data
Collect per-view image paths, intrinsics/extrinsics for a scene. Args: scene: Scene identifier (e.g., "courtyard")
src/depth_anything_3/bench/datasets/eth3d.py:178
↓ 2 callersFunctionget_frame_range
Calculate the frame range centered at idx with half_window frames on each side within chunk boundaries. If near boundaries, take 2 * half
da3_streaming/loop_utils/sim3utils.py:477
↓ 2 callersMethodget_image_paths
Get paths of all image files in directory
da3_streaming/loop_utils/loop_detector.py:151
↓ 2 callersFunctionget_length
(args: List, kwargs: Dict)
src/depth_anything_3/utils/parallel_utils.py:80
↓ 2 callersMethodget_status
Get backend status information.
src/depth_anything_3/services/backend.py:142
↓ 2 callersMethodget_view_data_by_index
Get view data by index, handling bounds. Args: processed_data: Processed data dictionary view_index: Index o
src/depth_anything_3/app/modules/visualization.py:59
↓ 2 callersFunctionhuber_loss_numba
(r, delta)
da3_streaming/loop_utils/sim3utils.py:832
↓ 2 callersFunctionhuber_loss_torch
(r, delta)
da3_streaming/loop_utils/alignment_torch.py:119
↓ 2 callersFunctionimport_item
Import a python item. Example: import_item("path.to.file", "MyClass") -> MyClass
src/depth_anything_3/cfg.py:101
↓ 2 callersMethodinfer
Run inference according to requested modes. - Unposed export if 'pose' or 'recon_unposed' is in modes - Posed export if 'rec
src/depth_anything_3/bench/evaluator.py:144
↓ 2 callersFunctioninterpolate_extrinsics
Interpolate extrinsics by rotating around their "focus point," which is the least-squares intersection between the look vectors of the initial and
src/depth_anything_3/utils/camera_trj_helpers.py:358
↓ 2 callersFunctioninterpolate_intrinsics
( initial: torch.Tensor, # "*#batch 3 3" final: torch.Tensor, # "*#batch 3 3" t: torch.Tensor,
src/depth_anything_3/utils/camera_trj_helpers.py:158
↓ 2 callersMethodlaunch
Launch the application. Args: host: Host address to bind to port: Port number to bind to **kwarg
src/depth_anything_3/app/gradio_app.py:589
↓ 2 callersMethodload_example_scene
Load a scene from examples directory. Args: scene_name: Name of the scene to load examples_dir: Path to exam
src/depth_anything_3/app/modules/file_handlers.py:223
↓ 2 callersFunctionload_metrics_from_dir
Load all metrics JSON files from a directory. Args: metric_dir: Path to directory containing metric JSON files Returns:
src/depth_anything_3/bench/print_metrics.py:536
↓ 2 callersMethodload_model
Load model if not already loaded.
src/depth_anything_3/services/backend.py:109
↓ 2 callersFunctionmake_2tuple
(x)
src/depth_anything_3/model/dinov2/layers/patch_embed.py:16
↓ 2 callersFunctionmake_sincos_pos_embed
This function generates a 1D positional embedding from a given grid using sine and cosine functions. # noqa Args: - embed_dim: The embed
src/depth_anything_3/model/utils/head_utils.py:123
↓ 2 callersFunctionmat_to_quat
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
src/depth_anything_3/utils/geometry.py:120
↓ 2 callersFunctionmat_to_quat
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
src/depth_anything_3/model/utils/transform.py:100
↓ 2 callersMethodnavigate_measure_view
Navigate measure view. Args: processed_data: Processed data dictionary current_selector: Current selector va
src/depth_anything_3/app/modules/event_handlers.py:485
↓ 2 callersMethodnumpy_to_pypose_sim3
Convert numpy s,R,t to pypose Sim3
da3_streaming/loop_utils/sim3loop.py:60
↓ 2 callersMethodoptimize
Main optimization function Args: sequential_transforms: Input sequence of transforms loop_constraints: List
da3_streaming/loop_utils/sim3loop.py:205
↓ 2 callersFunctionoptimized_vectorized_reservoir_sampling
Optimized vectorized reservoir sampling with batch probability calculations. This maintains mathematical correctness while improving perform
da3_streaming/loop_utils/sim3utils.py:363
↓ 2 callersFunctionparallel_execution
( *args, action: Callable, num_processes=32, print_progress=False, sequential=False, a
src/depth_anything_3/utils/parallel_utils.py:64
↓ 2 callersFunctionposition_grid_to_embed
Convert 2D position grid (HxWx2) to sinusoidal embeddings (HxWxC) Args: pos_grid: Tensor of shape (H, W, 2) containing 2D coordinate
src/depth_anything_3/model/utils/head_utils.py:96
↓ 2 callersFunctionprint_gpu_memory
()
da3_streaming/loop_utils/alignment_torch.py:362
↓ 2 callersFunctionprint_gpu_memory
()
da3_streaming/loop_utils/alignment_triton.py:510
↓ 2 callersMethodprint_results
Print evaluation metrics in a beautiful tabular format. Args: metrics: Dictionary mapping "dataset_mode" to metric resul
src/depth_anything_3/bench/print_metrics.py:117
↓ 2 callersMethodprocess_attention
(self, x, block, attn_type="global", pos=None, attn_mask=None)
src/depth_anything_3/model/dinov2/vision_transformer.py:351
↓ 2 callersMethodprocess_single_chunk
(self, range_1, chunk_idx=None, range_2=None, is_loop=False)
da3_streaming/da3_streaming.py:253
↓ 2 callersFunctionquat_to_mat
Quaternion Order: XYZW or say ijkr, scalar-last Convert rotations given as quaternions to rotation matrices. Args: quaternions:
src/depth_anything_3/model/utils/transform.py:68
↓ 2 callersMethodqvec2rotmat
(self)
src/depth_anything_3/utils/read_write_model.py:51
↓ 2 callersFunctionreorder_by_reference
Reorder views to place the selected reference view first. Args: x: Input tensor of shape (B, S, N, C) b_idx: Reference v
src/depth_anything_3/model/reference_view_selector.py:115
↓ 2 callersFunctionresidual
(Ginv, input_poses, dSloop, ii, jj, jacobian=False)
da3_streaming/loop_utils/loop_refinement.py:185
↓ 2 callersMethodresidual
Compute residuals (modified from original code)
da3_streaming/loop_utils/sim3loop.py:150
↓ 2 callersFunctionrobust_weighted_estimate_sim3_torch
( src, tgt, init_weights, delta=0.1, max_iters=20, tol=1e-9, align_method="sim3" )
da3_streaming/loop_utils/alignment_torch.py:164
↓ 2 callersFunctionrobust_weighted_estimate_sim3_triton
( src, tgt, init_weights, delta=0.1, max_iters=20, tol=1e-9, align_method="sim3" )
da3_streaming/loop_utils/alignment_triton.py:389
↓ 2 callersFunctionrun_suite
(suite_name: str, sizes: list[tuple[int, int]])
src/depth_anything_3/utils/io/input_processor.py:436
↓ 2 callersMethodsave_depth_conf_result
(self, predictions, chunk_idx, s, R, T)
da3_streaming/da3_streaming.py:207
↓ 2 callersFunctionsave_ply
(points, colors, filename)
da3_streaming/loop_utils/sim3utils.py:454
↓ 2 callersFunctionset_sky_regions_to_max_depth
Set sky regions to maximum depth and high confidence. Args: depth: Depth tensor depth_conf: Depth confidence tensor
src/depth_anything_3/utils/alignment.py:136
↓ 2 callersFunctionstart_server
Start the backend server.
src/depth_anything_3/services/backend.py:1371
↓ 2 callersMethodtransform_frame
frame: (H,W,D) -> (H,W,3)
src/depth_anything_3/utils/pca_utils.py:254
↓ 2 callersFunctiontransform_points_sim3
Sim(3) transform point cloud points: (N, 3) rot: (3, 3) trans: (3,) or (1, 3) scale: float inverse: Whether to do inverse tra
src/depth_anything_3/utils/pose_align.py:264
↓ 2 callersFunctiontranspose_last_two_axes
for np < 2
src/depth_anything_3/utils/geometry.py:62
← previousnext →101–200 of 731, ranked by callers