MCPcopy Create free account

hub / github.com/Visionary-Laboratory/holi-spatial / functions

Functions1,270 in github.com/Visionary-Laboratory/holi-spatial

↓ 1 callersMethodmask_dims_from_binary
(self, binary_mask)
sam3/agent/helpers/visualizer.py:926
↓ 1 callersFunctionmask_intersection
( masks1: torch.Tensor, masks2: torch.Tensor, block_size: int = 16 )
sam3/agent/helpers/mask_overlap_removal.py:14
↓ 1 callersFunctionmask_iom
(masks1: torch.Tensor, masks2: torch.Tensor)
sam3/agent/helpers/mask_overlap_removal.py:30
↓ 1 callersFunctionmasks_to_boxes
(masks: torch.Tensor, obj_ids: list[int])
sam3/perflib/masks_ops.py:6
↓ 1 callersFunctionmaybe_suffix
(label: str)
qa_generation/templates_object_dist.py:881
↓ 1 callersMethodmean_pool_text
(self, prompt, prompt_mask)
sam3/model/model_misc.py:57
↓ 1 callersFunctionmerge_jsonl_parts
合并各场景临时jsonl,重排全局id.
qa_generation/convert_qa_to_llamafactory.py:858
↓ 1 callersFunctionmkdir_p
(folder_path)
PGSR/utils/system_utils.py:16
↓ 1 callersFunctionndc_2_cam
(ndc_xyz, intrinsic, W, H)
PGSR/utils/graphics_utils.py:17
↓ 1 callersFunctionnms_masks
Args: - pred_probs: (num_det,) float Tensor, containing the score (probability) of each detection - pred_masks: (num_det, H_mask, W_m
sam3/perflib/nms.py:23
↓ 1 callersFunctionnms_triton
Perform NMS given the iou matrix, the scores and the iou threshold Args: ious: Pairwise IoU tensor of shape (N, N). scores: Score
sam3/perflib/triton/nms.py:82
↓ 1 callersMethodnon_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
sam3/agent/helpers/visualizer.py:212
↓ 1 callersFunctionnormal_from_depth_image
(depth, intrinsic_matrix, extrinsic_matrix, offset=None, gt_image=None)
PGSR/utils/graphics_utils.py:76
↓ 1 callersFunctionnormalize_activation
(x, eps=1e-10)
PGSR/lpipsPyTorch/modules/utils.py:6
↓ 1 callersMethodnormalize_angles
Restrict angles to the range of [-180, 180) degrees
sam3/agent/helpers/rotated_boxes.py:272
↓ 1 callersFunctionnormalize_bbox
(bbox_xywh, img_w, img_h)
sam3/visualization_utils.py:156
↓ 1 callersFunctionnormalize_masks_boxes
(output: Dict)
sam3.py:64
↓ 1 callersFunctionobb_overlap
计算两个 OBB 的交叠体积,判断是否重叠。 Args: transform_a: 4x4 变换矩阵 extents_a: (3,) OBB 尺寸 transform_b: 4x4 变换矩阵 extents_b: (3
3d_bounding_instance_gs_rerun_da3.py:560
↓ 1 callersFunctionobb_overlap
计算两个 OBB 的交叠体积,判断是否重叠。 Args: transform_a: 4x4 变换矩阵 extents_a: (3,) OBB 尺寸 transform_b: 4x4 变换矩阵 extents_b: (3
3d_bounding_instance_gs_region.py:642
↓ 1 callersMethodoneupSHdegree
(self)
PGSR/scene/gaussian_model.py:166
↓ 1 callersMethodoverlay_rotated_instances
Args: boxes (ndarray): an Nx5 numpy array of (x_center, y_center, width, height, angle_degrees) format
sam3/agent/helpers/visualizer.py:822
↓ 1 callersFunctionpairwise_iou_rotated
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x_center, y_center, width, height, an
sam3/agent/helpers/rotated_boxes.py:15
↓ 1 callersMethodparse_action_history_for_propagation
Parse the actions in history before the last propagation and prepare for the next propagation. We support multiple actions (add/remov
sam3/model/sam3_video_inference.py:1219
↓ 1 callersFunctionparse_args
()
3d_bounding_instance_gs_rerun_da3.py:1485
↓ 1 callersFunctionparse_args
()
postprocess_3d_bbox_aabb.py:437
↓ 1 callersFunctionparse_args
()
3d_bounding_instance_gs_region.py:1516
↓ 1 callersFunctionparse_args
()
classic_region.py:234
↓ 1 callersFunctionparse_args
()
classic_vllm.py:228
↓ 1 callersFunctionparse_args
()
sam3.py:244
↓ 1 callersFunctionparse_categories
(text: str)
classic_region.py:130
↓ 1 callersFunctionparse_categories
(text: str)
classic_vllm.py:135
↓ 1 callersFunctionpatch_offsets
(h_patch_size, device)
PGSR/utils/graphics_utils.py:183
↓ 1 callersFunctionpatch_warp
(H, uv)
PGSR/utils/graphics_utils.py:187
↓ 1 callersFunctionpolygon_area
(x, y)
sam3/agent/helpers/masks.py:18
↓ 1 callersMethodpolygons_to_mask
(self, polygons)
sam3/agent/helpers/visualizer.py:152
↓ 1 callersFunctionpool_text_feat
(prompt, prompt_mask, pool_with_mask)
sam3/model/encoder.py:580
↓ 1 callersFunctionpost_process_mesh
Post-process a mesh to filter out floaters and disconnected parts
PGSR/render_cuda.py:42
↓ 1 callersFunctionpost_process_mesh
Post-process a mesh to filter out floaters and disconnected parts
PGSR/render.py:42
↓ 1 callersMethodpostprocess_masks
Perform PostProcessing on output masks.
sam3/model/utils/sam1_utils.py:77
↓ 1 callersMethodpredict
Predict masks for the given input prompts, using the currently set image. Arguments: point_coords (np.ndarray or None): A
sam3/model/sam1_task_predictor.py:230
↓ 1 callersMethodpredict_batch
This function is very similar to predict(...), however it is used for batched mode, when the model is expected to generate predictions on multiple ima
sam3/model/sam1_task_predictor.py:168
↓ 1 callersMethodpredict_masks
Predicts masks. See 'forward' for more details.
sam3/sam/mask_decoder.py:165
↓ 1 callersMethodprep_for_evaluator
This method is only used for benchmark eval (not used in the demo).
sam3/model/sam3_video_base.py:1707
↓ 1 callersFunctionprepare_output_and_logger
(args)
PGSR/train.py:449
↓ 1 callersFunctionprocess_image
( processor: Sam3Processor, image_path: Path, labels: Iterable[str], mask_root: Path, save
sam3.py:138
↓ 1 callersFunctionprocess_one_file
( input_path: Path, output_path: Path, floor_label: str, axis_method: str, extent_mode: st
postprocess_3d_bbox_aabb.py:386
↓ 1 callersFunctionprocess_scene
( scene: str, data_root: Path, mask_root: Path, scene_json_dir: Path, model_path: Path,
3d_bounding_instance_gs_rerun_da3.py:1038
↓ 1 callersFunctionprocess_scene
( scene: str, data_root: Path, mask_root: Path, scene_json_dir: Path, model_path: Path,
3d_bounding_instance_gs_region.py:1069
↓ 1 callersFunctionprocess_scene
( scene_dir: Path, client: OpenAI, max_images: int, output_dir: Path, data_root: Path, )
classic_region.py:195
↓ 1 callersFunctionprocess_scene
( scene_dir: Path, client: OpenAI, max_images: int, output_dir: Path, data_root: Path, )
classic_vllm.py:200
↓ 1 callersFunctionprocess_scene
( scene_json: Path, data_root: Path, output_dir: Path, sam3_checkpoint: Optional[Path] = DEFAU
sam3.py:185
↓ 1 callersFunctionprocess_scene
( qa_path: Path, args: argparse.Namespace, vllm_api_url: str, cache_img: Dict[Tuple[str, str,
qa_generation/filter_qa_repeat_descriptions.py:333
↓ 1 callersFunctionpsnr
(img1, img2)
PGSR/utils/image_utils.py:18
↓ 1 callersFunctionrasterize_gaussians
( means3D, means2D, means2D_abs, sh, colors_precomp, opacities, scales, rotati
PGSR/submodules/diff-plane-rasterization/diff_plane_rasterization/__init__.py:21
↓ 1 callersFunctionrasterize_polygons_within_box
Rasterize the polygons into a mask image and crop the mask content in the given box. The cropped mask is resized to (mask_size, mask_size
sam3/agent/helpers/masks.py:43
↓ 1 callersFunctionread
()
PGSR/gaussian_renderer/network_gui.py:43
↓ 1 callersFunctionreadColmapCameras
(cam_extrinsics, cam_intrinsics, images_folder)
PGSR/scene/dataset_readers.py:85
↓ 1 callersFunctionreadDL3DVCameras
Read cameras from DL3DV format DL3DV structure: - dense/cam/ directory: contains .npz files with intrinsics and pose - dense/rgb/ or
PGSR/scene/dataset_readers.py:322
↓ 1 callersFunctionreadScannetCameras
Read cameras from ScanNet format ScanNet structure: - intrinsic/intrinsic_color.txt: shared color intrinsics - pose/ directory: conta
PGSR/scene/dataset_readers.py:499
↓ 1 callersFunctionreadScannetV2Cameras
Read cameras from ScanNetV2 format. ScanNetV2 structure: - color/ directory: image files - pose/ directory: c2w txt files (4x4) -
PGSR/scene/dataset_readers.py:626
↓ 1 callersFunctionread_extrinsics_binary
see: src/base/reconstruction.cc void Reconstruction::ReadImagesBinary(const std::string& path) void Reconstruction::WriteImagesBi
PGSR/scene/colmap_loader.py:190
↓ 1 callersFunctionread_extrinsics_text
Taken from https://github.com/colmap/colmap/blob/dev/scripts/python/read_write_model.py
PGSR/scene/colmap_loader.py:254
↓ 1 callersFunctionread_intrinsics_binary
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasBinary(const std::string& path) void Reconstruction::ReadCameras
PGSR/scene/colmap_loader.py:225
↓ 1 callersFunctionread_intrinsics_text
Taken from https://github.com/colmap/colmap/blob/dev/scripts/python/read_write_model.py
PGSR/scene/colmap_loader.py:166
↓ 1 callersFunctionread_points3D_binary
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DBinary(const std::string& path) void Reconstruction::WritePoints
PGSR/scene/colmap_loader.py:129
↓ 1 callersFunctionread_points3D_text
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DText(const std::string& path) void Reconstruction::WritePoints3D
PGSR/scene/colmap_loader.py:83
↓ 1 callersFunctionremove_flying_pixels
利用中值滤波删除深度飞点,返回与输入同尺寸的米单位深度。 飞点会被置为 0。
3d_bounding_instance_gs_rerun_da3.py:447
↓ 1 callersFunctionremove_flying_pixels
利用中值滤波删除深度飞点,返回与输入同尺寸的米单位深度。 飞点会被置为 0。
3d_bounding_instance_gs_region.py:529
↓ 1 callersMethodremove_object
We try to remove object from tracker states on every GPU, it will do nothing for states without this object.
sam3/model/sam3_video_inference.py:1277
↓ 1 callersFunctionremove_overlapping_masks
Greedy keep: sort by score desc; keep a mask if IoM to all kept masks <= threshold. If pred_masks has length 0 or 1, returns sample unchanged
sam3/agent/helpers/mask_overlap_removal.py:71
↓ 1 callersMethodrender_depth_batched
( self, mesh, camera_parameters, flip_y=True, max_tris_per_pass=1_000_000_0, verbose=True, lin
PGSR/Mesh2DepthHelper/Mesh2DepthHelper.py:87
↓ 1 callersFunctionrender_depths_with_gaussians
使用 3DGS 渲染深度与颜色,不再初始化完整的 Scene,而是直接构造 Camera。 注意:对于 DL3DV 场景,应该使用 load_da3_depths 而不是这个函数。
3d_bounding_instance_gs_rerun_da3.py:776
↓ 1 callersFunctionrender_depths_with_gaussians
使用 3DGS 渲染深度与颜色,不再初始化完整的 Scene,而是直接构造 Camera。
3d_bounding_instance_gs_region.py:797
↓ 1 callersFunctionrender_normal
(viewpoint_cam, depth, offset=None, normal=None, scale=1)
PGSR/gaussian_renderer/__init__.py:21
↓ 1 callersFunctionrender_sets
(dataset : ModelParams, iteration : int, pipeline : PipelineParams, skip_train : bool, skip_test : bool,
PGSR/render_cuda.py:137
↓ 1 callersFunctionrender_sets
(dataset : ModelParams, iteration : int, pipeline : PipelineParams, skip_train : bool, skip_test : bool,
PGSR/render.py:137
↓ 1 callersMethodreplace_tensor_to_optimizer
(self, tensor, name)
PGSR/scene/gaussian_model.py:316
↓ 1 callersMethodreset_opacity
(self)
PGSR/scene/gaussian_model.py:268
↓ 1 callersMethodreset_session
Reset the session to its initial state (as when it's initial opened).
sam3/model/sam3_video_predictor.py:228
↓ 1 callersFunctionreshape_for_broadcast
(freqs_cis: torch.Tensor, x: torch.Tensor)
sam3/model/vitdet.py:60
↓ 1 callersFunctionresize_image_max_side
(image: Image.Image, max_image_side: Optional[int])
qa_generation/filter_qa_repeat_descriptions.py:262
↓ 1 callersFunctionresize_image_max_side
(image: Image.Image, max_image_side: int | None)
qa_generation/generate_3d_instance_description.py:241
↓ 1 callersFunctionresize_mask_to_depth
(mask: np.ndarray, depth: np.ndarray)
3d_bounding_instance_gs_rerun_da3.py:439
↓ 1 callersFunctionresize_mask_to_depth
(mask: np.ndarray, depth: np.ndarray)
3d_bounding_instance_gs_region.py:521
↓ 1 callersFunctionresolve_image_path
QA 里 image_a/image_b 一般是 "DSCxxxxx.JPG" 或 "0.jpg" 等。 支持的路径格式: - scannetppv2: <data_root>/<scene_id>/dslr/resized_undistorted_images/<im
qa_generation/filter_qa_repeat_descriptions.py:217
↓ 1 callersFunctionresolve_vllm_api_url
(vllm_api_url: str | None)
qa_generation/generate_3d_instance_description.py:39
↓ 1 callersFunctionresolve_vllm_api_urls
(vllm_api_urls: Optional[str], vllm_api_url: Optional[str])
qa_generation/filter_qa_repeat_descriptions.py:183
↓ 1 callersMethodrestore
(self, model_args, training_args)
PGSR/scene/gaussian_model.py:98
↓ 1 callersFunctionretry_if_cuda_oom
Makes a function retry itself after encountering pytorch's CUDA OOM error. It will first retry after calling `torch.cuda.empty_cache()`.
sam3/agent/helpers/memory.py:27
↓ 1 callersFunctionrotate_half
(x: torch.Tensor)
sam3/sam/rope.py:123
↓ 1 callersFunctionrun_inference_on_image
( client: OpenAI, image_path: Path, previous_labels: Sequence[str], )
classic_region.py:145
↓ 1 callersFunctionrun_inference_on_image
( client: OpenAI, image_path: Path, previous_labels: Sequence[str], )
classic_vllm.py:150
↓ 1 callersMethodrun_tracker_propagation
( self, frame_idx: int, num_frames: int, reverse: bool, tracker_states
sam3/model/sam3_video_base.py:401
↓ 1 callersMethodrun_tracker_update_execution_phase
( self, frame_idx: int, num_frames: int, reverse: bool, det_out: Dict[
sam3/model/sam3_video_base.py:892
↓ 1 callersMethodrun_tracker_update_planning_phase
( self, frame_idx: int, num_frames: int, reverse: bool, det_out: Dict[
sam3/model/sam3_video_base.py:505
↓ 1 callersFunctionsam3_inference
Run SAM 3 image inference with text prompts and format the outputs
sam3/agent/client_sam3.py:16
↓ 1 callersFunctionsample1obj_common
采样在图像对的两个图像中同时出现的对象。返回 [(image_pair, instance), ...]
qa_generation/generate_two_view_qa.py:541
↓ 1 callersFunctionsample1obj_in_a
采样在图像对的 image A 中出现的对象。返回 [(image_pair, instance), ...]
qa_generation/generate_two_view_qa.py:566
↓ 1 callersFunctionsample2obj1region
从图像对中采样 (object A, object B, region C) 三元组。 约束:region C 必须来自 image B。 约束:region C 的 bbox 不能包含 object A 的中心点。
qa_generation/generate_two_view_qa_region.py:936
↓ 1 callersFunctionsample2obj1region_for_proxy
从图像对中采样 (object A, object B, region C) 三元组。 约束:region C 必须来自 image B。 用于 proxy QA,约束:region C 的 bbox 不能包含 object B 的中心点。
qa_generation/generate_two_view_qa_region.py:1014
← previousnext →701–800 of 1,270, ranked by callers