MCPcopy Create free account

hub / github.com/Ropedia/SpatialBench / functions

Functions5,295 in github.com/Ropedia/SpatialBench

↓ 1 callersFunctioncamera_space_to_pixel_space
Convert camera space points to pixel space points. Args: camera_space_points (torch.Tensor): Camera space points with shape (b, v1,
benchmark/models/worldmirror_root/src/models/utils/frustum.py:136
↓ 1 callersFunctioncamera_space_to_world_space
Convert camera space points to world space points. Args: camera_space_points (torch.Tensor): Camera space points with shape (b, v, h
benchmark/models/worldmirror_root/src/models/utils/frustum.py:120
↓ 1 callersFunctioncamera_space_to_world_space
Convert camera space points to world space points. Args: camera_space_points (torch.Tensor): Camera space points with shape (b, v, h
benchmark/models/depth_anything_3/utils/geometry.py:382
↓ 1 callersFunctioncamera_space_to_world_space
Convert camera space points to world space points. Args: camera_space_points (torch.Tensor): Camera space points with shape (b, v, h
benchmark/models/r3/depth_anything_3/utils/geometry.py:382
↓ 1 callersFunctioncameras_evaluation
Pose evaluation fully aligned with DA3 cameras_evaluation (pure numpy). Args: gt_w2c: (N, 3, 4) w2c numpy pred_w2c: (N, 3, 4) w2c
benchmark/evaluation/metrics.py:430
↓ 1 callersFunctioncameras_evaluation_c2w
Fast3R official c2w pairwise pose evaluation (pure numpy). Aligned with camera_to_rel_deg in fast3r/fast3r/eval/cam_pose_metric.py. Uses c2w
benchmark/evaluation/metrics.py:534
↓ 1 callersFunctioncamray_to_caminfo
Args: camray: (B, S, num_patches_y, num_patches_x, 6) confidence: (B, S, num_patches_y, num_patches_x) Returns: R: (B
benchmark/models/depth_anything_3/utils/ray_utils.py:435
↓ 1 callersFunctioncamray_to_caminfo
Args: camray: (B, S, num_patches_y, num_patches_x, 6) confidence: (B, S, num_patches_y, num_patches_x) Returns: R: (B
benchmark/models/r3/depth_anything_3/utils/ray_utils.py:435
↓ 1 callersFunctioncanonical_view
(ptmaps11, confs11, subsample, mode='avg-angle')
benchmark/models/mast3r_root/mast3r/cloud_opt/sparse_ga.py:855
↓ 1 callersFunctioncheck_file_exist
(filename, msg_tmpl: str = 'file "{}" does not exist')
benchmark/models/scal3r/engine/path.py:44
↓ 1 callersFunctioncheck_if_same_size
(pairs)
benchmark/models/dust3r_root/dust3r/inference.py:75
↓ 1 callersFunctioncheck_if_same_size
(pairs)
benchmark/models/mast3r_root/dust3r/inference.py:75
↓ 1 callersFunctioncheck_module_exists
Check if a module can be imported without actually importing it. Args: module_path (str): The path to the module to check. Retu
benchmark/models/mapanything/models/__init__.py:200
↓ 1 callersFunctionclean_pointcloud
Method: 1) express all 3d points in each camera coordinate frame 2) if they're in front of a depthmap --> then lower their confidence
benchmark/models/dust3r_root/dust3r/cloud_opt/base_opt.py:370
↓ 1 callersFunctioncleanup_offload_root
(args)
benchmark/models/scal3r/utils/offload_utils.py:150
↓ 1 callersFunctionclear_dpt_state
(dpt_state_refs: dict)
benchmark/models/scal3r/utils/offload_utils.py:138
↓ 1 callersFunctionclosed_form_inverse_se3
Compute the inverse of each 4x4 (or 3x4) SE3 matrix in a batch. If `R` and `T` are provided, they must correspond to the rotation and transl
benchmark/models/page4d/utils/geometry.py:120
↓ 1 callersFunctionclosed_form_inverse_se3
Compute the inverse of each 4x4 (or 3x4) SE3 matrix in a batch. If `R` and `T` are provided, they must correspond to the rotation and transl
benchmark/models/fastvggt/utils/geometry.py:120
↓ 1 callersFunctionclosed_form_inverse_se3
Compute the inverse of each 4x4 (or 3x4) SE3 matrix in a batch. If `R` and `T` are provided, they must correspond to the rotation and transl
benchmark/models/r3/R3/utils/components_geometry.py:117
↓ 1 callersFunctionclosed_form_inverse_se3
Compute the inverse of each 4x4 (or 3x4) SE3 matrix in a batch. If `R` and `T` are provided, they must correspond to the rotation and transl
benchmark/models/zipmap/zipmap/utils/geometry.py:131
↓ 1 callersFunctioncollect_image_paths
(input_dir: str, image_patterns: str)
benchmark/models/scal3r/utils/image_utils.py:132
↓ 1 callersFunctioncollect_intermediate_layers
(model, start_index: int)
benchmark/models/scal3r/pipelines/backend.py:29
↓ 1 callersFunctioncolmap_to_opencv_intrinsics
COLMAP intrinsics -> OpenCV intrinsics (principal point offset -0.5)
benchmark/utils/cropping.py:23
↓ 1 callersFunctioncolmap_to_opencv_intrinsics
Modify camera intrinsics to follow a different convention. Coordinates of the center of the top-left pixels are by default: - (0.5, 0.5)
benchmark/models/mapanything/utils/geometry.py:1495
↓ 1 callersFunctioncolor_from_xy
Map (x, y) -> color in (R, G, B). 1) Normalize x,y to [0,1]. 2) Combine them into a single scalar c in [0,1]. 3) Use matplotlib's col
benchmark/models/streamvggt/utils/visual_track.py:13
↓ 1 callersFunctioncolor_from_xy
Map (x, y) -> color in (R, G, B). 1) Normalize x,y to [0,1]. 2) Combine them into a single scalar c in [0,1]. 3) Use matplotlib's col
benchmark/models/page4d/utils/visual_track.py:13
↓ 1 callersFunctioncolor_from_xy
Map (x, y) -> color in (R, G, B). 1) Normalize x,y to [0,1]. 2) Combine them into a single scalar c in [0,1]. 3) Use matplotlib's col
benchmark/models/fastvggt/utils/visual_track.py:13
↓ 1 callersFunctioncombine_transform
(sa, ra, ta, sb, rb, tb)
benchmark/models/scal3r/utils/loop/loop_utils.py:89
↓ 1 callersFunctioncompare_translation_by_angle
Normalize the translation vectors and compute the angle between them. Args: t_gt: Ground truth translation vectors t: Predic
benchmark/models/lingbot_map/utils/pose_enc.py:231
↓ 1 callersMethodcompute_AP
(label, score)
benchmark/models/mast3r_root/mast3r/losses.py:291
↓ 1 callersFunctioncompute_adaptive_minibatch_size
Compute adaptive minibatch size based on available PyTorch memory. Args: estimated_memory_per_sample_mb: Estimated memory per sample
benchmark/models/vgg_ttt/vggttt/data/utils.py:51
↓ 1 callersFunctioncompute_alignment_mask
Compute mask for depth alignment based on confidence and depth thresholds. Args: depth_conf: Depth confidence tensor non_sky
benchmark/models/depth_anything_3/utils/alignment.py:68
↓ 1 callersFunctioncompute_alignment_mask
Compute mask for depth alignment based on confidence and depth thresholds. Args: depth_conf: Depth confidence tensor non_sky
benchmark/models/r3/depth_anything_3/utils/alignment.py:68
↓ 1 callersFunctioncompute_camera_faces
Computes the faces for the camera mesh. Args: cone_shape (trimesh.Trimesh): The shape of the camera cone. Returns: np.n
benchmark/models/loger/utils/visual_util.py:582
↓ 1 callersFunctioncompute_camera_loss
( pred_dict, # predictions dict, contains pose encodings batch_data, # ground
benchmark/models/amb3r_root/amb3r/loss.py:166
↓ 1 callersFunctioncompute_chamfer_distance
(points_pred, points_gt, max_dist=1.0)
benchmark/models/vggt/utils/eval_utils.py:118
↓ 1 callersFunctioncompute_chamfer_distance
(points_pred, points_gt, max_dist=1.0)
benchmark/models/fastvggt/utils/eval_utils.py:118
↓ 1 callersFunctioncompute_corr_level
(fmap1, fmap2s, C)
benchmark/models/streamvggt/heads/track_modules/blocks.py:232
↓ 1 callersFunctioncompute_corr_level
(fmap1, fmap2s, C)
benchmark/models/vggt/heads/track_modules/blocks.py:231
↓ 1 callersFunctioncompute_corr_level
(fmap1, fmap2s, C)
benchmark/models/vgg_ttt/vggttt/nets/vggt/heads/track_modules/blocks.py:241
↓ 1 callersFunctioncompute_corr_level
(fmap1, fmap2s, C)
benchmark/models/page4d/heads/track_modules/blocks.py:231
↓ 1 callersFunctioncompute_corr_level
(fmap1, fmap2s, C)
benchmark/models/fastvggt/heads/track_modules/blocks.py:231
↓ 1 callersFunctioncompute_depth_loss
Compute depth loss. Args: predictions: Dict containing 'depth' and 'depth_conf' batch: Dict containing ground truth 'dep
benchmark/models/amb3r_root/amb3r/loss.py:332
↓ 1 callersFunctioncompute_edge_scores
(edges, conf_i, conf_j)
benchmark/models/dust3r_root/dust3r/cloud_opt/commons.py:24
↓ 1 callersFunctioncompute_edge_scores
(edges, conf_i, conf_j)
benchmark/models/mast3r_root/dust3r/cloud_opt/commons.py:24
↓ 1 callersFunctioncompute_huber_weight
(residual: np.ndarray, delta: float = 0.1)
benchmark/models/scal3r/utils/pgo/aligner.py:309
↓ 1 callersMethodcompute_kv
Compute K, V for caching. Returns (K, V) after norm and RoPE.
benchmark/models/loger/models/layers/attention.py:413
↓ 1 callersMethodcompute_kv_cache
Compute K, V for caching from input x. Args: x: Input tensor [B, N, C] xpos: Position info for RoPE
benchmark/models/loger/models/layers/block.py:310
↓ 1 callersMethodcompute_loss
(self, *args, **kwargs)
benchmark/models/dust3r_root/dust3r/losses.py:94
↓ 1 callersMethodcompute_loss
(self, *args, **kwargs)
benchmark/models/mast3r_root/dust3r/losses.py:94
↓ 1 callersFunctioncompute_multiview_depth_confidence
Compute multi-view depth consistency confidence for each view. This function computes per-pixel confidence scores based on how consistently
benchmark/models/mapanything/utils/multiview_confidence.py:125
↓ 1 callersFunctioncompute_optimal_rotation_intrinsics_batch
Args: rays_origin (torch.Tensor): (B, N, 3) rays_target (torch.Tensor): (B, N, 3) z_threshold (float): Threshold for z va
benchmark/models/depth_anything_3/utils/ray_utils.py:20
↓ 1 callersFunctioncompute_optimal_rotation_intrinsics_batch
Args: rays_origin (torch.Tensor): (B, N, 3) rays_target (torch.Tensor): (B, N, 3) z_threshold (float): Threshold for z va
benchmark/models/r3/depth_anything_3/utils/ray_utils.py:20
↓ 1 callersFunctioncompute_point_loss
Compute point loss. Args: predictions: Dict containing 'world_points' and 'world_points_conf' batch: Dict containing gro
benchmark/models/amb3r_root/amb3r/loss.py:292
↓ 1 callersFunctioncompute_pose_metrics
Compute camera pose evaluation metrics (aligned with DA3 cameras_evaluation). Args: pred_w2c: (N, 3, 4) world-to-camera numpy gt_
benchmark/evaluation/metrics.py:473
↓ 1 callersFunctioncompute_ranking
(extrinsics, lambda_t=1.0, normalize=True, batched=True)
benchmark/models/amb3r_root/amb3r/tools/pose_dist.py:126
↓ 1 callersFunctioncompute_residual
(tar_xyz: np.ndarray, src_xyz: np.ndarray)
benchmark/models/scal3r/utils/pgo/aligner.py:299
↓ 1 callersFunctioncompute_surface_normals
Derive a per-pixel normal map from a point map using finite differences and cross products of the four cardinal neighbours. Args:
benchmark/models/amb3r_root/amb3r/tools/pts_vis.py:95
↓ 1 callersFunctioncompute_tgm_metric
Temporal Geometric Motion (TGM): compares depth changes between each pair of adjacent frames. Formula: TGM = (1/(N-1)) * sum_{i=1}^{N-1}
benchmark/evaluation/metrics.py:274
↓ 1 callersFunctioncompute_trajectory_metrics
Compute trajectory metrics after Sim(3) alignment: ATE, RPEt, RPEr. Uses the evo library (DROID-SLAM evaluation standard): - ATE: APE transla
benchmark/evaluation/metrics.py:643
↓ 1 callersMethodcompute_weight
(self, conf_thres=0.1)
benchmark/models/scal3r/utils/pgo/aligner.py:162
↓ 1 callersFunctioncondense_data
(imgs, tmp_paths, canonical_views, preds_21, dtype=torch.float32)
benchmark/models/mast3r_root/mast3r/cloud_opt/sparse_ga.py:767
↓ 1 callersFunctionconfidence_to_rgb
Converts a 2D confidence map (H, W) to an RGB image (H, W, 3). Args: confidence_map: torch.Tensor of shape (H, W), values in [0, 1] o
benchmark/models/page4d/models/mask_utils.py:81
↓ 1 callersFunctioncontext_parallelism
( w0_grad: torch.Tensor, w1_grad: torch.Tensor, w2_grad: torch.Tensor, )
benchmark/models/scal3r/utils/dist_utils.py:69
↓ 1 callersFunctionconvert_dust3r_pairs_naming
(imgs, pairs_in)
benchmark/models/mast3r_root/mast3r/cloud_opt/sparse_ga.py:112
↓ 1 callersMethodconvert_pose_to_4x4
(self, B, out_r, out_t, device)
benchmark/models/loger/models/layers/camera_head.py:105
↓ 1 callersMethodconvert_pose_to_4x4
(self, B, out_r, out_t, device)
benchmark/models/pi3/models/layers/camera_head.py:66
↓ 1 callersMethodconvert_poses
(self, poses)
benchmark/models/amb3r_root/amb3r/datasets/rel10k.py:35
↓ 1 callersMethodconvert_quat_to_4x4
(self, B, q, t, device)
benchmark/models/loger/models/layers/camera_head.py:74
↓ 1 callersMethodcorr
(self, targets)
benchmark/models/page4d/dependency/track_modules/blocks.py:309
↓ 1 callersMethodcorr_sample
Instead of storing the entire correlation pyramid, we compute each level's correlation volume, sample it immediately, then discard it
benchmark/models/streamvggt/heads/track_modules/blocks.py:177
↓ 1 callersMethodcorr_sample
Instead of storing the entire correlation pyramid, we compute each level's correlation volume, sample it immediately, then discard it
benchmark/models/vggt/heads/track_modules/blocks.py:176
↓ 1 callersMethodcorr_sample
Instead of storing the entire correlation pyramid, we compute each level's correlation volume, sample it immediately, then discard it
benchmark/models/vgg_ttt/vggttt/nets/vggt/heads/track_modules/blocks.py:190
↓ 1 callersMethodcorr_sample
Instead of storing the entire correlation pyramid, we compute each level's correlation volume, sample it immediately, then discard it
benchmark/models/page4d/heads/track_modules/blocks.py:176
↓ 1 callersMethodcorr_sample
Instead of storing the entire correlation pyramid, we compute each level's correlation volume, sample it immediately, then discard it
benchmark/models/fastvggt/heads/track_modules/blocks.py:176
↓ 1 callersFunctioncosine_schedule
(t, lr_start, lr_end)
benchmark/models/dust3r_root/dust3r/cloud_opt/commons.py:83
↓ 1 callersFunctioncosine_schedule
(t, lr_start, lr_end)
benchmark/models/mast3r_root/dust3r/cloud_opt/commons.py:83
↓ 1 callersFunctioncreate_app
Create FastAPI application with model backend.
benchmark/models/r3/depth_anything_3/services/backend.py:559
↓ 1 callersFunctioncreate_block_mask_cached
(mask_mod, B, H, M, N, device)
benchmark/models/r3/depth_anything_3/model/dinov2/layers/flex_attn.py:15
↓ 1 callersFunctioncreate_dpt_head
return PixelwiseTaskWithDPT for given net params
benchmark/models/dust3r_root/dust3r/heads/dpt_head.py:96
↓ 1 callersFunctioncreate_dpt_head
return PixelwiseTaskWithDPT for given net params
benchmark/models/mast3r_root/dust3r/heads/dpt_head.py:96
↓ 1 callersFunctioncreate_frustum_from_intrinsics
r""" Create a frustum from camera intrinsics. Args: intrinsics (torch.Tensor): Bx3x3 Intrinsics of cameras. near (torch.Tenso
benchmark/models/mapanything/utils/wai/intersection_check.py:11
↓ 1 callersFunctioncreate_paged_kv_store
Factory: size the pool from the retention policy and construct the store. `flashinfer_page_size` is accepted for API stability; v1 ignores non-ze
benchmark/models/r3/R3/models/online/flashinfer_backend.py:327
↓ 1 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
benchmark/models/worldmirror_root/src/models/utils/grid.py:47
↓ 1 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
benchmark/models/streamvggt/heads/utils.py:56
↓ 1 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
benchmark/models/vggt/heads/utils.py:66
↓ 1 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
benchmark/models/vgg_ttt/vggttt/nets/vggt/heads/utils.py:69
↓ 1 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
benchmark/models/stream3r/models/components/heads/utils.py:66
↓ 1 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
benchmark/models/lingbot_map/heads/utils.py:66
↓ 1 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
benchmark/models/vggt_omega/models/heads/utils.py:65
↓ 1 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
benchmark/models/omnivggt/heads/utils.py:65
↓ 1 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
benchmark/models/page4d/heads/utils.py:66
↓ 1 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
benchmark/models/fastvggt/heads/utils.py:66
↓ 1 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
benchmark/models/scal3r/utils/vggt/heads/utils.py:65
↓ 1 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
benchmark/models/zipmap/zipmap/heads/utils.py:62
↓ 1 callersMethodcrop
(self, *args, **kwargs)
benchmark/utils/cropping.py:66
↓ 1 callersFunctioncrop_image_and_other_optional_info
Return a crop of the input view and associated data. Args: image (PIL.Image.Image or numpy.ndarray): The input image to be cropped
benchmark/models/mapanything/utils/cropping.py:320
↓ 1 callersFunctioncustom_interpolate
( x: torch.Tensor, size: Tuple[int, int] | None = None, scale_factor: float | None = None, mod
benchmark/models/vggt_omega/models/heads/dense_head.py:275
↓ 1 callersMethoddebug
(self, *args, **kwargs)
benchmark/models/r3/depth_anything_3/utils/logger.py:70
↓ 1 callersMethoddecode
(self, hidden, N, H, W, poses, use_pose_mask)
benchmark/models/loger/models/pi3x.py:424
← previousnext →1,901–2,000 of 5,295, ranked by callers