MCPcopy Create free account

hub / github.com/Ropedia/SpatialBench / functions

Functions5,295 in github.com/Ropedia/SpatialBench

Functionparse
(x)
benchmark/models/vggt/heads/track_modules/modules.py:20
Functionparse
(x)
benchmark/models/vgg_ttt/vggttt/nets/vggt/heads/track_modules/modules.py:28
Functionparse
(x)
benchmark/models/stream3r/croco/models/blocks.py:34
Functionparse
(x)
benchmark/models/page4d/heads/track_modules/modules.py:20
Functionparse
(x)
benchmark/models/page4d/dependency/track_modules/modules.py:20
Functionparse
(x)
benchmark/models/fastvggt/heads/track_modules/modules.py:20
Functionparse
(x)
benchmark/models/dust3r_root/croco/models/blocks.py:25
Functionparse
(x)
benchmark/models/mast3r_root/croco/models/blocks.py:25
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),
benchmark/models/depth_anything_3/utils/pca_utils.py:27
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),
benchmark/models/r3/depth_anything_3/utils/pca_utils.py:27
Functionpoint_padding
(v: torch.Tensor)
benchmark/models/scal3r/utils/math_utils.py:14
Functionpopulate_paged_kv_from_replay
Copy dense per-layer K/V from a full-attention replay into a fresh paged store on `state`. The replay path runs through SDPA (the paged store is
benchmark/models/r3/R3/models/r3_wrapper/paged_kv.py:155
Functionpose_encoding_to_extri_intri
Convert a pose encoding back to camera extrinsics and intrinsics. This function performs the inverse operation of extri_intri_to_pose_encoding,
benchmark/models/stream3r/models/components/utils/pose_enc.py:78
Functionpose_encoding_to_extri_intri
Convert a pose encoding back to camera extrinsics and intrinsics. This function performs the inverse operation of extri_intri_to_pose_encoding,
benchmark/models/omnivggt/utils/pose_enc.py:65
Functionpose_encoding_to_extri_intri
Convert a pose encoding back to camera extrinsics and intrinsics. This function performs the inverse operation of extri_intri_to_pose_encoding,
benchmark/models/page4d/utils/pose_enc.py:62
Functionpose_encoding_to_extri_intri
Convert a pose encoding back to camera extrinsics and intrinsics. This function performs the inverse operation of extri_intri_to_pose_encoding,
benchmark/models/zipmap/zipmap/utils/pose_enc.py:69
Functionpose_matrix_to_quaternion
convert 4x4 pose matrix to (t, q)
benchmark/models/lingbot_map/utils/geometry.py:422
Functionpost_func
(input)
benchmark/models/vgg_ttt/vggttt/utils/dist_att.py:27
Functionpostprocess
extract 3D points/confidence from prediction head output
benchmark/models/stream3r/dust3r/heads/postprocess.py:41
Functionpostprocess_with_feature
(out, depth_mode, conf_mode, desc_dim=None, desc_mode='norm', two_confs=False, desc_conf_mode=None)
benchmark/models/stream3r/dust3r/heads/postprocess.py:24
Methodpredict
运行 DUSt3R 推理并返回 SpatialBench 格式结果。
benchmark/evaluation/model_adapters/dust3r_adapter.py:224
Methodpredict
Run VGGT-Omega inference. VGGT-Omega input: images (S, 3, H, W) in [0, 1] (the model applies ImageNet normalization) VGGT-Omega outpu
benchmark/evaluation/model_adapters/vggt_omega_adapter.py:72
Methodpredict
运行 MASt3R 推理并返回 SpatialBench 格式结果。
benchmark/evaluation/model_adapters/mast3r_adapter.py:215
Methodpredict
Run Scal3R inference (Directly callinternal API, no subprocess). Only includes forward + post_process + result extraction, not writing PNGs /
benchmark/evaluation/model_adapters/scal3r_adapter.py:236
Methodpredict
Run Pi-Long chunk-based inference. Pi3 input: imgs (B, N, 3, H, W) in [0, 1] Pi3 output: camera_poses (B, N, 4, 4) c2w, points (B, N,
benchmark/evaluation/model_adapters/pi_long_adapter.py:121
Methodpredict
Run DA3-Streaming inference. Split input images into chunks (with overlap), run on each chunk DA3 inference, via SIM(3) aligns witho
benchmark/evaluation/model_adapters/da3_streaming_adapter.py:97
Methodpredict
Run inference on a single scene. Args: scene: dict from BenchmarkDataset.__getitem__(), containing: images: Tenso
benchmark/evaluation/model_adapters/base_adapter.py:41
Methodpredict
Run WorldMirror inference. WorldMirror input: views={"img": (1, N, 3, H, W)} in [0,1], cond_flags=[0,0,0] WorldMirror outputs: camera
benchmark/evaluation/model_adapters/worldmirror_adapter.py:93
Methodpredict
Run InfiniteVGGT streaming inference.
benchmark/evaluation/model_adapters/infinitevggt_adapter.py:85
Methodpredict
Run VGGT inference. VGGT input: images (S, 3, H, W) in [0, 1] (no ImageNet normalization) VGGT output: pose_enc (B, S, 9), depth (B,
benchmark/evaluation/model_adapters/vggt_adapter.py:62
Methodpredict
Run PAGE4D inference. PAGE4D input: images (S, 3, H, W) in [0, 1] PAGE4D outputs: pose_enc (B, S, 9), depth (B, S, H, W, 1), world_po
benchmark/evaluation/model_adapters/page4d_adapter.py:81
Methodpredict
Run StreamVGGT inference. Use StreamVGGT streaming inference() interface: process frame by frame + KV-cache, move each frame result
benchmark/evaluation/model_adapters/streamvggt_adapter.py:80
Methodpredict
Run AMB3R inference. Flow: 1. Convert benchmark images to AMB3R input format ([-1, 1] normalization, (B, T, 3, H, W)) 2. Call
benchmark/evaluation/model_adapters/amb3r_adapter.py:173
Methodpredict
(self, scene)
benchmark/evaluation/model_adapters/vgg_ttt_adapter.py:75
Methodpredict
Run DA3Nested inference. Use the DA3 inference() API, input numpy image list. Convert outputs to benchmark benchmark standard format
benchmark/evaluation/model_adapters/da3nested_adapter.py:65
Methodpredict
Run STream3R inference. STream3R input: images (S, 3, H, W) or (B, S, 3, H, W) in [0, 1] STream3R outputs: pose_enc (B, S, 9), depth
benchmark/evaluation/model_adapters/stream3r_adapter.py:76
Methodpredict
Run LoGeR inference.
benchmark/evaluation/model_adapters/loger_adapter.py:107
Methodpredict
Run FastVGGT inference. must call before inference update_patch_dimensions, then behaves the same as VGGT.
benchmark/evaluation/model_adapters/fastvggt_adapter.py:88
Methodpredict
Run OmniVGGT inference. OmniVGGT input: images (B, S, 3, H, W) in [0, 1] (the model applies ImageNet normalization) OmniVGGT outputs:
benchmark/evaluation/model_adapters/omnivggt_adapter.py:66
Methodpredict
Run MAPAnything inference. Use MapAnything infer() API. Benchmark images are already ImageNet-normalized (consistent with dinov2),
benchmark/evaluation/model_adapters/mapanything_adapter.py:61
Methodpredict
Run LingBot-Map streaming/windowed inference.
benchmark/evaluation/model_adapters/lingbot_map_adapter.py:126
Methodpredict
Run DA3 inference. Uses DA3's inference() API with a list of numpy images as input. Outputs are converted to the benchmark standard f
benchmark/evaluation/model_adapters/da3_adapter.py:84
Methodpredict
Run Pi3 inference. Pi3 input: imgs (B, N, 3, H, W) in [0, 1] (the model applies ImageNet normalization) Pi3 outputs: camera_poses (B,
benchmark/evaluation/model_adapters/pi3_adapter.py:58
Methodpredict
Run LingBot-Map streaming inference.
benchmark/evaluation/model_adapters/lingbot_map_stream_adapter.py:134
Methodpredict
(self, scene)
benchmark/evaluation/model_adapters/zipmap_adapter.py:142
Methodpredict
Run VGGT-Long inference. Split the input sequence into overlapping chunks, run per chunk VGGT, via SIM(3) align the overlapping-regi
benchmark/evaluation/model_adapters/vggt_long_adapter.py:166
Methodpredict
Run Pi3X inference. Pi3X input: imgs (B, N, 3, H, W) in [0, 1] (the model applies ImageNet normalization) Pi3X outputs: camera_poses
benchmark/evaluation/model_adapters/pi3x_adapter.py:63
Functionpredict_tracks
Predict tracks for the given images and masks. TODO: support non-square images TODO: support masks This function predicts the trac
benchmark/models/page4d/dependency/track_predict.py:12
Functionpredictions_gt_comparison_to_glb
Creates a GLB scene with both GT and predicted point clouds for comparison. Args: predictions (dict): Dictionary containing mode
benchmark/models/loger/utils/visual_util.py:220
Functionpredictions_to_glb
Converts VGGT predictions to a 3D scene represented as a GLB file. Args: predictions (dict): Dictionary containing model predictions
benchmark/models/loger/utils/visual_util.py:18
Functionprepare_paged_kv_da3_kwargs
Build DA3 kwargs that expose the current paged KV cache to the ViT.
benchmark/models/r3/R3/models/r3_wrapper/paged_kv.py:142
Functionpreprocess_inputs
Preprocess input_views by determining optimal aspect ratio and resizing all images and multi-modal inputs. Similar to load_images function,
benchmark/models/mapanything/utils/image.py:348
Methodpreset_focal
(self, known_focals, msk=None)
benchmark/models/dust3r_root/dust3r/cloud_opt/optimizer.py:83
Methodpreset_focal
(self, known_focals, msk=None)
benchmark/models/mast3r_root/dust3r/cloud_opt/optimizer.py:83
Methodpreset_intrinsics
(self, known_intrinsics, msk=None)
benchmark/models/dust3r_root/dust3r/cloud_opt/modular_optimizer.py:50
Methodpreset_intrinsics
(self, known_intrinsics, msk=None)
benchmark/models/mast3r_root/dust3r/cloud_opt/modular_optimizer.py:50
Methodpreset_pose
(self, known_poses, pose_msk=None)
benchmark/models/dust3r_root/dust3r/cloud_opt/optimizer.py:66
Methodpreset_pose
(self, known_poses, pose_msk=None)
benchmark/models/dust3r_root/dust3r/cloud_opt/modular_optimizer.py:38
Methodpreset_pose
(self, known_poses, pose_msk=None)
benchmark/models/mast3r_root/dust3r/cloud_opt/optimizer.py:66
Methodpreset_pose
(self, known_poses, pose_msk=None)
benchmark/models/mast3r_root/dust3r/cloud_opt/modular_optimizer.py:38
Methodpreset_principal_point
(self, known_pp, msk=None)
benchmark/models/dust3r_root/dust3r/cloud_opt/optimizer.py:93
Methodpreset_principal_point
(self, known_pp, msk=None)
benchmark/models/mast3r_root/dust3r/cloud_opt/optimizer.py:93
Functionprint_camera
(vis)
benchmark/models/amb3r_root/amb3r/tools/vis.py:216
Methodprocess
Process image directory
benchmark/models/r3/depth_anything_3/services/input_handlers.py:80
Methodprocess
Process COLMAP data
benchmark/models/r3/depth_anything_3/services/input_handlers.py:110
Methodprocess
Process video, extract frames
benchmark/models/r3/depth_anything_3/services/input_handlers.py:191
Functionprocess_mask
Batched Otsu's thresholding without Python loops. Args: img: (B,S,P,C) tensor, any range. Returns: mask: (B,S,P*P) bool t
benchmark/models/page4d/models/mask_utils.py:50
Functionproject_pts3d_to_image
Project 3D points to image plane (assumes pinhole camera model with no distortion). Args: - pts3d: HxWx3 or BxHxWx3 torch tensor
benchmark/models/mapanything/utils/geometry.py:152
Functionproject_world_points_to_cam
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape Px3.
benchmark/models/vggt/utils/geometry.py:204
Functionproject_world_points_to_cam
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape Px3.
benchmark/models/vgg_ttt/vggttt/nets/vggt/utils/geometry.py:167
Functionproject_world_points_to_cam
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape Px3.
benchmark/models/lingbot_map/utils/geometry.py:233
Functionproject_world_points_to_cam
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape Px3.
benchmark/models/page4d/utils/geometry.py:204
Functionproject_world_points_to_cam
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape Px3.
benchmark/models/fastvggt/utils/geometry.py:204
Functionproject_world_points_to_cam
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape Px3.
benchmark/models/zipmap/zipmap/utils/geometry.py:215
Functionproject_world_points_to_camera_points_batch
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape BxSxHxWx3.
benchmark/models/vggt/utils/geometry.py:175
Functionproject_world_points_to_camera_points_batch
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape BxSxHxWx3.
benchmark/models/lingbot_map/utils/geometry.py:204
Functionproject_world_points_to_camera_points_batch
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape BxSxHxWx3.
benchmark/models/page4d/utils/geometry.py:175
Functionproject_world_points_to_camera_points_batch
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape BxSxHxWx3.
benchmark/models/fastvggt/utils/geometry.py:175
Functionproject_world_points_to_camera_points_batch
Transforms 3D points to 2D using extrinsic and intrinsic parameters. Args: world_points (torch.Tensor): 3D points of shape BxSxHxWx3.
benchmark/models/zipmap/zipmap/utils/geometry.py:186
Functionprune_kv_cache_list
Slice each KV cache block down to the token ranges for the kept frames only.
benchmark/models/r3/R3/models/online/kv_cache.py:187
Functionprune_online_state
Drop state entries for frames that are no longer resident in the active cache.
benchmark/models/r3/R3/models/online/kv_cache.py:261
Functionpt_size_down
(vis)
benchmark/models/amb3r_root/amb3r/tools/vis.py:206
Functionpt_size_up
(vis)
benchmark/models/amb3r_root/amb3r/tools/vis.py:201
Functionpts3d_to_trimesh
(img, pts3d, valid=None)
benchmark/models/dust3r_root/dust3r/viz.py:38
Functionpts3d_to_trimesh
(img, pts3d, valid=None)
benchmark/models/mast3r_root/dust3r/viz.py:38
Functionpycolmap_to_batch_np_matrix
Convert a PyCOLMAP Reconstruction Object to batched NumPy arrays. Args: reconstruction (pycolmap.Reconstruction): The reconstruction
benchmark/models/page4d/dependency/np_to_pycolmap.py:146
Functionpycolmap_to_batch_np_matrix
Convert a PyCOLMAP Reconstruction Object to batched NumPy arrays. Args: reconstruction (pycolmap.Reconstruction): The reconstruction
benchmark/models/zipmap/zipmap/dependency/np_to_pycolmap.py:144
Functionquat_inverse
Compute the inverse of a quaternion. Args: q: Quaternion with shape (..., 4), order XYZW (ijkr, scalar-last) Return
benchmark/models/loger/utils/rotation.py:164
Functionquat_multiply
Multiply two quaternions. Args: q1: First quaternion with shape (..., 4), order XYZW (ijkr, scalar-last) q2: Second quat
benchmark/models/loger/utils/rotation.py:141
Functionquat_to_mat
Quaternion Order: XYZW or say ijkr, scalar-last Convert rotations given as quaternions to rotation matrices. Args: quaternions:
benchmark/models/loger/utils/rotation.py:14
Functionquat_to_mat
Quaternion Order: XYZW or say ijkr, scalar-last Convert rotations given as quaternions to rotation matrices. Args: quaternions:
benchmark/models/depth_anything_3/utils/geometry.py:87
Methodquery
(self, inp_views: list[dict[str, torch.Tensor]] | torch.Tensor, **kwargs)
benchmark/models/vgg_ttt/vggttt/nets/vggt/models/vggt.py:386
Methodquery_string
Parse a query string. "sparse+indoor" -> AND "sparse|dense" -> OR
benchmark/datasets/benchmark_dataset.py:67
Functionrandomly_limit_trues
If mask has more than max_trues True values, randomly keep only max_trues of them and set the rest to False.
benchmark/models/vggt/utils/helper.py:10
Functionrandomly_limit_trues
If mask has more than max_trues True values, randomly keep only max_trues of them and set the rest to False.
benchmark/models/page4d/utils/helper.py:10
Functionrandomly_limit_trues
If mask has more than max_trues True values, randomly keep only max_trues of them and set the rest to False.
benchmark/models/fastvggt/utils/helper.py:10
Functionransac_find_homography_weighted
RANSAC version of weighted Homography estimation. Sample 4 points from the top 50% weighted points each time. reproj_threshold: points wi
benchmark/models/depth_anything_3/utils/ray_utils.py:147
Functionransac_find_homography_weighted
RANSAC version of weighted Homography estimation. Sample 4 points from the top 50% weighted points each time. reproj_threshold: points wi
benchmark/models/r3/depth_anything_3/utils/ray_utils.py:147
Functionransac_find_homography_weighted_fast
Batch version of RANSAC weighted Homography estimation. Returns: H_inlier
benchmark/models/depth_anything_3/utils/ray_utils.py:235
Functionransac_find_homography_weighted_fast
Batch version of RANSAC weighted Homography estimation. Returns: H_inlier
benchmark/models/r3/depth_anything_3/utils/ray_utils.py:235
← previousnext →4,901–5,000 of 5,295, ranked by callers