MCPcopy Create free account

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

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

↓ 1 callersMethod_get_torch_and_gpu_properties
Get a string for PyTorch and GPU properties (for logging and debugging).
sam3/model/sam3_video_predictor.py:277
↓ 1 callersMethod_get_tpos_enc
(self, rel_pos_list, device, max_abs_pos=None, dummy=False)
sam3/model/sam3_tracker_base.py:162
↓ 1 callersMethod_get_visual_prompt
Handle the case of visual prompt. Currently, in the inference API we do not explicitly distinguish between initial box as visual prom
sam3/model/sam3_video_inference.py:178
↓ 1 callersFunction_get_zoom_in_box
(mask_box_xywh, img_h, img_w, mask_area)
sam3/agent/helpers/zoom_in.py:64
↓ 1 callersMethod_has_object_been_refined
(self, inference_state, obj_id)
sam3/model/sam3_video_inference.py:1211
↓ 1 callersMethod_init_box
(self, box_embeddings, box_labels, box_mask, box_seq_len, bs, device)
sam3/model/geometry_encoders.py:294
↓ 1 callersMethod_init_dist_pg_cpu
(self)
sam3/model/sam3_video_base.py:140
↓ 1 callersMethod_init_mask
( self, mask_embeddings, mask_labels, mask_mask, mask_seq_len, bs, device )
sam3/model/geometry_encoders.py:319
↓ 1 callersMethod_init_new_tracker_state
(self, inference_state)
sam3/model/sam3_video_inference.py:984
↓ 1 callersMethod_init_point
Identical to _init_box. Except that C=2 for points (vs. 4 for boxes).
sam3/model/geometry_encoders.py:303
↓ 1 callersMethod_init_seq_len_and_device
( self, box_embeddings, point_embeddings, mask_embeddings )
sam3/model/geometry_encoders.py:251
↓ 1 callersFunction_is_named_tuple
(x)
sam3/model/utils/misc.py:10
↓ 1 callersFunction_keypoints_to_heatmap
Encode keypoint locations into a target heatmap for use in SoftmaxWithLoss across space. Maps keypoints from the half-open interval [x1, x2)
sam3/agent/helpers/keypoints.py:110
↓ 1 callersFunction_load_checkpoint
Load model checkpoint from file.
sam3/model_builder.py:537
↓ 1 callersFunction_load_point_cloud
(ply_path: Path)
qa_generation/generate_two_view_qa_region.py:199
↓ 1 callersFunction_load_point_cloud
(ply_path: Path)
qa_generation/generate_two_view_qa.py:266
↓ 1 callersFunction_merge_point_clouds
(point_clouds)
PGSR/scene/dataset_readers.py:476
↓ 1 callersFunction_parse_scene_id_list
(s: Optional[str])
qa_generation/generate_two_view_qa_region.py:1159
↓ 1 callersFunction_parse_scene_id_list
(s: Optional[str])
qa_generation/generate_two_view_qa.py:792
↓ 1 callersMethod_prepare_backbone_features_per_frame
Compute the image backbone features on the fly for the given img_ids.
sam3/model/sam3_tracker_base.py:482
↓ 1 callersMethod_prepare_memory_conditioned_features
Fuse the current frame's visual feature map with previous memory.
sam3/model/sam3_tracker_base.py:560
↓ 1 callersMethod_prepare_multilevel_features
(self, srcs, masks, pos_embeds)
sam3/model/encoder.py:322
↓ 1 callersMethod_process_hotstart
Handle hotstart heuristics to remove unmatched or duplicated objects.
sam3/model/sam3_video_base.py:1311
↓ 1 callersFunction_prune_messages_for_next_round
Return a new messages list that contains only: 1) messages[:2] (with optional warning text added to the second message's content) 2) the lates
sam3/agent/agent_core.py:54
↓ 1 callersMethod_prune_optimizer
(self, mask)
PGSR/scene/gaussian_model.py:331
↓ 1 callersMethod_recondition_masklets
( self, frame_idx, det_out: Dict[str, Tensor], trk_id_to_max_iou_high_conf_det
sam3/model/sam3_video_base.py:453
↓ 1 callersMethod_reset_parameters
(self)
sam3/model/model_misc.py:149
↓ 1 callersMethod_run_decoder
( self, pos_embed, memory, src_mask, out, prompt, prom
sam3/model/sam3_image.py:254
↓ 1 callersMethod_run_encoder
( self, backbone_out, find_input, prompt, prompt_mask, encoder
sam3/model/sam3_image.py:214
↓ 1 callersMethod_run_segmentation_heads
( self, out, backbone_out, img_ids, vis_feat_sizes, encoder_hi
sam3/model/sam3_image.py:388
↓ 1 callersFunction_sanitize_entity_name
(name: str)
qa_generation/generate_two_view_qa_region.py:173
↓ 1 callersFunction_sanitize_entity_name
(name: str)
qa_generation/generate_two_view_qa.py:240
↓ 1 callersFunction_send_blueprint
(rr)
qa_generation/generate_two_view_qa_region.py:223
↓ 1 callersFunction_send_blueprint
(rr)
qa_generation/generate_two_view_qa.py:290
↓ 1 callersFunction_setup_device_and_mode
Setup model device and evaluation mode.
sam3/model_builder.py:562
↓ 1 callersMethod_setup_figure
Args: Same as in :meth:`__init__()`. Returns: fig (matplotlib.pyplot.figure): top level container for all th
sam3/agent/helpers/visualizer.py:285
↓ 1 callersMethod_setup_rel_pos
(self, rel_pos_zero_init: bool = True)
sam3/model/vitdet.py:394
↓ 1 callersMethod_setup_rope_freqs
(self)
sam3/model/vitdet.py:421
↓ 1 callersFunction_setup_tf32
Enable TensorFloat-32 for Ampere GPUs if available.
sam3/model_builder.py:46
↓ 1 callersFunction_ssim
(img1, img2, window, window_size, channel, size_average=True)
PGSR/utils/loss_utils.py:44
↓ 1 callersFunction_stable_color_u8
(key: str)
qa_generation/generate_two_view_qa_region.py:166
↓ 1 callersFunction_stable_color_u8
(key: str)
qa_generation/generate_two_view_qa.py:233
↓ 1 callersFunction_stable_seed
(*parts: str)
qa_generation/templates_cam_rotation.py:12
↓ 1 callersFunction_stable_seed
(*parts: str)
qa_generation/templates_cam_rotation_chatgpt.py.py:11
↓ 1 callersMethod_start_video_loading
(self)
sam3/model/io_utils.py:572
↓ 1 callersMethod_start_worker_processes
Start worker processes for handling model inference.
sam3/model/sam3_video_predictor.py:373
↓ 1 callersMethod_suppress_detections_close_to_boundary
Suppress detections too close to image edges (for normalized boxes). boxes: (N, 4) in xyxy format, normalized [0,1] margin:
sam3/model/sam3_video_base.py:293
↓ 1 callersMethod_suppress_object_pw_area_shrinkage
This function suppresses masks that shrink in area after applying pixelwise non-overlapping constriants. Note that the final output c
sam3/model/sam3_tracking_predictor.py:1334
↓ 1 callersMethod_suppress_overlapping_based_on_recent_occlusion
Suppress overlapping masks based on the most recent occlusion information. If an object is removed by hotstart, we always suppress it if it o
sam3/model/sam3_video_base.py:819
↓ 1 callersMethod_suppress_shrinked_masks
( self, pred_masks, new_pred_masks, shrink_threshold=0.3 )
sam3/model/sam3_tracking_predictor.py:1320
↓ 1 callersMethod_tracker_remove_objects
Remove an object from SAM2 inference states. This would remove the object from all frames in the video.
sam3/model/sam3_video_base.py:1591
↓ 1 callersMethod_tracker_update_memories
Run Sam2 memory encoder, enforcing non-overlapping constraints globally.
sam3/model/sam3_video_base.py:1437
↓ 1 callersMethod_transform_frame
(self, frame)
sam3/model/io_utils.py:646
↓ 1 callersMethod_update_scores_and_boxes
( self, out, hs, reference_boxes, prompt, prompt_mask,
sam3/model/sam3_image.py:302
↓ 1 callersMethod_use_mask_as_output
Directly turn binary `mask_inputs` into a output mask logits without using SAM. (same input and output shapes as in _forward_sam_head
sam3/model/sam3_tracker_base.py:389
↓ 1 callersMethod_use_multimask
Whether to use multimask output in the SAM head.
sam3/model/sam3_tracker_base.py:1108
↓ 1 callersFunction_validate_color_hex
(color_hex: str)
sam3/agent/helpers/som_utils.py:76
↓ 1 callersMethod_warm_up_vg_propagation
(self, inference_state, start_frame_idx=0)
sam3/model/sam3_video_inference.py:651
↓ 1 callersMethodacquire
(self)
sam3/model/io_utils.py:463
↓ 1 callersMethodadd_densification_stats
(self, viewspace_point_tensor, viewspace_point_tensor_abs, update_filter)
PGSR/scene/gaussian_model.py:518
↓ 1 callersMethodadd_fake_objects_to_inference_state
( self, inference_state, num_objects, frame_idx )
sam3/model/sam3_video_inference.py:738
↓ 1 callersMethodadd_new_points
Deprecated method. Please use `add_new_points_or_box` instead.
sam3/model/sam3_tracking_predictor.py:460
↓ 1 callersMethodadd_new_points_or_box
Add new points to a frame.
sam3/model/sam3_tracking_predictor.py:179
↓ 1 callersMethodadd_prompt
Add text, box and/or point prompt on a specific video frame.
sam3/model/sam3_video_predictor.py:131
↓ 1 callersMethodadd_tracker_new_points
Add a new point prompt to Tracker. Suppporting instance refinement to existing objects by passing existing obj_id or adding a new object by pa
sam3/model/sam3_video_inference.py:1397
↓ 1 callersFunctionagent_inference
Given a text prompt and an image, this tool will perform all aspects of agentic problem solving, while saving sam3 and MLLM outputs to their
sam3/agent/agent_core.py:122
↓ 1 callersFunctionalign_obb_to_up
Build a new OBB orientation R_new whose z-axis is aligned to up_axis, with minimal rotation. extent_mode: - "keep": keep original s
postprocess_3d_bbox_aabb.py:205
↓ 1 callersMethodappend_boxes
(self, boxes, labels, mask=None)
sam3/model/geometry_encoders.py:331
↓ 1 callersFunctionapply_mask_to_image
将mask应用到图像上,用红色轮廓圈出物体(只绘制轮廓,不填充)
qa_generation/generate_3d_instance_description.py:78
↓ 1 callersFunctionapply_rotary_enc
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis: torch.Tensor, repeat_freqs_k: bool = False, )
sam3/model/vitdet.py:68
↓ 1 callersFunctionapply_rotary_enc
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis: torch.Tensor, repeat_freqs_k: bool = False, )
sam3/sam/rope.py:56
↓ 1 callersFunctionapply_rotary_enc_real
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis_real: torch.Tensor, freqs_cis_imag: torch.Tens
sam3/sam/rope.py:90
↓ 1 callersMethodattention
( self, q_x: torch.Tensor, k_x: Optional[torch.Tensor] = None, v_x: Optional[t
sam3/model/text_encoder_ve.py:54
↓ 1 callersFunctionaxis_word
(axis: str, value: float)
qa_generation/templates_object_dpt.py:212
↓ 1 callersMethodback_convert
(self, targets)
sam3/model/sam3_image.py:583
↓ 1 callersMethodbackward
(ctx, grad_out_color, grad_radii, grad_out_observe, grad_out_all_map, grad_out_plane_depth)
PGSR/submodules/diff-plane-rasterization/diff_plane_rasterization/__init__.py:109
↓ 1 callersFunctionbalanced_chunks
Split N items into chunks <= max_chunk, but as even as possible. Returns a list of (start, end) index ranges.
inference_da3_scannetppv2.py:725
↓ 1 callersMethodbbox
(self)
sam3/agent/helpers/visualizer.py:160
↓ 1 callersFunctionbbox_corners_from_obb
将 OBB (transform, extents) 转成 8 个角点的 JSON 格式。
3d_bounding_instance_gs_rerun_da3.py:554
↓ 1 callersFunctionbbox_corners_from_obb
将 OBB (transform, extents) 转成 8 个角点的 JSON 格式。
3d_bounding_instance_gs_region.py:636
↓ 1 callersFunctionbitget
(val, idx)
sam3/visualization_utils.py:607
↓ 1 callersFunctionbox_iou
Batched version of box_iou. Boxes should be in [x0, y0, x1, y1] format. Inputs: - boxes1: Tensor of shape (..., N, 4) - boxes2: Tens
sam3/model/box_ops.py:91
↓ 1 callersFunctionbox_xywh_to_cxcywh
(x)
sam3/model/box_ops.py:29
↓ 1 callersMethodbpe
(self, token)
sam3/model/tokenizer_ve.py:168
↓ 1 callersFunctionbroadcat
(tensors, dim=-1)
sam3/sam/rope.py:118
↓ 1 callersFunctionbuild_cam_rotation_entry
Camera rotation MCQ: - Keep your verified R_rel and YXZ as_euler. - Choose two most significant axes among yaw/pitch/roll. - De
qa_generation/templates_cam_rotation.py:18
↓ 1 callersFunctionbuild_cam_translation_distance_exact_entry
Exact distance question (numeric answer, meters).
qa_generation/templates_cam_translation.py:53
↓ 1 callersFunctionbuild_cam_translation_distance_threshold_entry
Thresholded distance yes/no question with auto/semi-random threshold near the true distance.
qa_generation/templates_cam_translation.py:87
↓ 1 callersFunctionbuild_cam_translation_main_dir_entry
Main-direction template for camera translation QA.
qa_generation/templates_cam_translation.py:12
↓ 1 callersMethodbuild_causal_mask
(self)
sam3/model/text_encoder_ve.py:220
↓ 1 callersFunctionbuild_image_label_index
Returns: - stem -> label -> list[(ins_id, description)] - stem -> ins_id -> {"label": ..., "description": ...}
qa_generation/filter_qa_repeat_descriptions.py:50
↓ 1 callersFunctionbuild_messages
(image: Image.Image, previous_labels: Sequence[str])
classic_region.py:88
↓ 1 callersFunctionbuild_messages
(image: Image.Image, previous_labels: Sequence[str])
classic_vllm.py:91
↓ 1 callersFunctionbuild_object_dir_entry
基于 bbox json 与 mask 路径构造“给定 A 视角的标记,问物体在 B 视角相对方向”QA。
qa_generation/templates_object_dpt.py:495
↓ 1 callersFunctionbuild_object_dist_entry
构造"给定 A 视角中的物体 1 和 B 视角中的物体 2,问它们之间的 3D 距离是多少"的 QA。
qa_generation/templates_object_dist.py:303
↓ 1 callersFunctionbuild_object_dpt_entry
基于 bbox json 与 mask 路径构造“给定 A 视角的 mask,问物体在 B 视角距离多少”QA。 json_path: 3D bbox 结果文件,单元素格式示例: { "ins_id": "1", "label": "b
qa_generation/templates_object_dpt.py:305
↓ 1 callersFunctionbuild_object_height_entry
构造"给定 A 视角的物体1 和 B 视角的物体2,问哪个更高/更高(看顶部)"的 QA(MCQ)。
qa_generation/templates_object_dist.py:488
↓ 1 callersMethodbuild_outputs
( self, frame_idx: int, num_frames: int, reverse: bool, det_out: Dict[
sam3/model/sam3_video_base.py:935
↓ 1 callersFunctionbuild_pipeline_defaults
()
3d_bounding_instance_gs_rerun_da3.py:709
↓ 1 callersFunctionbuild_pipeline_defaults
()
3d_bounding_instance_gs_region.py:791
← previousnext →401–500 of 1,270, ranked by callers