MCPcopy Create free account

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

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

Function_nms_suppression_kernel
NMS suppression kernel. Args: iou_mask_ptr: Pointer to precomputed IoU mask, shape: (N, N). keep_mask_ptr: Pointer to keep mask t
sam3/perflib/triton/nms.py:23
Method_obj_idx_to_id
Map model-side object index to client-side object id.
sam3/model/sam3_tracking_predictor.py:170
Function_pointer_jump_kernel
Pointer jumping kernel with double buffering to avoid race conditions. Reads from labels_in_ptr and writes to labels_out_ptr.
sam3/perflib/triton/connected_components.py:319
Method_postprocess_out
(self, out: Dict, multimask_output: bool = False)
sam3/model/sam3_image.py:495
Function_project_cam
将相机坐标投影到图像坐标
qa_generation/templates_object_relpos.py:163
Function_resolve
(path_str: str)
3d_bounding_instance_gs_rerun_da3.py:693
Function_resolve
(path_str: str)
3d_bounding_instance_gs_region.py:775
Function_scannetv2_name_sort_key
(name: str)
PGSR/scene/dataset_readers.py:618
Function_scannetv2_sort_key
(cam: CameraInfo)
PGSR/scene/dataset_readers.py:611
Method_slice_state
(output_dict, storage_key)
sam3/model/sam3_tracking_predictor.py:1252
Method_trim_past_out
(past_out, current_out)
sam3/model/sam3_tracker_base.py:1070
Method_worker_process_command_loop
The command loop for each worker process. It listens to commands from the main process and executes them using the model.
sam3/model/sam3_video_predictor.py:446
Function_world_to_cam
将世界坐标转换为相机坐标
qa_generation/templates_object_relpos.py:152
Function_wrap180
(deg: float)
qa_generation/templates_cam_rotation_chatgpt.py.py:17
Functionact_ckpt_wrapper
( *args, act_ckpt_enable: bool = True, use_reentrant: bool = False, **kwargs )
sam3/model/act_ckpt_utils.py:47
Methodadd_geometric_prompt
Adds a box prompt and run the inference. The image needs to be set, but not necessarily the text prompt. The box is assumed to be in [
sam3/model/sam3_image_processor.py:128
Methodadd_prompt
( self, inference_state, frame_idx, text_str=None, boxes_xywh=None,
sam3/model/sam3_video_inference.py:1357
Functionann_to_rle
Convert annotation which can be polygons, uncompressed RLE to RLE. Args: ann (dict) : annotation object Returns: ann (rle)
sam3/agent/helpers/rle.py:103
Methodappend_masks
(self, masks, labels=None, attn_mask=None)
sam3/model/geometry_encoders.py:377
Methodappend_points
(self, points, labels, mask=None)
sam3/model/geometry_encoders.py:354
Methodarea
Computes the area of all the boxes. Returns: torch.Tensor: a vector with areas of each box.
sam3/agent/helpers/rotated_boxes.py:260
Methodarea
Computes area of the mask. Only works with Polygons, using the shoelace formula: https://stackoverflow.com/questions/24467972
sam3/agent/helpers/masks.py:447
Methodas_bgr
Returns the color as a BGR tuple. Returns: Tuple[int, int, int]: BGR tuple. Example: ```
sam3/agent/helpers/som_utils.py:152
Methodas_rgb
Returns the color as an RGB tuple. Returns: Tuple[int, int, int]: RGB tuple. Example: ```
sam3/agent/helpers/som_utils.py:137
Functionassociate_det_trk
Optimized implementation of detection <-> track association that minimizes DtoH syncs. Args: det_masks: (N, H, W) tensor of predicte
sam3/perflib/associate_det_trk.py:11
Methodback_convert
(self, targets)
sam3/model/sam3_video_inference.py:957
Methodblack
(cls)
sam3/agent/helpers/som_utils.py:172
Methodblue
(cls)
sam3/agent/helpers/som_utils.py:184
Functionbox_cxcywh_to_xywh
(x)
sam3/model/box_ops.py:17
Functionbox_xywh_inter_union
( boxes1: torch.Tensor, boxes2: torch.Tensor )
sam3/model/box_ops.py:196
Functionbox_xyxy_to_cxcywh
(x)
sam3/model/box_ops.py:41
Functionbranchy_hungarian_better_uses_the_cpu
( cost_matrix, row_ind, col_ind, iou_list, det_masks, track_masks )
sam3/perflib/associate_det_trk.py:90
Functionbuild_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_chatgpt.py.py:22
Methodbuild_covariance_from_scaling_rotation
(scaling, scaling_modifier, rotation)
PGSR/scene/gaussian_model.py:38
Functionbuild_object_dpt_entry
基于 bbox json 与 mask 路径构造“给定 A 视角的 mask,问物体在 B 视角距离多少”QA。 json_path: 3D bbox 结果文件,单元素格式示例: { "ins_id": "1", "label": "b
qa_generation/templates_object_mind_dpt.py:60
Functionbuild_object_orient_entry
基于 bbox json 与 mask 路径构造“给定 A 视角的 mask,问物体在 B 视角的方位”QA。 json_path: 3D bbox 结果文件,单元素格式示例: { "ins_id": "1", "label": "be
qa_generation/templates_object_mind_dpt.py:172
Functionbuild_sam3_video_predictor
(*model_args, gpus_to_use=None, **model_kwargs)
sam3/model_builder.py:798
Functionbuild_scaling
(s)
PGSR/utils/general_utils.py:103
Methodby_idx
Return the color at a given index in the palette. Args: idx (int): Index of the color in the palette. Returns:
sam3/agent/helpers/som_utils.py:228
Functionc2w_to_view
(c2w)
PGSR/Mesh2DepthHelper/Mesh2DepthHelper.py:59
Methodcat
Concatenates a list of Keypoints into a single Keypoints Arguments: keypoints_list (list[Keypoints]) Returns:
sam3/agent/helpers/keypoints.py:90
Methodcat
Concatenates a list of PolygonMasks into a single PolygonMasks Arguments: polymasks_list (list[PolygonMasks]) R
sam3/agent/helpers/masks.py:467
Functionclean_mesh
(mesh, min_len=1000)
PGSR/render_cuda.py:31
Functionclean_mesh
(mesh, min_len=1000)
PGSR/render.py:31
Methodclip
Clip (in place) the boxes by limiting x coordinates to the range [0, width] and y coordinates to the range [0, height]. For
sam3/agent/helpers/rotated_boxes.py:279
Methodclip_grad
(self, norm=1.0)
PGSR/scene/gaussian_model.py:224
Methodclone
Clone the RotatedBoxes. Returns: RotatedBoxes
sam3/agent/helpers/rotated_boxes.py:247
Functioncolormap
Args: rgb (bool): whether to return RGB colors or BGR colors. maximum (int): either 255 or 1 Returns: ndarray: a flo
sam3/agent/helpers/color_map.py:88
Functioncompiled_fn_wrapper
(*args, **kwargs)
sam3/perflib/compile.py:40
Functioncompute_axial_cis
( dim: int, end_x: int, end_y: int, theta: float = 10000.0, scale_pos: float = 1.0, of
sam3/model/vitdet.py:41
Functioncompute_axial_cis
( dim: int, end_x: int, end_y: int, theta: float = 10000.0, scale_pos: float = 1.0, of
sam3/sam/rope.py:24
Methodcontrasting_color
Returns 'white' or 'black' depending on which color contrasts more with the given RGB value.
sam3/agent/helpers/visualizer.py:1043
Functionconvert_coco_to_masklet_format
Convert COCO format annotations to format expected by render_masklet_frame
sam3/visualization_utils.py:521
Functioncreate_white_mask_image
创建白色mask图片
qa_generation/convert_qa_to_llamafactory.py:184
Methodcrop_and_resize
Crop each bitmask by the given box, and resize results to (mask_size, mask_size). This can be used to prepare training targets for Ma
sam3/agent/helpers/masks.py:201
Methodcrop_and_resize
Crop each mask by the given box, and resize results to (mask_size, mask_size). This can be used to prepare training targets for Mask
sam3/agent/helpers/masks.py:415
Functiondepth_to_pointcloud_torch_batched
depth: (N, H, W) intrinsics: (N, 3, 3) extrinsics: (N, 4, 4) -- world-to-camera images: (N, H, W, 3) conf: (N, H, W) or None
inference_da3_scannetppv2.py:372
Methoddevice
(self)
sam3/model/sam1_task_predictor.py:448
Methoddevice
(self)
sam3/model/maskformer_segmentation.py:93
Methoddevice
(self)
sam3/model/sam3_video_base.py:136
Methoddevice
(self)
sam3/model/sam3_tracker_base.py:159
Methoddevice
(self)
sam3/agent/helpers/masks.py:334
Methoddevice
(self)
sam3/agent/helpers/masks.py:507
Functiondnormvdv
PGSR/submodules/diff-plane-rasterization/cuda_rasterizer/auxiliary.h:107
Functiondnormvdz
PGSR/submodules/diff-plane-rasterization/cuda_rasterizer/auxiliary.h:99
Methoddraw_binary_mask_with_number
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:1292
Functiondraw_box_on_image
Draws a rectangle on a given PIL image using the provided box coordinates in xywh format. :param image: PIL.Image - The image on which to dra
sam3/visualization_utils.py:56
Methoddraw_dataset_dict
Draw annotations/segmentaions in Detectron2 Dataset format. Args: dic (dict): annotation/segmentation data of one image,
sam3/agent/helpers/visualizer.py:608
Methoddraw_instance_predictions
Draw instance-level prediction results on an image. Args: predictions (Instances): the output of an instance detection/s
sam3/agent/helpers/visualizer.py:417
Functiondraw_masks_to_frame
( frame: np.ndarray, masks: np.ndarray, colors: np.ndarray )
sam3/visualization_utils.py:622
Methoddraw_soft_mask
Args: soft_mask (ndarray): float array of shape (H, W), each value in [0, 1]. color: color of the mask. Refer to `mat
sam3/agent/helpers/visualizer.py:1378
Functionedt_kernel
(inputs_ptr, outputs_ptr, v, z, height, width, horizontal: tl.constexpr)
sam3/model/edt.py:54
Methodencode_points
(self, x, y, labels)
sam3/model/position_encoding.py:80
Functionerode
(bin_img, ksize=5)
PGSR/scene/gaussian_model.py:31
Functionerode
(bin_img, ksize=12)
PGSR/scene/cameras.py:29
Functionerode
(bin_img, ksize=5)
PGSR/utils/image_utils.py:28
Functionfast_diag_generalized_box_iou
(boxes1, boxes2)
sam3/model/box_ops.py:146
Functionfind_mask_rle_from_mask_index
从mask_index.json中找到对应的mask_rle
qa_generation/generate_3d_instance_description.py:174
Methodforward
Input: - tgt/tgt_query_pos: nq, bs, d_model -
sam3/model/decoder.py:80
Methodforward
Input: - tgt: nq, bs, d_model - memory: \\sum{hw}, bs, d_model - pos: \\sum{hw}, bs, d_model
sam3/model/decoder.py:410
Methodforward
( self, src, # self-attention inputs prompt, # cross-attention inputs src_ma
sam3/model/decoder.py:655
Methodforward
( self, tgt, memory, dac: bool = False, tgt_mask: Optional[Tensor] = N
sam3/model/decoder.py:856
Methodforward
(self, *args: Any, **kwds: Any)
sam3/model/decoder.py:953
Methodforward
( self, tensor_list: List[torch.Tensor] )
sam3/model/necks.py:100
Methodforward
(self, x: Tensor)
sam3/model/vitdet.py:332
Methodforward
(self, x: Tensor)
sam3/model/vitdet.py:466
Methodforward
(self, x: Tensor)
sam3/model/vitdet.py:597
Methodforward
(self, x: torch.Tensor)
sam3/model/vitdet.py:813
Methodforward
(self, x: torch.Tensor)
sam3/model/memory.py:69
Methodforward
(self, x)
sam3/model/memory.py:124
Methodforward
(self, x)
sam3/model/memory.py:150
Methodforward
( self, pix_feat: torch.Tensor, masks: torch.Tensor, skip_mask_sigmoid: bool =
sam3/model/memory.py:178
Methodforward
(self, hs, prompt, prompt_mask)
sam3/model/maskformer_segmentation.py:19
Methodforward
(self, obj_queries, pixel_embed)
sam3/model/maskformer_segmentation.py:28
Methodforward
( self, backbone_feats: List[torch.Tensor], obj_queries: torch.Tensor, image_i
sam3/model/maskformer_segmentation.py:145
Methodforward
( self, backbone_feats: List[torch.Tensor], obj_queries: torch.Tensor, image_i
sam3/model/maskformer_segmentation.py:268
Methodforward
(self, input: BatchedDatapoint, is_inference: bool = False)
sam3/model/sam3_video_base.py:1696
Methodforward
(self, masks, *args, **kwargs)
sam3/model/geometry_encoders.py:429
Methodforward
( self, masks: torch.Tensor, pix_feat: torch.Tensor, **kwargs, )
sam3/model/geometry_encoders.py:459
Methodforward
(self, geo_prompt: Prompt, img_feats, img_sizes, img_pos_embeds=None)
sam3/model/geometry_encoders.py:729
← previousnext →1,001–1,100 of 1,270, ranked by callers