MCPcopy Create free account

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

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

↓ 4 callersFunctionopposite
(word: str)
qa_generation/templates_object_dpt.py:250
↓ 4 callersFunctionopposite
(word: str)
qa_generation/templates_cam_translation.py:201
↓ 4 callersFunctionplot_bbox
( img_height, img_width, box, box_format="XYXY", relative_coords=True, color="r",
sam3/visualization_utils.py:90
↓ 4 callersMethodpropagate_in_video
Propagate the prompts to get grounding results for the entire video. This method is a generator and yields inference outputs for all
sam3/model/sam3_video_inference.py:250
↓ 4 callersFunctionrandom_color
Args: rgb (bool): whether to return RGB colors or BGR colors. maximum (int): either 255 or 1 Returns: ndarray: a vec
sam3/agent/helpers/color_map.py:104
↓ 4 callersMethodreset_state
Revert `inference_state` to what it was right after initialization.
sam3/model/sam3_video_inference.py:91
↓ 4 callersFunctionsafe_state
(silent)
PGSR/utils/general_utils.py:121
↓ 4 callersFunctionvisualize
Unified visualization function. If zoom_in_index is None: - Render all masks in input_json (equivalent to visualize_masks_from_resul
sam3/agent/viz.py:12
↓ 4 callersMethodwith_pos_embed
(tensor, pos)
sam3/model/decoder.py:70
↓ 3 callersMethod__init__
Args: img_size (int): Input image size. Only relevant for rel pos or rope. patch_size (int): Patch size.
sam3/model/vitdet.py:623
↓ 3 callersMethod__init__
( self, dim, kernel_size=7, padding=3, drop_path=0.0, layer_sc
sam3/model/memory.py:94
↓ 3 callersMethod__init__
( self, box_embeddings=None, box_mask=None, point_embeddings=None, poi
sam3/model/geometry_encoders.py:101
↓ 3 callersMethod__init__
( self, width: int, layers: int, heads: int, mlp_ratio: float = 4.0,
sam3/model/text_encoder_ve.py:91
↓ 3 callersMethod__init__
( self, embedding_dim: int, num_heads: int, downsample_rate: int = 1,
sam3/sam/transformer.py:191
↓ 3 callersMethod__init__
(self, parser: ArgumentParser, name : str, fill_none = False)
PGSR/arguments/__init__.py:20
↓ 3 callersFunction_create_text_labels
Args: classes (list[int] or None): scores (list[float] or None): class_names (list[str] or None): is_crowd (list[
sam3/agent/helpers/visualizer.py:246
↓ 3 callersFunction_create_vision_backbone
Create SAM3 visual backbone with ViT and neck.
sam3/model_builder.py:512
↓ 3 callersMethod_encode_xy
(self, x, y)
sam3/model/position_encoding.py:52
↓ 3 callersMethod_forward_grounding
(self, state: Dict)
sam3/model/sam3_image_processor.py:183
↓ 3 callersMethod_get_coords
(H, W, device)
sam3/model/decoder.py:326
↓ 3 callersMethod_get_image_feature
Compute the image features on a given frame.
sam3/model/sam3_tracking_predictor.py:1012
↓ 3 callersMethod_get_maskmem_pos_enc
`maskmem_pos_enc` is the same across frames and objects, so we cache it as a constant in the inference session to reduce session stor
sam3/model/sam3_tracking_predictor.py:1157
↓ 3 callersFunction_infer_mask_index_path
从 images 路径列表中推断 mask_index.json 的路径。 Args: scene_id: 场景 ID images: mask 图像路径列表(来自 bbox_json 的 images 字段) Returns:
qa_generation/templates_object_relpos.py:28
↓ 3 callersFunction_instance_center_world
(inst: Dict)
qa_generation/generate_two_view_qa_region.py:614
↓ 3 callersMethod_jitter
Randomly modifies given color to produce a slightly different color than the color given. Args: color (tuple[double]): a
sam3/agent/helpers/visualizer.py:1446
↓ 3 callersFunction_load_img_as_tensor
Load and resize an image and convert it into a PyTorch tensor.
sam3/model/io_utils.py:330
↓ 3 callersFunction_load_mask_index
从 images 路径列表中推断并加载 mask_index.json 文件。 Args: scene_id: 场景 ID images: mask 图像路径列表(来自 bbox_json 的 images 字段) Returns:
qa_generation/templates_object_dist.py:173
↓ 3 callersMethod_load_one_frame
(self, idx)
sam3/model/io_utils.py:567
↓ 3 callersFunction_point_inside_region_bbox
判断世界坐标点是否在 region bbox 内(优先 OBB,失败则退化到 AABB)。
qa_generation/generate_two_view_qa_region.py:621
↓ 3 callersMethod_run_single_frame_inference
Run tracking on a single frame based on current inputs and previous memory.
sam3/model/sam3_tracking_predictor.py:1051
↓ 3 callersFunction_translation_info
(frames: Sequence["FrameItem"], pair: Tuple[int, int, float])
qa_generation/templates_cam_translation.py:137
↓ 3 callersMethodadd_prompt
Add text, point or box prompts on a single frame. This method returns the inference outputs only on the prompted frame. Note
sam3/model/sam3_video_inference.py:837
↓ 3 callersMethodarea
(self)
sam3/agent/helpers/visualizer.py:157
↓ 3 callersFunctionaxis_dir_word
(axis_name: str, val_deg: float)
qa_generation/templates_cam_rotation.py:91
↓ 3 callersFunctionaxis_dir_word
(axis_name: str, val_deg: float)
qa_generation/templates_cam_rotation_chatgpt.py.py:95
↓ 3 callersFunctionbasic_clean
(text)
sam3/model/tokenizer_ve.py:68
↓ 3 callersFunctionbuild_object_cross_dir_entry
构造"image A 的物体1 + image B 的物体2,问物体2在image B的方位"QA(MCQ)。
qa_generation/templates_object_dist.py:816
↓ 3 callersFunctionbuild_object_proxy_dir_entry
构造"给定 obj1 相对 obj2 的方向,问 obj3 相对 obj2 的方向"QA(MCQ)。 使用代理坐标系(由 obj1->obj2 与 assumed_dir 确定),仅输出 N/E/S/W。
qa_generation/templates_object_relpos.py:505
↓ 3 callersFunctionbuild_rotation
(r)
PGSR/utils/general_utils.py:80
↓ 3 callersFunctioncompose_mvp
(proj, view, model=None)
PGSR/Mesh2DepthHelper/Mesh2DepthHelper.py:28
↓ 3 callersFunctioncompute_obb
计算 OBB(定向包围盒),返回 (transform, extents)。 Returns: transform: 4x4 变换矩阵(从 OBB 局部坐标系到世界坐标系) extents: (3,) OBB 的尺寸
3d_bounding_instance_gs_region.py:589
↓ 3 callersMethoddevice
(self)
sam3/agent/helpers/masks.py:121
↓ 3 callersMethoddraw_binary_mask
Args: binary_mask (ndarray): numpy array of shape (H, W), where H is the image height and W is the image width. E
sam3/agent/helpers/visualizer.py:1229
↓ 3 callersMethoddraw_polygon
Args: segment: numpy array of shape Nx2, containing all the points in the polygon. color: color of the polygon. Refer
sam3/agent/helpers/visualizer.py:1408
↓ 3 callersMethodextract
(self, args)
PGSR/arguments/__init__.py:65
↓ 3 callersFunctionextract_mask_label
从mask key中提取A/B/C/1/2标签.
qa_generation/convert_qa_to_llamafactory.py:207
↓ 3 callersMethodforward_grounding
( self, backbone_out, find_input, find_target, geometric_prompt: Promp
sam3/model/sam3_image.py:442
↓ 3 callersMethodgetTestCameras
(self, scale=1.0)
PGSR/scene/__init__.py:150
↓ 3 callersFunctiongetWorld2View2
(R, t, translate=np.array([.0, .0, .0]), scale=1.0)
PGSR/utils/graphics_utils.py:122
↓ 3 callersFunctionget_activation_fn
Return an activation function given a string
sam3/model/model_misc.py:206
↓ 3 callersFunctionget_combined_args
(parser : ArgumentParser)
PGSR/arguments/__init__.py:121
↓ 3 callersMethodget_rays
(self, scale=1.0)
PGSR/scene/cameras.py:191
↓ 3 callersFunctionimage_to_base64
将 PIL Image 转换为 base64 编码的字符串。
3d_bounding_instance_gs_rerun_da3.py:99
↓ 3 callersFunctionimage_to_base64
将 PIL Image 转换为 base64 编码的字符串。
3d_bounding_instance_gs_region.py:99
↓ 3 callersFunctioninverse_sigmoid
The inverse function for sigmoid activation function. Note: It might face numberical issues with fp16 small eps.
sam3/model/model_misc.py:20
↓ 3 callersFunctionl1_loss
(network_output, gt)
PGSR/utils/loss_utils.py:18
↓ 3 callersFunctionload_mask
(mask_path: Path)
3d_bounding_instance_gs_rerun_da3.py:427
↓ 3 callersMethodload_ply
(self, path)
PGSR/scene/gaussian_model.py:273
↓ 3 callersFunctionmask_to_box
compute bounding box given an input mask Inputs: - masks: [B, 1, H, W] tensor Returns: - box_coords: [B, 1, 4], contains (x, y)
sam3/model/sam3_tracker_utils.py:57
↓ 3 callersFunctionobb_from_corners_pca
Fallback: estimate center, axes, extents from the 8 corners using PCA. PCA on the 8 corners of a box recovers its axes (up to sign/permutati
postprocess_3d_bbox_aabb.py:148
↓ 3 callersFunctionopengl_proj_from_intrinsics
(fx, fy, cx, cy, w, h, znear, zfar, device)
PGSR/Mesh2DepthHelper/Mesh2DepthHelper.py:9
↓ 3 callersFunctionparse_corners
(instance: Dict[str, Any])
postprocess_3d_bbox_aabb.py:114
↓ 3 callersFunctionparse_obb_transform_extents
Returns (center(3,), R(3,3), extents_full(3,)) if available, else None.
postprocess_3d_bbox_aabb.py:128
↓ 3 callersFunctionplot_mask
(mask, color="r", ax=None)
sam3/visualization_utils.py:145
↓ 3 callersMethodprune_points
(self, mask)
PGSR/scene/gaussian_model.py:349
↓ 3 callersFunctionqvec2rotmat
(qvec)
PGSR/scene/colmap_loader.py:43
↓ 3 callersMethodrelease
(self)
sam3/model/io_utils.py:473
↓ 3 callersFunctionrender_zoom_in
Render a two-panel visualization with a cropped original view (left/upper) and a zoomed-in mask overlay (right/lower), then return it as a PI
sam3/agent/helpers/zoom_in.py:14
↓ 3 callersMethodreset_image
Args: img: same as in __init__
sam3/agent/helpers/visualizer.py:310
↓ 3 callersFunctionreshape_for_broadcast
(freqs_cis: torch.Tensor, x: torch.Tensor)
sam3/sam/rope.py:48
↓ 3 callersFunctionrle_encode
Encodes a collection of masks in RLE format This function emulates the behavior of the COCO API's encode function, but is executed partially
sam3/agent/helpers/rle.py:11
↓ 3 callersFunctionsample2obj_across
从图像对的两个图像中分别采样所有不同的对象对。返回 [(image_pair, (inst1, inst2)), ...] inst1来自图像1, inst2来自图像2 Args: max_inst_pairs_per_image_pair: 每个 imag
qa_generation/generate_two_view_qa.py:590
↓ 3 callersFunctionsend_generate_request
Sends a request to the OpenAI-compatible API endpoint using the OpenAI client library. Args: server_url (str): The base URL of the s
sam3/agent/client_llm.py:34
↓ 3 callersMethodset_requires_grad
(self, state: bool)
PGSR/lpipsPyTorch/modules/networks.py:46
↓ 3 callersFunctiontl_any
(a, dim=0)
sam3/perflib/triton/connected_components.py:15
↓ 3 callersMethodto
(self, *args, **kwargs)
sam3/model/maskformer_segmentation.py:97
↓ 3 callersMethodtrack_step
( self, frame_idx, is_init_cond_frame, current_vision_feats, current_v
sam3/model/sam3_tracker_base.py:932
↓ 3 callersFunctionwrap180
Map angle to [-180, 180).
qa_generation/templates_object_relpos.py:237
↓ 2 callersFunctionSH2RGB
(sh)
PGSR/utils/sh_utils.py:117
↓ 2 callersMethod__getitem__
(self, index)
sam3/model/io_utils.py:376
↓ 2 callersMethod__getitem__
(self, index)
sam3/model/utils/sam2_utils.py:71
↓ 2 callersMethod__init__
( self, layer: nn.Module, num_layers: int, d_model: int, num_feature_l
sam3/model/encoder.py:270
↓ 2 callersMethod_assign_new_det_to_gpus
Distribute the new objects to the GPUs with the least workload.
sam3/model/sam3_video_base.py:1298
↓ 2 callersFunction_bbox_aabb
计算3D bbox的轴对齐包围盒(AABB)。 Returns: (min_corner, max_corner) 两个3D点,表示AABB的最小和最大角点
qa_generation/templates_object_relpos.py:324
↓ 2 callersFunction_bbox_center
(bbox: Sequence[Sequence[float]])
qa_generation/templates_object_dpt.py:31
↓ 2 callersFunction_bbox_center
(bbox: Sequence[Sequence[float]])
qa_generation/templates_object_mind_dpt.py:25
↓ 2 callersFunction_bbox_longest_side
(bbox: Sequence[Sequence[float]], tol: float = 1e-4)
qa_generation/templates_object_dist.py:50
↓ 2 callersFunction_bbox_to_array
(bbox: List)
qa_generation/generate_two_view_qa_region.py:601
↓ 2 callersFunction_bbox_top_z
(bbox: Sequence[Sequence[float]])
qa_generation/templates_object_dist.py:37
↓ 2 callersMethod_build_multigpu_buffer_next_chunk
Compute detection outputs on a chunk of frames and store their results in multigpu_buffer.
sam3/model/sam3_image.py:792
↓ 2 callersFunction_build_size_mcq_options
( label1: str, label2: str, answer_text: str, same_text: str, mode: str, rng: random.R
qa_generation/templates_object_dist.py:139
↓ 2 callersFunction_build_stem_to_insts_map
构建 stem -> instances 映射,过滤 ignore_labels。
qa_generation/generate_two_view_qa.py:521
↓ 2 callersMethod_build_tracker_output
( self, inference_state, frame_idx, refined_obj_id_to_mask=None )
sam3/model/sam3_video_inference.py:550
↓ 2 callersMethod_clear_non_cond_mem_around_input
Remove the non-conditioning memory around the input frame. When users provide correction clicks, the surrounding frames' non-conditio
sam3/model/sam3_tracking_predictor.py:1301
↓ 2 callersFunction_create_geometry_encoder
Create geometry encoder with all its components.
sam3/model_builder.py:246
↓ 2 callersMethod_create_grayscale_image
Create a grayscale version of the original image. The colors in masked area, if given, will be kept.
sam3/agent/helpers/visualizer.py:1466
↓ 2 callersFunction_create_position_encoding
Create position encoding for visual backbone.
sam3/model_builder.py:72
↓ 2 callersFunction_create_sam3_transformer
Create SAM3 transformer encoder and decoder.
sam3/model_builder.py:529
↓ 2 callersFunction_create_segmentation_head
Create segmentation head with pixel decoder.
sam3/model_builder.py:218
↓ 2 callersFunction_create_text_encoder
Create SAM3 text encoder.
sam3/model_builder.py:500
← previousnext →101–200 of 1,270, ranked by callers