MCPcopy Create free account

hub / github.com/Ropedia/SpatialBench / functions

Functions5,295 in github.com/Ropedia/SpatialBench

↓ 664 callersMethodto
(self, device: torch.device)
benchmark/models/loger/pi3_adapter.py:28
↓ 615 callersMethodget
(self, key, default=None)
benchmark/models/r3/R3/models/online/state.py:33
↓ 199 callersMethodsize
Get the size of images in the list. Returns: tuple: (width, height) of the images Raises: Assertion
benchmark/models/mapanything/utils/cropping.py:61
↓ 143 callersMethodload
Deserialize member variables from a file into this object
benchmark/models/scal3r/utils/pgo/utils.py:21
↓ 106 callersMethodcopy
(self)
benchmark/models/scal3r/utils/base_utils.py:38
↓ 97 callersMethodinfo
(self, *args, **kwargs)
benchmark/models/depth_anything_3/utils/logger.py:67
↓ 82 callersMethodupdate
(self, data: Mapping[str, Any] | None = None, **kwargs)
benchmark/models/scal3r/utils/base_utils.py:23
↓ 68 callersMethodlog
(self, level_str, *args, **kwargs)
benchmark/models/depth_anything_3/utils/logger.py:41
↓ 57 callersMethodresize
Resize all images with the same parameters. Args: *args, **kwargs: Arguments passed to PIL.Image.resize() Retur
benchmark/models/mapanything/utils/cropping.py:75
↓ 52 callersFunctioncheckpoint
(func, *args, enabled: bool, offload: bool = False, use_reentrant: bool = False, **kwargs)
benchmark/models/vgg_ttt/vggttt/utils/optim.py:81
↓ 51 callersMethodall
(self)
benchmark/models/depth_anything_3/utils/registry.py:35
↓ 48 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path, **kw)
benchmark/models/mast3r_root/mast3r/model.py:47
↓ 45 callersMethodget
(self, name)
benchmark/models/r3/depth_anything_3/utils/registry.py:32
↓ 44 callersMethodload_state_dict
(self, ckpt, **kw)
benchmark/models/dust3r_root/dust3r/model.py:90
↓ 40 callersMethodnormalize
(self, h0)
benchmark/models/page4d/layers/block.py:67
↓ 40 callersFunctiontqdm
(*args: Any, **kwargs: Any)
benchmark/models/scal3r/utils/console_utils.py:224
↓ 37 callersMethodwrite
(self, key: str, value, value_type: str = "mat")
benchmark/models/scal3r/utils/cam_utils.py:22
↓ 32 callersMethod_get_output_value
(output, key, default=None)
benchmark/models/r3/R3/models/r3_wrapper/outputs.py:17
↓ 32 callersMethodget
(self, name)
benchmark/models/depth_anything_3/utils/registry.py:32
↓ 32 callersMethodsave
Serialize the object's member variables to a file
benchmark/models/scal3r/utils/pgo/utils.py:16
↓ 32 callersMethodwrite
Write the buffer content to the logger. Parameters: - buf: The string buffer to write
benchmark/models/mapanything/utils/misc.py:35
↓ 31 callersMethodclear
Clear all keyframes.
benchmark/models/r3/R3/models/online/fallback.py:1088
↓ 29 callersFunctionto_numpy
(x)
benchmark/models/mast3r_root/dust3r/utils/device.py:42
↓ 28 callersFunctiongeotrf
Apply a geometric transformation to a list of 3-D points. H: 3x3 or 4x4 projection matrix (typically a Homography) p: numpy/torch/tuple of c
benchmark/models/mast3r_root/dust3r/utils/geometry.py:40
↓ 28 callersMethodrecord
(self, stage: str, **payload)
benchmark/models/scal3r/utils/runtime_utils.py:79
↓ 27 callersMethoddevice
(self)
benchmark/models/vgg_ttt/vggttt/nets/vggt/models/vggt.py:366
↓ 26 callersMethodhead
(self, out: torch.Tensor, patch_h: int, patch_w: int, W: int, H: int)
benchmark/models/vgg_ttt/vggttt/nets/vggt/heads/dpt_head.py:205
↓ 24 callersMethodclose
(self)
benchmark/models/scal3r/utils/console_utils.py:189
↓ 23 callersMethodnormalize_camera_extrinsics_and_points
Normalization aligned with DA3's training-time normalize_camera_extrinsics_and_points_batch. Align to first camera + scale by avg point dista
benchmark/evaluation/model_adapters/base_adapter.py:172
↓ 22 callersFunctionensure_hf_snapshot
Ensure the HuggingFace repo is available locally, and place the download under your specified checkpoints directory whenever possible. Retur
benchmark/utils/hf_weights.py:21
↓ 21 callersFunctiongeotrf
Apply a geometric transformation to a list of 3-D points. H: 3x3 or 4x4 projection matrix (typically a Homography) p: numpy/torch/tuple of c
benchmark/models/dust3r_root/dust3r/utils/geometry.py:40
↓ 21 callersFunctionmaterialize_payload
(payload)
benchmark/models/scal3r/utils/offload_utils.py:67
↓ 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
benchmark/models/r3/depth_anything_3/utils/read_write_model.py:84
↓ 17 callersFunctionimread_cv2
Open an image or a depthmap with opencv-python.
benchmark/models/dust3r_root/dust3r/utils/image.py:32
↓ 17 callersFunctionresolve_release_path
(path_like: str | PathLike[str])
benchmark/models/scal3r/engine/path.py:37
↓ 16 callersFunction_collect_colors
Collect pixel colors from each frame's image according to a mask. Args: images_raw: Tensor (N, 3, H, W) [0, 1] mask_per_frame: (N
benchmark/utils/visualization.py:323
↓ 16 callersFunctionaffine_inverse
(A: torch.Tensor)
benchmark/models/r3/depth_anything_3/utils/geometry.py:55
↓ 16 callersFunctionapply_distortion
Applies radial or OpenCV distortion to the given 2D points. Args: extra_params (torch.Tensor or numpy.ndarray): Distortion parameter
benchmark/models/page4d/dependency/distortion.py:99
↓ 16 callersFunctionsave_pointcloud_glb
Save point cloud + optional camera frustums to a GLB file. Args: points: (M, 3) world-coordinate points colors: (M, 3) RGB colors
benchmark/utils/visualization.py:200
↓ 15 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/vggt/utils/geometry.py:120
↓ 15 callersMethodcrop
Crop all images with the same parameters. Args: *args, **kwargs: Arguments passed to PIL.Image.crop() Returns:
benchmark/models/mapanything/utils/cropping.py:87
↓ 15 callersFunctionto_numpy
(x)
benchmark/models/dust3r_root/dust3r/utils/device.py:42
↓ 15 callersFunctionunproject_to_pointcloud
Unproject depth maps into a world-coordinate point cloud. Args: depths: (N, H, W) depth maps extrinsics: (N, 3, 4) cam2world
benchmark/evaluation/metrics.py:1137
↓ 15 callersMethodwarn
(self, *args, **kwargs)
benchmark/models/depth_anything_3/utils/logger.py:64
↓ 14 callersFunctionapply_rotary_emb
应用旋转位置编码到输入特征 核心思想:使用复数乘法实现特征旋转,保持相对位置信息 数学原理: 对于2D向量 [x1, x2],旋转θ角度可以表示为复数乘法: (x1 + ix2) * e^(iθ) = (x1 + ix2) * (cos(
benchmark/models/lingbot_map/layers/rope.py:427
↓ 14 callersFunctionedge_str
(i, j)
benchmark/models/dust3r_root/dust3r/cloud_opt/commons.py:12
↓ 14 callersFunctionedge_str
(i, j)
benchmark/models/mast3r_root/dust3r/cloud_opt/commons.py:12
↓ 14 callersMethodget
Retrieve image by frame ID, or None if not available.
benchmark/models/r3/R3/models/online/fallback.py:491
↓ 14 callersMethodinfo
(self, *args, **kwargs)
benchmark/models/r3/depth_anything_3/utils/logger.py:67
↓ 14 callersFunctionpose_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/vggt/utils/pose_enc.py:62
↓ 14 callersMethodresize
(self, *args, **kwargs)
benchmark/utils/cropping.py:63
↓ 13 callersFunction_flush
(out_json, payload)
benchmark/evaluation/bench_memory_curve.py:267
↓ 13 callersFunctionapply_distortion
Applies radial or OpenCV distortion to the given 2D points. Args: extra_params (torch.Tensor or numpy.ndarray): Distortion parameter
benchmark/models/zipmap/zipmap/dependency/distortion.py:95
↓ 13 callersFunctioninv
Invert a torch or numpy matrix
benchmark/models/mast3r_root/dust3r/utils/geometry.py:104
↓ 13 callersFunctionmaybe_stop_after
(stage: str, args, recorder: StageRecorder | None)
benchmark/models/scal3r/utils/runtime_utils.py:104
↓ 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.
benchmark/models/r3/depth_anything_3/utils/read_write_model.py:72
↓ 13 callersMethodstate_dict
(self, trainable=True)
benchmark/models/dust3r_root/dust3r/cloud_opt/base_opt.py:123
↓ 12 callersFunction_first_client
()
benchmark/models/r3/view.py:533
↓ 12 callersFunction_make_fusion_block
( features: int, size: Tuple[int, int] = None, has_residual: bool = True, groups: int = 1,
benchmark/models/depth_anything_3/model/dpt.py:342
↓ 12 callersFunction_make_fusion_block
( features: int, size: Tuple[int, int] = None, has_residual: bool = True, groups: int = 1,
benchmark/models/r3/depth_anything_3/model/dpt.py:342
↓ 12 callersMethoddtype
(self)
benchmark/models/mapanything/models/mapanything/model.py:240
↓ 12 callersFunctionensure_dir
(path: str)
benchmark/models/scal3r/utils/data_utils.py:14
↓ 12 callersMethoderror
(self, *args, **kwargs)
benchmark/models/depth_anything_3/utils/logger.py:61
↓ 11 callersFunction_list_sorted
List files in dir_path matching exts, sorted lexicographically by filename.
benchmark/datasets/data_readers.py:77
↓ 11 callersMethodlog
(self, level_str, *args, **kwargs)
benchmark/models/r3/depth_anything_3/utils/logger.py:41
↓ 11 callersMethodpush
Store a frame image. Evicts oldest if at capacity.
benchmark/models/r3/R3/models/online/fallback.py:480
↓ 11 callersFunctionset_visibility
()
benchmark/models/loger/utils/viser_utils.py:472
↓ 10 callersFunction_refresh
(vis)
benchmark/models/amb3r_root/amb3r/tools/vis.py:112
↓ 10 callersFunctionaffine_inverse
(A: torch.Tensor)
benchmark/models/depth_anything_3/utils/geometry.py:55
↓ 10 callersFunctioncreate_object
Create an object from config. The config is expected to contains the following: __object__: path: path.to.module name: MyClas
benchmark/models/r3/depth_anything_3/cfg.py:112
↓ 10 callersMethoddebug
(self, *args, **kwargs)
benchmark/models/depth_anything_3/utils/logger.py:70
↓ 10 callersFunctioninvalid_to_nans
(arr, valid_mask, ndim=999)
benchmark/models/dust3r_root/dust3r/utils/misc.py:103
↓ 10 callersFunctioninvalid_to_nans
(arr, valid_mask, ndim=999)
benchmark/models/mast3r_root/dust3r/utils/misc.py:103
↓ 10 callersMethodquery
(self, queries, k=1, **kw)
benchmark/models/mast3r_root/mast3r/fast_nn.py:78
↓ 10 callersFunctionrelease_memory
(device: str | None = None)
benchmark/models/scal3r/utils/runtime_utils.py:111
↓ 10 callersMethodrun
(self)
benchmark/models/scal3r/utils/loop/detector.py:187
↓ 9 callersFunctionParameterStack
(params, keys=None, is_param=None, fill=0)
benchmark/models/dust3r_root/dust3r/cloud_opt/optimizer.py:214
↓ 9 callersFunctionParameterStack
(params, keys=None, is_param=None, fill=0)
benchmark/models/mast3r_root/dust3r/cloud_opt/optimizer.py:214
↓ 9 callersFunctioncreate_object
Create an object from config. The config is expected to contains the following: __object__: path: path.to.module name: MyClas
benchmark/models/depth_anything_3/cfg.py:108
↓ 9 callersMethodforward
Forward pass of the GCT model. Args: images: Input images [S, 3, H, W] or [B, S, 3, H, W], in range [0, 1] q
benchmark/models/lingbot_map/models/gct_base.py:291
↓ 9 callersFunctionmax_pool_2d
Perform 2D max pooling on the input array. Convenience function for 2D max pooling, commonly used in computer vision and image processin
benchmark/models/mapanything/utils/geometry.py:1988
↓ 8 callersFunction_calculate_auc_np
AUC via histogram bins. Matches DA3 calculate_auc_np.
benchmark/evaluation/metrics.py:419
↓ 8 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
benchmark/models/loger/models/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:
benchmark/models/pi3/models/dinov2/hub/backbones.py:18
↓ 8 callersFunction_rope_precompute_coeffs
Precompute RoPE coefficients.
benchmark/models/loger/models/layers/prope.py:353
↓ 8 callersFunction_rope_precompute_coeffs
Precompute RoPE coefficients.
benchmark/models/pi3/models/layers/prope.py:353
↓ 8 callersMethoddecode_patch_tokens_and_heads
Decode patch tokens and heads to get final predictions. Params: - images: input images (B, nimgs, 3, H, W) in [0, 1]
benchmark/models/amb3r_root/amb3r/frontend.py:172
↓ 8 callersFunctionget_sp_group
Get the sequence parallel group the caller rank belongs to.
benchmark/models/vgg_ttt/vggttt/utils/dist.py:98
↓ 8 callersMethodhandle_export_dir
Handle export directory
benchmark/models/r3/depth_anything_3/services/input_handlers.py:41
↓ 8 callersMethodname
(self)
benchmark/evaluation/model_adapters/r3_adapter.py:175
↓ 8 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
benchmark/models/vggt/layers/vision_transformer.py:214
↓ 8 callersMethodprocess
Process single image
benchmark/models/r3/depth_anything_3/services/input_handlers.py:70
↓ 8 callersMethodquery
Query scenes by tags. Args: tags: list[str], list of tag values (e.g. ["sparse", "indoor"]) operator: "AND" or "OR"
benchmark/datasets/benchmark_dataset.py:38
↓ 8 callersFunctionrun_inference
Unified inference interface
benchmark/models/r3/depth_anything_3/services/inference_service.py:179
↓ 8 callersFunctionsplit
(x)
benchmark/models/fastvggt/merging/merge.py:196
↓ 8 callersMethodupdate
Append confidence and return True if drought is triggered.
benchmark/models/r3/R3/models/online/fallback.py:45
↓ 7 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
benchmark/models/stream3r/croco/models/blocks.py:79
↓ 7 callersFunction_bytes_to_gb
(value: float)
benchmark/models/scal3r/utils/runtime_utils.py:12
↓ 7 callersFunction_ensure_torch
Convert input to torch tensor if it's not already one.
benchmark/models/page4d/dependency/distortion.py:22
↓ 7 callersFunction_ensure_torch
Convert input to torch tensor if it's not already one.
benchmark/models/zipmap/zipmap/dependency/distortion.py:18
next →1–100 of 5,295, ranked by callers