MCPcopy Create free account

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

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

Functioncleanup_worker
()
src/depth_anything_3/services/backend.py:440
Methodclear_fields
Clears the 3D viewer, the stored target_dir, and empties the gallery.
src/depth_anything_3/app/modules/event_handlers.py:46
Functioncolmap
Run pose conditioned depth estimation on COLMAP data.
src/depth_anything_3/cli.py:471
Functioncompute_huber_weights_kernel
( residuals_ptr, weights_ptr, delta, n_points, BLOCK_SIZE: tl.constexpr, )
da3_streaming/loop_utils/alignment_triton.py:143
Methodcreate_control_section
Create the control section with buttons and options. Returns: Tuple of control components
src/depth_anything_3/app/modules/ui_components.py:308
Functioncreate_dataset
Create a dataset. Requires the file to contain a "create_dataset" function.
src/depth_anything_3/cfg.py:132
Methodcreate_depth_section
Create the depth visualization section. Returns: A tuple of (prev_depth_btn, depth_view_selector, next_depth_btn, depth_
src/depth_anything_3/app/modules/ui_components.py:111
Functioncreate_depth_visualization
Create a colored depth visualization. Args: depth: Depth array Returns: Colored depth visualization or None
src/depth_anything_3/app/modules/utils.py:30
Methodd_in
(self)
src/depth_anything_3/model/gs_adapter.py:189
Methodd_sh
(self)
src/depth_anything_3/model/gs_adapter.py:185
Functiondashboard
HTML dashboard for monitoring backend status and tasks.
src/depth_anything_3/services/backend.py:831
Methoddecorator
(cls)
src/depth_anything_3/utils/registry.py:25
Functiondelete_task
Delete a specific task.
src/depth_anything_3/services/backend.py:1285
Methoddo_GET
(self)
src/depth_anything_3/services/gallery.py:708
Methodeval3d
Evaluate fused point cloud against ScanNet++ ground truth mesh. Uses AABB cropping to only evaluate points within GT bounding box.
src/depth_anything_3/bench/datasets/scannetpp.py:251
Methodeval3d
Evaluate fused point cloud against DTU GT with ObsMask/Plane. Args: scene: Scene identifier fuse_path: Path
src/depth_anything_3/bench/datasets/dtu.py:145
Methodeval3d
Evaluate fused point cloud against 7Scenes ground truth mesh. Args: scene: Scene identifier fuse_path: Path
src/depth_anything_3/bench/datasets/sevenscenes.py:176
Methodeval3d
Evaluate fused point cloud against HiRoom ground truth point cloud. Args: scene: Scene identifier fuse_path:
src/depth_anything_3/bench/datasets/hiroom.py:179
Methodeval3d
Evaluate fused point cloud against ETH3D ground truth mesh. Args: scene: Scene identifier fuse_path: Path to
src/depth_anything_3/bench/datasets/eth3d.py:270
Methodeval3d
NOT SUPPORTED for DTU-64. DTU-64 is only for pose evaluation, not 3D reconstruction.
src/depth_anything_3/bench/datasets/dtu64.py:159
Methodextra_repr
(self)
src/depth_anything_3/model/dinov2/layers/layer_scale.py:30
Methodextract_xyz
(pose_tensor)
da3_streaming/da3_streaming.py:486
Methodf
(*args, **kwargs)
src/depth_anything_3/model/dinov2/vision_transformer.py:187
Methodffn_residual_func
(x: Tensor)
src/depth_anything_3/model/utils/block.py:75
Methodffn_residual_func
(x: Tensor)
src/depth_anything_3/model/dinov2/layers/block.py:81
Methodflops
(self)
src/depth_anything_3/model/dinov2/layers/patch_embed.py:87
Methodfmt_val
Format value or return N/A.
src/depth_anything_3/bench/print_metrics.py:386
Functionfn_kv_csv
Parse a string of comma-separated triplets: fn:key:value Returns: dict[fn_name] -> dict[key] = parsed_value Example: "f
src/depth_anything_3/utils/api_helpers.py:25
Methodforward
(self, x)
da3_streaming/loop_utils/loop_detector.py:68
Methodforward
Args: feats: List of 4 entries, each entry is a tensor like [B, S, T, C] (or the 0th element of tuple/list is that tensor).
src/depth_anything_3/model/dpt.py:159
Methodforward
(self, x: torch.Tensor)
src/depth_anything_3/model/dpt.py:393
Methodforward
xs: - xs[0]: Top branch input - xs[1]: Lateral input (can do residual addition with top branch)
src/depth_anything_3/model/dpt.py:436
Methodforward
Args: aggregated_tokens_list: List of 4 tensors [B, S, T, C] from transformer. images: [B, S, 3, H, W]
src/depth_anything_3/model/dualdpt.py:156
Methodforward
( self, ext, ixt, image_size, )
src/depth_anything_3/model/cam_enc.py:64
Methodforward
Forward pass through the network. Args: x: Input images (B, N, 3, H, W) extrinsics: Camera extrinsics (B, N,
src/depth_anything_3/model/da3.py:100
Methodforward
Forward pass through both branches with metric scaling alignment. Args: x: Input images (B, N, 3, H, W) extr
src/depth_anything_3/model/da3.py:336
Methodforward
( self, extrinsics: torch.Tensor, # "*#batch 4 4" intrinsics: torch.Tensor, # "*#bat
src/depth_anything_3/model/gs_adapter.py:58
Methodforward
(self, feat, camera_encoding=None, *args, **kwargs)
src/depth_anything_3/model/cam_dec.py:33
Methodforward
(self, x: Tensor, pos=None, attn_mask=None)
src/depth_anything_3/model/utils/block.py:71
Methodforward
(self, x: Tensor, pos=None, attn_mask=None)
src/depth_anything_3/model/utils/attention.py:49
Methodforward
(self, x: Tensor)
src/depth_anything_3/model/utils/attention.py:81
Methodforward
(self, x: Tensor)
src/depth_anything_3/model/utils/attention.py:103
Methodforward
(self, x: torch.Tensor)
src/depth_anything_3/model/utils/head_utils.py:92
Methodforward
(self, x, **kwargs)
src/depth_anything_3/model/dinov2/dinov2.py:59
Methodforward
(self, x)
src/depth_anything_3/model/dinov2/vision_transformer.py:77
Methodforward
Applies 2D rotary position embeddings to input tokens. Args: tokens: Input tensor of shape (batch_size, n_heads, n_tokens, dim).
src/depth_anything_3/model/dinov2/layers/rope.py:158
Methodforward
(self, x)
src/depth_anything_3/model/dinov2/layers/drop_path.py:34
Methodforward
(self, x: Tensor, pos=None, attn_mask=None)
src/depth_anything_3/model/dinov2/layers/block.py:77
Methodforward
(self, x: Tensor)
src/depth_anything_3/model/dinov2/layers/layer_scale.py:27
Methodforward
(self, x: Tensor, pos=None, attn_mask=None)
src/depth_anything_3/model/dinov2/layers/attention.py:47
Methodforward
(self, x: Tensor)
src/depth_anything_3/model/dinov2/layers/mlp.py:34
Methodforward
(self, x: Tensor)
src/depth_anything_3/model/dinov2/layers/swiglu_ffn.py:28
Methodforward
(self, x: Tensor)
src/depth_anything_3/model/dinov2/layers/patch_embed.py:68
Methodfuse3d
Fuse per-view depths into a point cloud using TSDF fusion. Args: scene: Scene identifier result_path: Path t
src/depth_anything_3/bench/datasets/scannetpp.py:348
Methodfuse3d
Fuse per-view depths into a point cloud and save to PLY. Args: scene: Scene identifier (e.g., "scan114") res
src/depth_anything_3/bench/datasets/dtu.py:187
Methodfuse3d
Fuse per-view depths into a point cloud using TSDF fusion. Args: scene: Scene identifier result_path: Path t
src/depth_anything_3/bench/datasets/sevenscenes.py:239
Methodfuse3d
Fuse per-view depths into a point cloud using TSDF fusion. Args: scene: Scene identifier result_path: Path t
src/depth_anything_3/bench/datasets/hiroom.py:224
Methodfuse3d
Fuse per-view depths into a point cloud using TSDF fusion. Pipeline: 1. Load original images (keep original size) 2.
src/depth_anything_3/bench/datasets/eth3d.py:327
Methodfuse3d
NOT SUPPORTED for DTU-64. DTU-64 is only for pose evaluation, not 3D reconstruction.
src/depth_anything_3/bench/datasets/dtu64.py:171
Functiongallery
Launch Depth Anything 3 Gallery server
src/depth_anything_3/cli.py:766
Functiongallery_files
Serve gallery static files (GLB, JPG, etc.).
src/depth_anything_3/services/backend.py:1348
Functiongallery_group_manifest
Get manifest for a specific group.
src/depth_anything_3/services/backend.py:1336
Functiongallery_home
Gallery home page.
src/depth_anything_3/services/backend.py:1321
Functiongallery_manifest
Get gallery group list.
src/depth_anything_3/services/backend.py:1326
Functionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
src/depth_anything_3/model/dinov2/vision_transformer.py:40
Methodget_3dgtpath
Get path to ground truth point cloud for a scene.
src/depth_anything_3/bench/datasets/dtu.py:140
Functionget_branges_scales
(x, sample_drop_ratio=0.0)
src/depth_anything_3/model/dinov2/layers/block.py:138
Methodget_data
Collect per-view image paths, intrinsics/extrinsics for a scene. Args: scene: Scene identifier (e.g., "scan105")
src/depth_anything_3/bench/datasets/dtu64.py:99
Functionget_gpu_memory
Get detailed GPU memory information.
src/depth_anything_3/services/backend.py:1235
Methodget_metric
Get metric value or None.
src/depth_anything_3/bench/print_metrics.py:392
Methodget_pose_metric
Get pose metric with fallback for different naming conventions.
src/depth_anything_3/bench/print_metrics.py:416
Functionget_status
Get backend status with GPU memory information.
src/depth_anything_3/services/backend.py:1156
Functionget_task_status
Get task status by task ID.
src/depth_anything_3/services/backend.py:1227
Methodget_theme
()
src/depth_anything_3/app/gradio_app.py:167
Functiongradio
Launch Depth Anything 3 Gradio interactive web application
src/depth_anything_3/cli.py:686
Methodhandle_uploads
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/event_handlers.py:329
Functionhcat
Shorthand for a horizontal linear concatenation.
src/depth_anything_3/utils/layout_helpers.py:160
Functionimage
Run camera pose and depth estimation on a single image.
src/depth_anything_3/cli.py:316
Functionimages
Run camera pose and depth estimation on a directory of images.
src/depth_anything_3/cli.py:392
Methodlist_directory
(self, path)
src/depth_anything_3/services/gallery.py:754
Functionlist_tasks
List all tasks.
src/depth_anything_3/services/backend.py:1259
Methodload_and_update_measure
(name)
src/depth_anything_3/app/gradio_app.py:555
Methodload_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/event_handlers.py:350
Methodload_image
Load and preprocess image with undistortion and cropping. Args: img_path: Path to image file idx: Index of t
src/depth_anything_3/bench/datasets/scannetpp.py:209
Functionload_pretrained_nested_weights
Load pretrained weights for a nested model with both main and metric branches. Args: model: Nested model instance main_model
src/depth_anything_3/utils/model_loading.py:116
Functionload_pretrained_weights
Load pretrained weights for a single model. Args: model: Model instance to load weights into model_path: Path to the pretrai
src/depth_anything_3/utils/model_loading.py:90
Functionmake_pypose_Sim3
(rot, t, s)
da3_streaming/loop_utils/loop_refinement.py:26
Functionmanual_cleanup
Manually trigger task cleanup.
src/depth_anything_3/services/backend.py:1276
Methodmeasure
Handle measurement on images. Args: processed_data: Processed data dictionary measure_points: List of curren
src/depth_anything_3/app/modules/event_handlers.py:521
Methodmeasure
Handle measurement on images. Args: processed_data: Processed data dictionary measure_points: List of curren
src/depth_anything_3/app/modules/visualization.py:259
Functionnamed_apply
( fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False )
src/depth_anything_3/model/dinov2/vision_transformer.py:61
Methodnavigate_depth_view
Navigate depth view. Args: processed_data: Processed data dictionary current_selector: Current selector valu
src/depth_anything_3/app/modules/event_handlers.py:449
Methodnavigate_depth_view
Navigate depth view (direction: -1 for previous, +1 for next). Args: processed_data: Processed data dictionary
src/depth_anything_3/app/modules/visualization.py:101
Methodnavigate_measure_view
Navigate measure view (direction: -1 for previous, +1 for next). Args: processed_data: Processed data dictionary
src/depth_anything_3/app/modules/visualization.py:183
Methodnearest_multiple
(x: int, p: int)
src/depth_anything_3/utils/io/input_processor.py:371
Functionpca_to_rgb_4d_bf16_percentile
Reduce numpy array of shape (49, 27, 36, 3072) to 3D via PCA and visualize as (49, 27, 36, 3). - PCA uses torch.pca_lowrank (randomized SVD),
src/depth_anything_3/utils/pca_utils.py:27
Functionpose_refinement
(pred_poses, loop_poses, loop_ii, loop_jj)
da3_streaming/loop_utils/loop_refinement.py:259
Methodprocess
Process image directory
src/depth_anything_3/services/input_handlers.py:80
Methodprocess
Process COLMAP data
src/depth_anything_3/services/input_handlers.py:110
Methodprocess
Process video, extract frames
src/depth_anything_3/services/input_handlers.py:191
← previousnext →601–700 of 731, ranked by callers