MCPcopy Create free account

hub / github.com/TencentARC/Track4World / functions

Functions1,309 in github.com/TencentARC/Track4World

↓ 92 callersMethodinfo
(self, *args, **kwargs)
track4world/nets/external/depth_anything_3/utils/logger.py:67
↓ 68 callersMethodmean
(self, min_size=None)
track4world/utils/misc.py:34
↓ 58 callersMethodget
(self, name)
track4world/nets/external/depth_anything_3/utils/registry.py:32
↓ 37 callersMethodupdate
(self, items)
track4world/utils/misc.py:89
↓ 29 callersMethodunpad
Crops the padded tensor back to original dimensions.
track4world/nets/blocks.py:61
↓ 27 callersFunctionconv1x1
1x1 convolution without padding
track4world/nets/blocks.py:223
↓ 24 callersMethoddtype
(self)
track4world/nets/model.py:766
↓ 19 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
track4world/nets/blocks.py:574
↓ 19 callersMethodlog
(self, level_str, *args, **kwargs)
track4world/nets/external/depth_anything_3/utils/logger.py:41
↓ 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
track4world/nets/external/depth_anything_3/utils/read_write_model.py:84
↓ 15 callersMethodpad
Pads a list of input tensors.
track4world/nets/blocks.py:57
↓ 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).
track4world/nets/external/depth_anything_3/utils/pose_align.py:158
↓ 13 callersMethoderror
(self, *args, **kwargs)
track4world/nets/external/depth_anything_3/utils/logger.py:61
↓ 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.
track4world/nets/external/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,
track4world/nets/external/depth_anything_3/model/dpt.py:342
↓ 12 callersMethodload_state_dict
(self, state_dict, strict=True)
track4world/nets/external/pi3x/models/layers/prope.py:105
↓ 10 callersFunctionaffine_inverse
(A: torch.Tensor)
track4world/nets/external/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
track4world/nets/external/depth_anything_3/utils/memory.py:42
↓ 10 callersMethodget
(self, name)
track4world/nets/external/depth_anything_3/bench/registries.py:67
↓ 9 callersMethodall
(self)
track4world/nets/external/depth_anything_3/utils/registry.py:35
↓ 9 callersFunctionas_homogeneous
Accept (..., 3,4) or (..., 4,4) extrinsics, return (...,4,4) homogeneous matrix. Supports torch.Tensor or np.ndarray.
track4world/nets/external/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
track4world/nets/external/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 -
track4world/nets/external/depth_anything_3/bench/evaluator.py:204
↓ 8 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
track4world/nets/dinov2/hub/backbones.py:18
↓ 8 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
track4world/nets/external/pi3x/models/dinov2/hub/backbones.py:18
↓ 8 callersFunction_rope_precompute_coeffs
Precompute RoPE coefficients.
track4world/nets/external/pi3x/models/layers/prope.py:353
↓ 8 callersMethoddevice
(self)
track4world/nets/model.py:762
↓ 8 callersMethodhandle_export_dir
Handle export directory
track4world/nets/external/depth_anything_3/services/input_handlers.py:41
↓ 8 callersMethodprocess
Process single image
track4world/nets/external/depth_anything_3/services/input_handlers.py:70
↓ 8 callersFunctionrun_inference
Unified inference interface
track4world/nets/external/depth_anything_3/services/inference_service.py:179
↓ 8 callersMethodwarn
(self, *args, **kwargs)
track4world/nets/external/depth_anything_3/utils/logger.py:64
↓ 7 callersFunctionaffine_inverse_np
(A: np.ndarray)
track4world/nets/external/depth_anything_3/utils/geometry.py:74
↓ 7 callersMethodempty
(self)
track4world/utils/misc.py:82
↓ 7 callersFunctionfn
(uv: np.ndarray, xy: np.ndarray, z: np.ndarray, shift: np.ndarray)
track4world/utils/geometry_numpy.py:254
↓ 7 callersFunctionnormalized_view_plane_uv
Generate normalized UV coordinates on the camera view plane. Coordinates range: - Top-left: (-width / diagonal, -height / diagonal)
track4world/utils/geometry_torch.py:83
↓ 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
track4world/nets/external/depth_anything_3/bench/utils.py:256
↓ 7 callersFunctionstrip_ansi
Remove ANSI escape sequences from string for length calculation.
track4world/nets/external/depth_anything_3/bench/print_metrics.py:55
↓ 6 callersFunction_wait_for_file_ready
Wait until file size stabilizes for 2 consecutive checks.
track4world/nets/external/depth_anything_3/bench/dataset.py:35
↓ 6 callersFunction_wrap_cfg
(cfg_obj)
track4world/nets/external/depth_anything_3/model/da3.py:36
↓ 6 callersFunctiondraw_text_on_vis
Generic function to draw text on a tensor image.
track4world/utils/improc.py:318
↓ 6 callersMethodvalidate_path
Validate path
track4world/nets/external/depth_anything_3/services/input_handlers.py:34
↓ 5 callersFunction_lift_K
Lift 3x3 matrices to homogeneous 4x4 matrices.
track4world/nets/external/pi3x/models/layers/prope.py:440
↓ 5 callersFunctionback2color
Converts [-0.5, 0.5] float to [0, 255] uint8.
track4world/utils/improc.py:166
↓ 5 callersMethoddecode
(self, hidden, N, H, W)
track4world/nets/external/pi3x/models/pi3.py:132
↓ 5 callersMethodencode
( self, imgs, with_prior=True, depths=None, rays=None, intri
track4world/nets/external/pi3x/models/pi3x.py:307
↓ 5 callersMethodforward_window_unified
Unified iterative flow update (RAFT-style). Handles both 2D and 3D flow updates using correlation volumes and recurrent units.
track4world/nets/model.py:1733
↓ 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,
track4world/nets/external/depth_anything_3/utils/memory.py:16
↓ 5 callersFunctionindex_i_gs_attr
(full_attr, idx)
track4world/nets/external/depth_anything_3/model/utils/gs_renderer.py:97
↓ 5 callersMethodinference
Run inference on input images. Args: image: List of input images (numpy arrays, PIL Images, or file paths) e
track4world/nets/external/depth_anything_3/api.py:212
↓ 5 callersFunctionload_model
Initializes the Track4World model and loads pretrained weights.
demo.py:246
↓ 5 callersFunctionpad
(x)
evaluation/track/tapvid3d_metrics.py:70
↓ 5 callersFunctionparse_export_feat
Parse export_feat parameter
track4world/nets/external/depth_anything_3/services/input_handlers.py:255
↓ 5 callersFunctiontrim_select_reshape
(element)
track4world/nets/external/depth_anything_3/utils/gsply_helpers.py:156
↓ 4 callersMethod__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
track4world/nets/external/pi3x/models/layers/block.py:40
↓ 4 callersMethod_add_pos_embed
Simple UV position encoding directly added to feature map.
track4world/nets/external/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 /
track4world/nets/external/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 /
track4world/nets/external/depth_anything_3/model/dualdpt.py:341
↓ 4 callersFunction_estimate_sim3_closed_form
Closed-form Sim(3) estimation via SVD, aligning A to B. Returns: s, R, t
evaluation/track/track_eval_utill.py:139
↓ 4 callersMethod_export_dir
Get export directory path. Structure: .../model_results/{data}/{scene}/{posed|unposed}
track4world/nets/external/depth_anything_3/bench/evaluator.py:478
↓ 4 callersFunction_invert_SE3
Invert a 4x4 SE(3) matrix.
track4world/nets/external/pi3x/models/layers/prope.py:429
↓ 4 callersMethod_make_layer
(self, dim, stride=1)
track4world/nets/blocks.py:838
↓ 4 callersFunction_umeyama_sim3_from_paths
(pose_ref, pose_est)
track4world/nets/external/depth_anything_3/utils/pose_align.py:84
↓ 4 callersFunctionalign
Solves the alignment problem: find 'a' that minimizes weighted L1 distance. If trunc is provided, it solves a Robust L1 problem using an exha
track4world/utils/alignment.py:99
↓ 4 callersFunctionalign_points_scale_xyz_shift
Align `points_src` to `points_tgt` with an isotropic scale and a 3D shift. The algorithm uses an 'anchor' strategy: 1. Centering the
track4world/utils/alignment.py:396
↓ 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
track4world/nets/external/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
track4world/nets/external/depth_anything_3/bench/utils.py:173
↓ 4 callersFunctioncustom_interpolate
Safe interpolation implementation to avoid INT_MAX overflow in torch.nn.functional.interpolate.
track4world/nets/external/depth_anything_3/model/utils/head_utils.py:205
↓ 4 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
track4world/nets/external/pi3x/models/layers/block.py:114
↓ 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
track4world/nets/external/depth_anything_3/utils/ray_utils.py:112
↓ 4 callersMethodforward_sliding
Sliding window inference for longer sequences. Optionally uses cached features (eval_dict) to speed up evaluation.
track4world/nets/model.py:1445
↓ 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 [
track4world/nets/external/depth_anything_3/bench/utils.py:202
↓ 4 callersFunctiongrab
(x)
evaluation/track/tapvid3d_metrics.py:58
↓ 4 callersFunctionhomogenize_points
Convert batched points (xyz) to (xyz1).
track4world/nets/external/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).
track4world/nets/external/depth_anything_3/cfg.py:31
↓ 4 callersFunctionmake_K
(w, h, fx=1200.0, fy=1100.0)
track4world/nets/external/depth_anything_3/utils/io/input_processor.py:431
↓ 4 callersFunctionmask_aware_nearest_resize
Resize 2D map by nearest interpolation. Return the nearest neighbor index and mask of the resized map. ### Parameters - `inputs`: a
track4world/utils/geometry_torch.py:490
↓ 4 callersFunctionnn_correspondance
Compute nearest neighbor distances from verts2 to verts1 using KDTree. Args: verts1: Reference point cloud [N, 3] verts2: Qu
track4world/nets/external/depth_anything_3/bench/utils.py:72
↓ 4 callersMethodpairwise_concat
Converts a time-series feature [B, T, C, H, W] to [B*(T-1), 2, C, H, W] by stacking adjacent frames (t, t+1).
track4world/nets/model.py:1261
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
track4world/nets/dinov2/models/vision_transformer.py:214
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
track4world/nets/external/pi3x/models/dinov2/models/vision_transformer.py:215
↓ 4 callersMethodprint_metrics
Print evaluation metrics in a beautiful tabular format. Args: metrics: Metrics dictionary. If None, loads from saved JSO
track4world/nets/external/depth_anything_3/bench/evaluator.py:246
↓ 4 callersFunctionprocess_vector
(vector)
track4world/nets/external/depth_anything_3/utils/geometry.py:319
↓ 4 callersFunctionrecover_global_focal_shift
Estimate global focal (scalar) and shift (3D) per batch from video point maps. Args: points_all: Tensor (B, S, H, W, 3), point maps
track4world/utils/geometry_torch.py:338
↓ 4 callersFunctionsave_ply
Saves a mesh or point cloud to a .ply file using trimesh. Args: save_path: Destination path. vertices: (N, 3) array of verte
demo.py:65
↓ 4 callersFunctionscatter_min
Scatter the minimum value along the given dimension of `src` into a new tensor. Unlike standard scatter, this also recovers the original indi
track4world/utils/alignment.py:12
↓ 4 callersFunctionshow_result
( tag: str, tensor: torch.Tensor, Ks_in: Sequence[np.ndarray | None] | None = None,
track4world/nets/external/depth_anything_3/utils/io/input_processor.py:408
↓ 4 callersFunctionsplit_intrinsics
(K: np.ndarray)
track4world/utils/py.py:155
↓ 3 callersMethod_add_pos_embed
Simple UV positional embedding added to feature maps.
track4world/nets/external/depth_anything_3/model/dualdpt.py:313
↓ 3 callersFunction_as_homogeneous44
Accept (4,4) or (3,4) extrinsic parameters, return (4,4) homogeneous matrix.
track4world/nets/external/depth_anything_3/utils/export/glb.py:192
↓ 3 callersFunction_evaluate_model
Generic evaluation loop shared across datasets. Args: model: The model to evaluate. loader: The dataloader. batc
evaluation/flow/eval.py:381
↓ 3 callersFunction_gallery_url_join
Join URL parts safely.
track4world/nets/external/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
track4world/nets/external/depth_anything_3/bench/datasets/dtu.py:244
↓ 3 callersMethod_get_scenes
Get list of scenes to evaluate, optionally filtered.
track4world/nets/external/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
track4world/nets/external/depth_anything_3/bench/registries.py:35
↓ 3 callersFunction_pad_cumsum
Pads a cumsum tensor with a 0 at the start and repeats the last value.
track4world/utils/alignment.py:84
↓ 3 callersFunction_pad_inf
Pads a tensor with -inf at the start and +inf at the end.
track4world/utils/alignment.py:75
↓ 3 callersFunction_prepare_apply_fns
Prepare transforms for PRoPE-style positional encoding.
track4world/nets/external/pi3x/models/layers/prope.py:238
↓ 3 callersFunction_process_next_task
Process the next task in the queue.
track4world/nets/external/depth_anything_3/services/backend.py:172
↓ 3 callersFunction_run
(command)
track4world/nets/dinov2/utils/utils.py:49
↓ 3 callersFunction_run
(command)
track4world/nets/external/pi3x/models/dinov2/utils/utils.py:49
next →1–100 of 1,309, ranked by callers