MCPcopy Create free account

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

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

↓ 2 callersFunctionmaybe_to_cpu
(x)
sam3/agent/helpers/memory.py:58
↓ 2 callersFunctionnormalize_vllm_api_url
(url: str)
qa_generation/filter_qa_repeat_descriptions.py:172
↓ 2 callersMethodnumber_to_string
(n)
sam3/agent/helpers/visualizer.py:1576
↓ 2 callersFunctionobb_corners
计算 OBB 的 8 个角点(世界坐标)。 Args: transform: 4x4 变换矩阵 extents: (3,) OBB 尺寸 Returns: corners: (8, 3) 8 个角点的世界坐标
3d_bounding_instance_gs_rerun_da3.py:524
↓ 2 callersFunctionobb_corners
计算 OBB 的 8 个角点(世界坐标)。 Args: transform: 4x4 变换矩阵 extents: (3,) OBB 尺寸 Returns: corners: (8, 3) 8 个角点的世界坐标
3d_bounding_instance_gs_region.py:606
↓ 2 callersFunctionpairwise_intersection
Given two lists of boxes of size N and M, compute the intersection area between __all__ N x M pairs of boxes. The box order must be (xmin
sam3/agent/helpers/boxes.py:325
↓ 2 callersFunctionpolygons_to_bitmask
Args: polygons (list[ndarray]): each array has shape (Nx2,) height, width (int) Returns: ndarray: a bool mask of sha
sam3/agent/helpers/masks.py:24
↓ 2 callersFunctionprocess_image
(image_path, resolution, ncc_scale)
PGSR/scene/cameras.py:33
↓ 2 callersFunctionprocess_instances
( instances: List[Dict[str, Any]], floor_label: str, axis_method: str, extent_mode: str, w
postprocess_3d_bbox_aabb.py:302
↓ 2 callersFunctionprocess_single_json
处理单个JSON文件,为每个instance生成描述
qa_generation/generate_3d_instance_description.py:370
↓ 2 callersMethodpropagate_in_video
Propagate the added prompts to get grounding results on all video frames.
sam3/model/sam3_video_predictor.py:183
↓ 2 callersFunctionreadCamerasFromTransforms
(path, transformsfile, white_background, images=None, extension=".png", test=False)
PGSR/scene/dataset_readers.py:217
↓ 2 callersFunctionrecursive_fn_factory
(fn)
sam3/perflib/compile.py:6
↓ 2 callersMethodremove_object
Remove an object from tracking.
sam3/model/sam3_video_predictor.py:163
↓ 2 callersFunctionrender_set
(model_path, name, iteration, views, scene, gaussians, pipeline, background, app_model=None, m
PGSR/render_cuda.py:65
↓ 2 callersFunctionrender_set
(model_path, name, iteration, views, scene, gaussians, pipeline, background, app_model=None, m
PGSR/render.py:65
↓ 2 callersMethodreposition_label
(self, position, cur, binary_mask, move_count)
sam3/agent/helpers/visualizer.py:934
↓ 2 callersMethodreset_predictor
Resets the image embeddings and other state variables.
sam3/model/sam1_task_predictor.py:451
↓ 2 callersFunctionresolve_image_subdir
(data_root: Path)
classic_vllm.py:38
↓ 2 callersMethodrun_backbone_and_detection
( self, frame_idx: int, num_frames: int, input_batch: BatchedDatapoint,
sam3/model/sam3_video_base.py:312
↓ 2 callersFunctionsample3obj
从图像对的两个图像的实例并集中采样3个不同的对象。返回 [(image_pair, (instA, instB, instC)), ...] Args: max_triplets_per_pair: 每个图像对最多生成的3元组数量,超过则随机采样
qa_generation/generate_two_view_qa.py:641
↓ 2 callersFunctionsample_pairs_region
在 sample_pairs 基础上增加 region 约束的图像对采样。 当 at_least_3_objs_1_region=True 时,要求: - 图像对中的 object 实例并集数量 >= 3; - 图像对中的 region 实例并集数量 >= 1。
qa_generation/generate_two_view_qa_region.py:448
↓ 2 callersMethodsave_weights
(self, model_path, iteration)
PGSR/scene/app_model.py:17
↓ 2 callersMethodset_image
Sets the image on which we want to do predictions.
sam3/model/sam3_image_processor.py:42
↓ 2 callersMethodset_text_prompt
Sets the text prompt and run the inference
sam3/model/sam3_image_processor.py:113
↓ 2 callersFunctionsetup_logger
(log_path: Optional[Path] = None)
3d_bounding_instance_gs_rerun_da3.py:59
↓ 2 callersFunctionsetup_logger
(log_path: Optional[Path] = None)
3d_bounding_instance_gs_region.py:59
↓ 2 callersFunctionstorePly
(path, xyz, rgb)
PGSR/scene/dataset_readers.py:138
↓ 2 callersFunctionto_abs
(p)
3d_bounding_instance_gs_rerun_da3.py:1399
↓ 2 callersFunctionto_abs
(p)
3d_bounding_instance_gs_region.py:1430
↓ 2 callersMethodtraining_setup
(self, training_args)
PGSR/scene/gaussian_model.py:199
↓ 2 callersMethodtransform_coords
Expects a torch tensor with length 2 in the last dimension. The coordinates can be in absolute image or normalized coordinates, If th
sam3/model/utils/sam1_utils.py:47
↓ 2 callersFunctionwhitespace_clean
(text)
sam3/model/tokenizer_ve.py:74
↓ 2 callersFunctionworld_to_view_rt
(R, t, device)
PGSR/Mesh2DepthHelper/Mesh2DepthHelper.py:21
↓ 1 callersFunctionBuild_Ply_Render_Camera_Parameters_colmap_correct
( fx, fy, cx, cy, W, H, znear, zfar, R, T, device )
PGSR/Mesh2DepthHelper/Mesh2DepthHelper.py:228
↓ 1 callersFunctionLoad_ply_resource
(ply_path, device="cuda:0")
PGSR/Mesh2DepthHelper/Mesh2DepthHelper.py:215
↓ 1 callersFunctionRGB2SH
(rgb)
PGSR/utils/sh_utils.py:114
↓ 1 callersMethod__enter__
(self)
sam3/model/io_utils.py:479
↓ 1 callersMethod__init__
( self, backbone: SAM3VLBackbone, transformer, input_geometry_encoder,
sam3/model/sam3_image.py:41
↓ 1 callersMethod__init__
( self, checkpoint_path=None, bpe_path=None, has_presence_token=True,
sam3/model/sam3_video_predictor.py:27
↓ 1 callersMethod__init__
hotstart_delay: int, the delay (in #frames) before the model starts to yield output, 0 to disable hotstart delay. hotstart_unmatch_th
sam3/model/sam3_video_inference.py:33
↓ 1 callersMethod__init__
( self, input_dim: int, hidden_dim: int, output_dim: int, num_layers:
sam3/sam/mask_decoder.py:298
↓ 1 callersMethod__init__
( self, embedding_dim: int, mlp_dim: int, act: Type[nn.Module] = nn.GELU,
sam3/sam/common.py:10
↓ 1 callersMethod__init__
Encodes prompts for input to SAM's mask decoder. Arguments: embed_dim (int): The prompts' embedding dimension im
sam3/sam/prompt_encoder.py:13
↓ 1 callersMethod_apply_object_wise_non_overlapping_constraints
Applies non-overlapping constraints object wise (i.e. only one object can claim the overlapping region)
sam3/model/sam3_tracking_predictor.py:1350
↓ 1 callersMethod_apply_rope
(self, q, k)
sam3/model/vitdet.py:459
↓ 1 callersMethod_associate_det_trk
Match detections on the current frame with the existing masklets. Args: - det_masks: (N, H, W) tensor of predicted masks
sam3/model/sam3_video_base.py:1160
↓ 1 callersFunction_bbox_edges_from_vertices
(vertices: np.ndarray)
qa_generation/generate_two_view_qa_region.py:178
↓ 1 callersFunction_bbox_edges_from_vertices
(vertices: np.ndarray)
qa_generation/generate_two_view_qa.py:245
↓ 1 callersFunction_build_dir8_mcq_options
(direction: str, rng: random.Random)
qa_generation/templates_object_relpos.py:484
↓ 1 callersFunction_build_dir8_mcq_options
(direction: str, rng: random.Random)
qa_generation/templates_object_dist.py:118
↓ 1 callersFunction_build_direction_mc_options
(direction: str, rng: random.Random)
qa_generation/templates_object_dpt.py:240
↓ 1 callersFunction_build_direction_mc_options
构造单选选项,随机放置正确答案。
qa_generation/templates_cam_translation.py:190
↓ 1 callersFunction_build_local_frame
构建以A为原点、面向B的局部坐标系。 返回: (forward, right, up) 三个单位向量,构成右手坐标系。 forward: 从A指向B的方向 right: 右手坐标系中的右方向 up: 上方向
qa_generation/templates_object_relpos.py:377
↓ 1 callersMethod_build_sam_heads
Build SAM-style prompt encoder and mask decoder.
sam3/model/sam3_tracker_base.py:177
↓ 1 callersFunction_change_color_brightness
Depending on the brightness_factor, gives a lighter or darker color i.e. a color with less or more saturation than the original color. A
sam3/agent/helpers/som_utils.py:381
↓ 1 callersMethod_compile_all_components
Compile all model components for faster inference.
sam3/model/sam3_tracker_base.py:1138
↓ 1 callersMethod_compile_model
Compile the SAM model with torch.compile for speedup.
sam3/model/sam3_video_inference.py:571
↓ 1 callersMethod_compute_matching
(self, out, targets)
sam3/model/sam3_image.py:578
↓ 1 callersMethod_construct_initial_input_batch
Construct an initial `BatchedDatapoint` instance as input.
sam3/model/sam3_video_inference.py:113
↓ 1 callersMethod_convert_boxes
Convert different format of boxes to an NxB array, where B = 4 or 5 is the box dimension.
sam3/agent/helpers/visualizer.py:1504
↓ 1 callersMethod_convert_keypoints
(self, keypoints)
sam3/agent/helpers/visualizer.py:1650
↓ 1 callersMethod_convert_low_res_mask_to_video_res
Convert a low-res mask to video resolution, matching the format expected by _build_tracker_output. Args: low_res_mask: T
sam3/model/sam3_video_inference.py:1644
↓ 1 callersMethod_convert_masks
Convert different format of masks or polygons to a tuple of masks and polygons. Returns: list[GenericMask]:
sam3/agent/helpers/visualizer.py:1513
↓ 1 callersFunction_corner_signs_order
Corner order used by the provided JSONs: 0 (-,-,-) 1 (-,-,+) 2 (-,+,-) 3 (-,+,+) 4 (+,-,-) 5 (+,-,+) 6
postprocess_3d_bbox_aabb.py:78
↓ 1 callersFunction_create_dot_product_scoring
Create dot product scoring module.
sam3/model_builder.py:204
↓ 1 callersFunction_create_sam3_model
Create the SAM3 image model.
sam3/model_builder.py:302
↓ 1 callersFunction_create_tracker_maskmem_backbone
Create the SAM3 Tracker memory encoder.
sam3/model_builder.py:344
↓ 1 callersFunction_create_tracker_transformer
Create the SAM3 Tracker transformer components.
sam3/model_builder.py:380
↓ 1 callersFunction_create_transformer_decoder
Create transformer decoder with its layer.
sam3/model_builder.py:167
↓ 1 callersFunction_create_transformer_encoder
Create transformer encoder with its layer.
sam3/model_builder.py:129
↓ 1 callersFunction_create_vit_backbone
Create ViT backbone for visual feature extraction.
sam3/model_builder.py:83
↓ 1 callersFunction_create_vit_neck
Create ViT neck for feature pyramid.
sam3/model_builder.py:113
↓ 1 callersFunction_create_vl_backbone
Create visual-language backbone.
sam3/model_builder.py:124
↓ 1 callersFunction_decode_masks_to_torch_bool
(pred_masks: List, h: int, w: int)
sam3/agent/helpers/mask_overlap_removal.py:65
↓ 1 callersFunction_decode_single_mask
(mask_repr, h: int, w: int)
sam3/agent/helpers/mask_overlap_removal.py:40
↓ 1 callersMethod_det_track_one_frame
This function handles one-step inference for the DenseTracking model in an SPMD manner. At a high-level, all GPUs execute the same fu
sam3/model/sam3_video_base.py:151
↓ 1 callersFunction_dir8_label_from_cam
( point_cam: Sequence[float], ratio_threshold: float = 0.5774, min_val: float = 1e-6, )
qa_generation/templates_object_dist.py:89
↓ 1 callersFunction_dir8_label_from_plane
( v_right: float, v_forward: float, ratio_threshold: float = 0.5774, min_val: float = 1e-6, )
qa_generation/templates_object_relpos.py:445
↓ 1 callersFunction_direction_info_from_cam
( point_cam: Sequence[float], ratio_threshold: float = 0.5774, max_axes: int = 2, )
qa_generation/templates_object_dpt.py:196
↓ 1 callersMethod_draw_number_in_box
Find proper places to draw text given a box.
sam3/agent/helpers/visualizer.py:1536
↓ 1 callersMethod_drop_new_det_with_obj_limit
Drop a few new detections based on the maximum number of objects. We drop new objects based on their detection scores, keeping the hi
sam3/model/sam3_video_base.py:1753
↓ 1 callersMethod_dynamic_multimask_via_stability
When outputting a single mask, if the stability score from the current single-mask output (based on output token 0) falls below a thr
sam3/sam/mask_decoder.py:256
↓ 1 callersMethod_embed_boxes
Embeds box prompts.
sam3/sam/prompt_encoder.py:118
↓ 1 callersMethod_embed_masks
Embeds mask inputs.
sam3/sam/prompt_encoder.py:129
↓ 1 callersMethod_embed_points
Embeds point prompts.
sam3/sam/prompt_encoder.py:74
↓ 1 callersMethod_encode_boxes
(self, boxes, boxes_mask, boxes_labels, img_feats)
sam3/model/geometry_encoders.py:643
↓ 1 callersMethod_encode_masks
( self, masks: torch.Tensor, attn_mask: torch.Tensor, mask_labels: torch.Tenso
sam3/model/geometry_encoders.py:694
↓ 1 callersMethod_encode_points
(self, points, points_mask, points_labels, img_feats)
sam3/model/geometry_encoders.py:600
↓ 1 callersMethod_encode_prompt
( self, backbone_out, find_input, geometric_prompt, visual_prompt_embe
sam3/model/sam3_image.py:169
↓ 1 callersMethod_find_free_port
Find a free port (a random free port from 1024 to 65535 will be selected) https://stackoverflow.com/questions/1365265/on-localhost-ho
sam3/model/sam3_video_predictor.py:435
↓ 1 callersFunction_find_scannet_ply_path
(path)
PGSR/scene/dataset_readers.py:461
↓ 1 callersMethod_get_batch_size
Gets the batch size of the output given the batch size of the input prompts.
sam3/sam/prompt_encoder.py:134
↓ 1 callersMethod_get_device
(self)
sam3/sam/prompt_encoder.py:152
↓ 1 callersMethod_get_empty_mask_ptr
Get a dummy object pointer based on an empty mask on the current frame.
sam3/model/sam3_tracking_predictor.py:631
↓ 1 callersMethod_get_objects_to_suppress_based_on_most_recently_occluded
( self, binary_low_res_masks: Tensor, last_occluded: List[int], obj_ids: List[
sam3/model/sam3_video_base.py:1015
↓ 1 callersMethod_get_processing_order
( self, inference_state, start_frame_idx, max_frame_num_to_track, reverse )
sam3/model/sam3_tracking_predictor.py:760
↓ 1 callersMethod_get_rpb_matrix
(self, reference_boxes, feat_size)
sam3/model/decoder.py:331
↓ 1 callersFunction_get_scannet_scene_part_paths
(path)
PGSR/scene/dataset_readers.py:430
↓ 1 callersMethod_get_stability_scores
Compute stability scores of the mask logits based on the IoU between upper and lower thresholds.
sam3/sam/mask_decoder.py:244
← previousnext →301–400 of 1,270, ranked by callers