MCPcopy Create free account

hub / github.com/TencentARC/Track4World / functions

Functions1,309 in github.com/TencentARC/Track4World

↓ 2 callersFunctionexport_to_depth_vis
( prediction: Prediction, export_dir: str, )
track4world/nets/external/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
track4world/nets/external/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
track4world/nets/external/depth_anything_3/utils/export/gs.py:61
↓ 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.
track4world/nets/external/depth_anything_3/utils/camera_trj_helpers.py:257
↓ 2 callersFunctionfade_color_saturation_batch
Batch process RGB arrays (N, 3) factor: 0.0 (grayscale) to 1.0 (original color)
visualization/vis_3d_efep_world.py:38
↓ 2 callersMethodfetch_time_embed
Retrieves or interpolates temporal position embeddings.
track4world/nets/model.py:1888
↓ 2 callersFunctionfill_trajectory_gaps
Linearly interpolate short missing segments in trajectories.
visualization/vis_3d_efep.py:156
↓ 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)
track4world/nets/external/depth_anything_3/utils/ray_utils.py:208
↓ 2 callersFunctionfmt_k_line
(K: np.ndarray | None)
track4world/nets/external/depth_anything_3/utils/io/input_processor.py:402
↓ 2 callersFunctionfocal_to_fov_numpy
Convert focal length (in pixels) to field-of-view (radians). Args: focal: focal length along x or y axis Returns: fov:
track4world/utils/geometry_numpy.py:123
↓ 2 callersMethodforward_point
Unified feature and geometry extraction interface. - for_flow: If False, only extract and return geometric outputs (Pure Point mode)
track4world/nets/model.py:841
↓ 2 callersFunctionget_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)
track4world/nets/external/pi3x/models/layers/pos_embed.py:51
↓ 2 callersMethodget_T_padded_images
Calculates necessary padding for time dimension to fit window size S.
track4world/nets/model.py:1911
↓ 2 callersFunctionget_action_args
(length: int, args: List, kwargs: Dict, i: int)
track4world/nets/external/depth_anything_3/utils/parallel_utils.py:89
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
track4world/nets/dinov2/layers/block.py:163
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
track4world/nets/external/pi3x/models/layers/block.py:161
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
track4world/nets/external/pi3x/models/dinov2/layers/block.py:163
↓ 2 callersMethodget_data
Get scene data including images, camera parameters, and auxiliary info. Args: scene: Scene identifier Returns:
track4world/nets/external/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
track4world/nets/external/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")
track4world/nets/external/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")
track4world/nets/external/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")
track4world/nets/external/depth_anything_3/bench/datasets/eth3d.py:178
↓ 2 callersFunctionget_feat_pca
Wrapper to perform PCA on features and normalize.
track4world/utils/improc.py:256
↓ 2 callersFunctionget_length
(args: List, kwargs: Dict)
track4world/nets/external/depth_anything_3/utils/parallel_utils.py:80
↓ 2 callersFunctionget_mem_T_ref
Constructs transform from Reference to Memory (Voxel) coordinates.
track4world/utils/py.py:222
↓ 2 callersFunctionget_pixel
(H, W)
track4world/nets/external/pi3x/utils/geometry.py:34
↓ 2 callersFunctionget_shared_args
Defines the superset of arguments required for both tasks.
evaluation/point_cloud/utils.py:318
↓ 2 callersMethodget_status
Get backend status information.
track4world/nets/external/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
track4world/nets/external/depth_anything_3/app/modules/visualization.py:59
↓ 2 callersFunctiongif_and_tile
Combines a sequence of images into a GIF (left) and Tiled view (right).
track4world/utils/improc.py:302
↓ 2 callersFunctionhomogenize_points
Convert batched points (xyz) to (xyz1).
track4world/nets/external/pi3x/utils/geometry.py:108
↓ 2 callersFunctionimport_item
Import a python item. Example: import_item("path.to.file", "MyClass") -> MyClass
track4world/nets/external/depth_anything_3/cfg.py:101
↓ 2 callersMethodinfer
Perform standard inference on a batch of video frames and output metric 3D geometry. Compared to the evaluation routine, this functi
track4world/nets/model.py:2225
↓ 2 callersMethodinfer
Run inference according to requested modes. - Unposed export if 'pose' or 'recon_unposed' is in modes - Posed export if 'rec
track4world/nets/external/depth_anything_3/bench/evaluator.py:144
↓ 2 callersMethodinfer_pair
Pairwise inference function designed for consecutive-frame processing. In contrast to the standard `infer` interface (which focuses
track4world/nets/model.py:2432
↓ 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
track4world/nets/external/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,
track4world/nets/external/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
track4world/nets/external/depth_anything_3/app/gradio_app.py:589
↓ 2 callersFunctionload_depth_kubric
Loads 16-bit PNG depth from Kubric dataset and converts to meters.
evaluation/point_cloud/utils.py:148
↓ 2 callersMethodload_example_scene
Load a scene from examples directory. Args: scene_name: Name of the scene to load examples_dir: Path to exam
track4world/nets/external/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:
track4world/nets/external/depth_anything_3/bench/print_metrics.py:536
↓ 2 callersMethodload_model
Load model if not already loaded.
track4world/nets/external/depth_anything_3/services/backend.py:109
↓ 2 callersMethodload_pretrained_with_remap
Load track4world checkpoint weights with key remapping for nested DA3. The original track4world_da3.pth stores DA3 backbone weights
track4world/nets/model.py:792
↓ 2 callersFunctionmake_2tuple
(x)
track4world/nets/dinov2/layers/patch_embed.py:16
↓ 2 callersFunctionmake_2tuple
(x)
track4world/nets/external/pi3x/models/dinov2/layers/patch_embed.py:16
↓ 2 callersFunctionmake_2tuple
(x)
track4world/nets/external/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
track4world/nets/external/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
track4world/nets/external/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
track4world/nets/external/depth_anything_3/model/utils/transform.py:100
↓ 2 callersFunctionmeshgrid2d
Returns 2D meshgrid (Y, X).
track4world/utils/py.py:281
↓ 2 callersMethodnavigate_measure_view
Navigate measure view. Args: processed_data: Processed data dictionary current_selector: Current selector va
track4world/nets/external/depth_anything_3/app/modules/event_handlers.py:485
↓ 2 callersFunctionnormalized_view_plane_uv
UV with left-top corner as (-width / diagonal, -height / diagonal) and right-bottom corner as (width / diagonal, height / diagonal)
track4world/nets/external/pi3x/models/layers/conv_head.py:11
↓ 2 callersFunctionnormalized_view_plane_uv_numpy
Generate normalized UV coordinates on the camera view plane. The coordinates are in a normalized range based on the image diagonal: - To
track4world/utils/geometry_numpy.py:74
↓ 2 callersFunctiononed2inferno
Converts a 1-channel tensor to a 3-channel heatmap (Inferno) or grayscale. Input: (B, 1, H, W) or (B, H, W) Output: (B, 3, H, W) uint8 te
track4world/utils/improc.py:101
↓ 2 callersFunctionparallel_execution
( *args, action: Callable, num_processes=32, print_progress=False, sequential=False, a
track4world/nets/external/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
track4world/nets/external/depth_anything_3/model/utils/head_utils.py:96
↓ 2 callersFunctionpreprocess_color
Converts [0, 255] uint8/float to [-0.5, 0.5] float.
track4world/utils/improc.py:159
↓ 2 callersMethodprint_results
Print evaluation metrics in a beautiful tabular format. Args: metrics: Dictionary mapping "dataset_mode" to metric resul
track4world/nets/external/depth_anything_3/bench/print_metrics.py:117
↓ 2 callersMethodprocess_attention
(self, x, block, attn_type="global", pos=None, attn_mask=None)
track4world/nets/external/depth_anything_3/model/dinov2/vision_transformer.py:351
↓ 2 callersFunctionprocess_trajectories
Filter unstable 3D trajectories based on visibility continuity, motion jumps, and smoothness constraints, and optionally prepare them for smo
visualization/vis_3d_efep.py:87
↓ 2 callersFunctionquat_to_mat
Quaternion Order: XYZW or say ijkr, scalar-last Convert rotations given as quaternions to rotation matrices. Args: quaternions:
track4world/nets/external/depth_anything_3/model/utils/transform.py:68
↓ 2 callersMethodqvec2rotmat
(self)
track4world/nets/external/depth_anything_3/utils/read_write_model.py:51
↓ 2 callersFunctionrecover_focal_shift
Recover the depth map and FoV from a point map with unknown z shift and focal. Note that it assumes: - the optical center is at the cent
track4world/utils/geometry_torch.py:239
↓ 2 callersFunctionremove_std_outlier_open3d
Removes outliers using Open3D (CPU implementation).
visualization/vis_3d_efep.py:219
↓ 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
track4world/nets/external/depth_anything_3/model/reference_view_selector.py:115
↓ 2 callersFunctionrotate_target_dim_to_last_axis
(x, target_dim=3)
track4world/nets/external/pi3x/utils/basic.py:301
↓ 2 callersFunctionrun_evaluation_pipeline
Generic pipeline for running inference and evaluation. Args: args: Parsed arguments. task_config (dict): Configuration s
evaluation/point_cloud/utils.py:372
↓ 2 callersFunctionrun_suite
(suite_name: str, sizes: list[tuple[int, int]])
track4world/nets/external/depth_anything_3/utils/io/input_processor.py:436
↓ 2 callersFunctionse3_inverse
Computes the inverse of a batch of SE(3) matrices.
track4world/nets/external/pi3x/utils/geometry.py:5
↓ 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
track4world/nets/external/depth_anything_3/utils/alignment.py:136
↓ 2 callersFunctionsmooth_trajectories_temporal
Smooth trajectories in the temporal dimension using Gaussian filtering for extremely high smoothness. Args: trajs: (T, N, 3) Tra
visualization/vis_3d_efep.py:32
↓ 2 callersFunctionstart_server
Start the backend server.
track4world/nets/external/depth_anything_3/services/backend.py:1371
↓ 2 callersMethodsumm_rgbs
Summarizes a list of images as a GIF/Tile.
track4world/utils/improc.py:402
↓ 2 callersFunctiontest_kubric
(model: torch.nn.Module, args: argparse.Namespace)
evaluation/flow/eval.py:595
↓ 2 callersMethodtransform_frame
frame: (H,W,D) -> (H,W,3)
track4world/nets/external/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
track4world/nets/external/depth_anything_3/utils/pose_align.py:264
↓ 2 callersFunctiontranspose_last_two_axes
for np < 2
track4world/nets/external/depth_anything_3/utils/geometry.py:62
↓ 2 callersMethodupdate_depth_view
Update depth view for a specific view index. Args: processed_data: Processed data dictionary view_index: Ind
track4world/nets/external/depth_anything_3/app/modules/visualization.py:81
↓ 2 callersMethodupdate_measure_view
Update measure view for a specific view index. Args: processed_data: Processed data dictionary view_index: I
track4world/nets/external/depth_anything_3/app/modules/event_handlers.py:506
↓ 2 callersFunctionupdate_scene_state
( t_curr: int, t_prev: int, history_pos: List[np.ndarray], history_col: Lis
visualization/vis_3d_efep_world.py:556
↓ 2 callersFunctionupdate_trajectories
(t_curr: int, t_prev: int, show_lines: bool, line_width: float)
visualization/vis_3d_efep.py:436
↓ 2 callersFunctionupdate_trajectories
Updates the trajectory lines based on current timestep.
visualization/vis_3d_ff.py:193
↓ 2 callersMethodupsample_data
Upsample low-resolution flow using learned convex mask. Standard RAFT upsampling.
track4world/nets/model.py:2005
↓ 2 callersFunctionweighted_mean_numpy
Compute weighted mean of a numpy array. Args: x: input array w: optional weights of the same shape as x axis: axis o
track4world/utils/geometry_numpy.py:11
↓ 2 callersFunctionwrap2pi
Wraps angle to [-pi, pi].
track4world/utils/py.py:115
↓ 1 callersMethod__init__
Initializes the position generator with an empty cache.
track4world/nets/layers/rope.py:39
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
track4world/nets/dinov2/layers/swiglu_ffn.py:15
↓ 1 callersMethod__init__
( self, num_features: int, dim_in: int, dim_out: List[int], dim_pro
track4world/nets/external/pi3x/models/layers/conv_head.py:63
↓ 1 callersMethod__init__
(self, dim=512)
track4world/nets/external/pi3x/models/layers/camera_head.py:33
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
track4world/nets/external/pi3x/models/dinov2/layers/swiglu_ffn.py:15
↓ 1 callersMethod__init__
Initialize DepthAnything3Net with given yaml-initialized configuration.
track4world/nets/external/depth_anything_3/model/da3.py:66
↓ 1 callersMethod__init__
Initializes the position generator with an empty cache.
track4world/nets/external/depth_anything_3/model/dinov2/layers/rope.py:34
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
track4world/nets/external/depth_anything_3/model/dinov2/layers/swiglu_ffn.py:13
↓ 1 callersFunction_add_cameras_to_scene
Draws camera frustums to visualize their position and orientation. This function renders each camera as a wireframe pyramid, originating from
track4world/nets/external/depth_anything_3/utils/export/glb.py:322
↓ 1 callersMethod_add_processed_images
Add processed images to prediction for visualization.
track4world/nets/external/depth_anything_3/api.py:478
↓ 1 callersMethod_align_to_input_extrinsics_intrinsics
Align depth map to input extrinsics
track4world/nets/external/depth_anything_3/api.py:420
↓ 1 callersMethod_apply_depth_alignment
Apply depth alignment using least squares scaling.
track4world/nets/external/depth_anything_3/model/da3.py:417
↓ 1 callersMethod_apply_metric_scaling
Apply metric scaling to the metric depth output.
track4world/nets/external/depth_anything_3/model/da3.py:406
↓ 1 callersMethod_apply_sim3_to_points
(self, points, sim3)
track4world/nets/external/pi3x/pipe/pi3x_vo.py:200
↓ 1 callersMethod_apply_sim3_to_poses
(self, poses, sim3)
track4world/nets/external/pi3x/pipe/pi3x_vo.py:208
← previousnext →201–300 of 1,309, ranked by callers