MCPcopy Create free account

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

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

↓ 1 callersFunctionget_logo_base64
Convert WAI logo to base64 for embedding in HTML. Returns: Base64 encoded logo string or None
src/depth_anything_3/app/modules/utils.py:191
↓ 1 callersMethodget_loop_list
(self)
da3_streaming/loop_utils/loop_detector.py:306
↓ 1 callersMethodget_loop_pairs
(self)
da3_streaming/da3_streaming.py:202
↓ 1 callersMethodget_loop_sim3_from_loop_predict
(self, loop_predict_list)
da3_streaming/da3_streaming.py:366
↓ 1 callersMethodget_model
Get model, loading if necessary.
src/depth_anything_3/services/backend.py:135
↓ 1 callersFunctionget_params_for_ransac
(N, device)
src/depth_anything_3/utils/ray_utils.py:423
↓ 1 callersMethodget_scale_multiplier
( self, intrinsics: torch.Tensor, # "*#batch 3 3" pixel_size: torch.Tensor, # "*#bat
src/depth_anything_3/model/gs_adapter.py:171
↓ 1 callersFunctionget_style
(tag)
da3_streaming/loop_utils/logging_utils.py:24
↓ 1 callersFunctionget_world_rays
( coordinates: torch.Tensor, # "*#batch dim" extrinsics: torch.Tensor, # "*#batch dim+2 dim+2" i
src/depth_anything_3/utils/geometry.py:290
↓ 1 callersMethodgradio_demo
Perform reconstruction using the already-created target_dir/images. Args: target_dir: Directory containing images
src/depth_anything_3/app/modules/event_handlers.py:135
↓ 1 callersMethodhandle_uploads
Create a new 'target_dir' + 'images' subfolder, and place user-uploaded images or extracted frames from video into it. Args:
src/depth_anything_3/app/modules/file_handlers.py:41
↓ 1 callersMethodhas
(self, name)
src/depth_anything_3/bench/registries.py:75
↓ 1 callersFunctionhomogenize_vectors
Convert batched vectors (xyz) to (xyz0).
src/depth_anything_3/utils/geometry.py:246
↓ 1 callersFunctionhuber_loss
(r, delta)
da3_streaming/loop_utils/sim3utils.py:679
↓ 1 callersMethodinitialize_model
Initialize the DepthAnything3 model. Args: device: Device to load the model on
src/depth_anything_3/app/modules/model_inference.py:43
↓ 1 callersFunctioninterpolate_circular
( a: torch.Tensor, # "*#batch" b: torch.Tensor, # "*#batch" t: torch.Tensor, # "*#batch" )
src/depth_anything_3/utils/camera_trj_helpers.py:312
↓ 1 callersFunctioninterpolate_pivot_parameters
( initial: torch.Tensor, # "*#batch 5" final: torch.Tensor, # "*#batch 5" t: torch.Tensor, # "
src/depth_anything_3/utils/camera_trj_helpers.py:340
↓ 1 callersMethodinterpolate_pos_encoding
(self, x, w, h)
src/depth_anything_3/model/dinov2/vision_transformer.py:220
↓ 1 callersFunctionintersect_rays
Compute the least-squares intersection of rays. Uses the math from here: https://math.stackexchange.com/a/1762491/286022
src/depth_anything_3/utils/camera_trj_helpers.py:169
↓ 1 callersFunctioninverse_intrinsic_matrix
src/depth_anything_3/utils/geometry.py:355
↓ 1 callersFunctioninverse_sigmoid
(x)
src/depth_anything_3/utils/gsply_helpers.py:105
↓ 1 callersFunctionleast_squares_scale_scalar
Compute least squares scale factor s such that a ≈ s * b. Args: a: First tensor b: Second tensor eps: Small epsilon
src/depth_anything_3/utils/alignment.py:23
↓ 1 callersFunctionload_config
Loads config file. Args: path (str): path to config file. default_path (str, optional): whether to use default path. Default
da3_streaming/loop_utils/config_utils.py:20
↓ 1 callersMethodload_masks
Load DTU depth validity masks. Args: mask_files: List of paths to mask images Returns: Boolean arra
src/depth_anything_3/bench/datasets/dtu.py:170
↓ 1 callersMethodload_model
Load model
src/depth_anything_3/services/inference_service.py:36
↓ 1 callersFunctionmain
()
da3_streaming/npz_output_process.py:97
↓ 1 callersFunctionmain
()
da3_streaming/loop_utils/loop_detector.py:331
↓ 1 callersFunctionmain
()
src/depth_anything_3/utils/read_write_model.py:550
↓ 1 callersFunctionmain
Main entry point for gallery server.
src/depth_anything_3/services/gallery.py:799
↓ 1 callersFunctionmain
Main function to run the application.
src/depth_anything_3/app/gradio_app.py:604
↓ 1 callersFunctionmain
Command-line interface for metrics printing.
src/depth_anything_3/bench/print_metrics.py:567
↓ 1 callersFunctionmap_pdf_to_opacity
( pdf: torch.Tensor, # " *batch" global_step: int = 0, opacity_mapping: Optional[dict] = None, )
src/depth_anything_3/utils/geometry.py:333
↓ 1 callersFunctionmatrix_to_euler
( rotations: torch.Tensor, # "*batch 3 3" pattern: str, )
src/depth_anything_3/utils/camera_trj_helpers.py:235
↓ 1 callersFunctionmerge_ply_files
Merge all PLY files in a directory into one file (without loading into memory) Args: - input_dir: Input directory containing multiple '{
da3_streaming/loop_utils/sim3utils.py:546
↓ 1 callersFunctionnormalize
(a: torch.Tensor)
src/depth_anything_3/utils/camera_trj_helpers.py:201
↓ 1 callersFunctionnormalize_homogenous_points
Normalize the point vectors
src/depth_anything_3/utils/geometry.py:351
↓ 1 callersFunctionoverlay
( base: Tensor, # "channel base_height base_width" overlay: Tensor, # "channel overlay_height overla
src/depth_anything_3/utils/layout_helpers.py:87
↓ 1 callersFunctionparse_scalar
(s)
src/depth_anything_3/utils/api_helpers.py:4
↓ 1 callersFunctionperform_updates
Run the Levenberg Marquardt algorithm
da3_streaming/loop_utils/loop_refinement.py:214
↓ 1 callersFunctionpivot_parameters_to_extrinsics
( parameters: torch.Tensor, # "*#batch 5" pivot_coordinate_frame: torch.Tensor, # "*#batch 3 3"
src/depth_anything_3/utils/camera_trj_helpers.py:286
↓ 1 callersFunctionpixel_space_to_camera_space
Convert pixel space points to camera space points. Args: pixel_space_points (torch.Tensor): Pixel space points with shape (h, w, 2)
src/depth_anything_3/utils/geometry.py:359
↓ 1 callersMethodplot_loop_closure
( self, input_abs_poses, optimized_abs_poses, save_name="sim3_opt_result.png" )
da3_streaming/da3_streaming.py:483
↓ 1 callersMethodpopulate_visualization_tabs
Populate the depth and measure tabs with processed data. Args: processed_data: Processed data dictionary Return
src/depth_anything_3/app/modules/visualization.py:219
↓ 1 callersFunctionpose_encoding_to_extri_intri
Convert a pose encoding back to camera extrinsics and intrinsics.
src/depth_anything_3/model/utils/transform.py:41
↓ 1 callersFunctionprecompute_scale_chunks_with_depth
Args: chunk1_depth: (n1, h, w) chunk1_conf: (n1, h, w) chunk2_depth: (n2, h, w) chunk2_conf: (n2, h, w) m
da3_streaming/loop_utils/sim3utils.py:1143
↓ 1 callersMethodprepare_cls_token
(self, B, S)
src/depth_anything_3/model/dinov2/vision_transformer.py:256
↓ 1 callersMethodprepare_tokens_with_masks
(self, x, masks=None, cls_token=None, **kwargs)
src/depth_anything_3/model/dinov2/vision_transformer.py:261
↓ 1 callersMethodprint_comparison
Print comparison table for multiple evaluation runs. Args: metrics_list: List of metrics dictionaries labels
src/depth_anything_3/bench/print_metrics.py:141
↓ 1 callersMethodprocess_long_sequence
(self)
da3_streaming/da3_streaming.py:523
↓ 1 callersFunctionprocess_loop_list
Process loop_list and return chunk indices and frame ranges for each (idx1, idx2) pair. chunk_index: List of (begin_idx, end_idx) tuples.
da3_streaming/loop_utils/sim3utils.py:506
↓ 1 callersFunctionproject_to_so3_strict
(M: torch.Tensor)
src/depth_anything_3/utils/sh_helpers.py:27
↓ 1 callersMethodpypose_sim3_to_numpy
Convert pypose Sim3 to numpy s,R,t
da3_streaming/loop_utils/sim3loop.py:67
↓ 1 callersFunctionql_decomposition
(A)
src/depth_anything_3/utils/ray_utils.py:97
↓ 1 callersFunctionquat2rotmat
Convert quaternion (WXYZ order) to rotation matrix. Args: qvec: Quaternion as [w, x, y, z] Returns: 3x3 rotation matrix
src/depth_anything_3/bench/utils.py:40
↓ 1 callersFunctionqvec2rotmat
(qvec)
src/depth_anything_3/utils/read_write_model.py:508
↓ 1 callersFunctionransac_find_homography_weighted_fast_batch
Batch version of RANSAC weighted Homography estimation (supports batch). Input: src_pts: (B, N, 2) dst_pts: (B, N, 2)
src/depth_anything_3/utils/ray_utils.py:313
↓ 1 callersMethodread_cam_file
Read DTU camera file containing extrinsics and intrinsics. Args: filename: Path to camera text file Returns:
src/depth_anything_3/bench/datasets/dtu.py:77
↓ 1 callersMethodread_cam_file
Read DTU camera file containing extrinsics and intrinsics. Args: filename: Path to camera text file Returns:
src/depth_anything_3/bench/datasets/dtu64.py:77
↓ 1 callersFunctionread_camera_poses
(pose_file)
da3_streaming/npz_output_process.py:10
↓ 1 callersFunctionread_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:130
↓ 1 callersFunctionread_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:100
↓ 1 callersFunctionread_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:239
↓ 1 callersFunctionread_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:199
↓ 1 callersFunctionread_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:378
↓ 1 callersFunctionread_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:346
↓ 1 callersFunctionremove_duplicates
data_list: [(67, (3386, 3406), 48, (2435, 2455)), ...]
da3_streaming/da3_streaming.py:112
↓ 1 callersFunctionrender_3dgs
( extrinsics: torch.Tensor, # "batch_views 4 4", w2c intrinsics: torch.Tensor, # "batch_views 3 3",
src/depth_anything_3/model/utils/gs_renderer.py:44
↓ 1 callersFunctionrender_dolly_zoom_path
( cam2world: torch.Tensor, intrinsic: torch.Tensor, h: int, w: int, num_frames: int = 120,
src/depth_anything_3/utils/camera_trj_helpers.py:133
↓ 1 callersFunctionrender_stabilization_path
Rendering stabilized camera path. poses: [batch, 4, 4] or [batch, 3, 4], return: smooth path: [batch 4 4]
src/depth_anything_3/utils/camera_trj_helpers.py:32
↓ 1 callersFunctionrender_wander_path
( cam2world: torch.Tensor, intrinsic: torch.Tensor, h: int, w: int, num_frames: int = 120,
src/depth_anything_3/utils/camera_trj_helpers.py:109
↓ 1 callersFunctionrender_wobble_inter_path
cam2world: [batch, 4, 4], intr_normed: [batch, 3, 3]
src/depth_anything_3/utils/camera_trj_helpers.py:427
↓ 1 callersFunctionresolve_recursive
( config: Any, resolver: Callable[[Union[DictConfig, ListConfig]], Union[DictConfig, ListConfig]], )
src/depth_anything_3/cfg.py:56
↓ 1 callersFunctionrestore_original_order
Restore original view order after processing. Args: x: Reordered tensor of shape (B, S, ...) b_idx: Original reference v
src/depth_anything_3/model/reference_view_selector.py:168
↓ 1 callersFunctionrobust_weighted_estimate_sim3
src: (Nx3) tgt: (Nx3) init_weights: (N,)
da3_streaming/loop_utils/sim3utils.py:684
↓ 1 callersFunctionrobust_weighted_estimate_sim3_numba
( src, tgt, init_weights, delta=0.1, max_iters=20, tol=1e-9, align_method="sim3" )
da3_streaming/loop_utils/sim3utils.py:868
↓ 1 callersFunctionrotate_sh
( sh_coefficients: torch.Tensor, # "*#batch n" rotations: torch.Tensor, # "*#batch 3 3" )
src/depth_anything_3/utils/sh_helpers.py:56
↓ 1 callersFunctionrotation_angle
Calculate rotation angle error between ground truth and predicted rotations. Args: rot_gt: Ground truth rotation matrices ro
src/depth_anything_3/bench/utils.py:348
↓ 1 callersMethodrun
Run complete loop detection pipeline
da3_streaming/loop_utils/loop_detector.py:309
↓ 1 callersMethodrun_backend_inference
Run backend inference
src/depth_anything_3/services/inference_service.py:99
↓ 1 callersMethodrun_inference
Run DepthAnything3 model inference on images. Args: target_dir: Directory containing images filter_black_bg:
src/depth_anything_3/app/modules/model_inference.py:62
↓ 1 callersMethodrun_local_inference
Run local inference
src/depth_anything_3/services/inference_service.py:43
↓ 1 callersFunctionrun_renderer_in_chunk_w_trj_mode
( gaussians: Gaussians, extrinsics: torch.Tensor, # world2cam, "batch view 4 4" | "batch view 3 4"
src/depth_anything_3/model/utils/gs_renderer.py:156
↓ 1 callersFunctionsample_image_grid
Get normalized (range 0 to 1) coordinates and integer indices for an image.
src/depth_anything_3/utils/geometry.py:218
↓ 1 callersFunctionsample_tensor_for_quantile
Sample tensor elements for quantile computation to reduce memory usage. Args: tensor: Input tensor to sample max_samples: Ma
src/depth_anything_3/utils/alignment.py:100
↓ 1 callersMethodsave_camera_poses
Save camera poses from all chunks to txt and ply files - txt file: Each line contains a 4x4 C2W matrix flattened into 16 numbers
da3_streaming/da3_streaming.py:714
↓ 1 callersFunctionsave_gaussian_ply
( gaussians: Gaussians, save_path: str, ctx_depth: torch.Tensor, # depth of input views; for gett
src/depth_anything_3/utils/gsply_helpers.py:109
↓ 1 callersMethodsave_results
Save loop detection results to file
da3_streaming/loop_utils/loop_detector.py:279
↓ 1 callersFunctionsave_to_gallery_func
Save the current reconstruction results to the gallery directory. Args: target_dir: Source directory containing reconstruction resul
src/depth_anything_3/app/modules/utils.py:64
↓ 1 callersFunctionse3_to_relative_pose_error
Compute rotation and translation errors between predicted and ground truth poses. Args: pred_se3: Predicted SE(3) transformations
src/depth_anything_3/bench/utils.py:458
↓ 1 callersFunctionselect_reference_view
Select a reference view from multiple views using the specified strategy. Args: x: Input tensor of shape (B, S, N, C) where
src/depth_anything_3/model/reference_view_selector.py:29
↓ 1 callersFunctionset_sky_depth
(prediction: Prediction, sky_mask: np.ndarray, sky_depth_def: float = 98.0)
src/depth_anything_3/utils/export/glb.py:27
↓ 1 callersFunctionsolve_sparse
Solve linear system A * delta = b, supports submatrix solving
da3_streaming/fastloop/solve_python.py:23
↓ 1 callersFunctionsolve_system_py
( J_Ginv_i: torch.Tensor, J_Ginv_j: torch.Tensor, ii: torch.Tensor, jj: torch.Tensor, res:
da3_streaming/fastloop/solve_python.py:36
↓ 1 callersFunctionstandardize_quaternion
Convert a unit quaternion to a standard form: one in which the real part is non negative. Args: quaternions: Quaternions with re
src/depth_anything_3/utils/geometry.py:203
↓ 1 callersFunctionstandardize_quaternion
Convert a unit quaternion to a standard form: one in which the real part is non negative. Args: quaternions: Quaternions with re
src/depth_anything_3/model/utils/transform.py:169
↓ 1 callersFunctiontransform_cam2world
Transform points from 3D camera coordinates to 3D world coordinates.
src/depth_anything_3/utils/geometry.py:263
↓ 1 callersFunctiontransform_rigid
Apply a rigid-body transformation to points or vectors.
src/depth_anything_3/utils/geometry.py:251
↓ 1 callersMethodtransform_video
frames: (T,H,W,D) or list of (H,W,D) returns: (T,H,W,3)
src/depth_anything_3/utils/pca_utils.py:269
↓ 1 callersFunctiontranslation_angle
Calculate translation angle error between ground truth and predicted translations. Args: tvec_gt: Ground truth translation vectors
src/depth_anything_3/bench/utils.py:377
↓ 1 callersFunctionunproject
Unproject 2D camera coordinates with the given Z values.
src/depth_anything_3/utils/geometry.py:271
← previousnext →401–500 of 731, ranked by callers