MCPcopy Create free account

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

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

Method__init__
( self, context_length: int = 77, vocab_size: int = 49408, width: int = 512,
sam3/model/text_encoder_ve.py:165
Method__init__
( self, d_model: int, tokenizer: Callable, width: int = 1024, heads: i
sam3/model/text_encoder_ve.py:254
Method__init__
( self, *args, async_all_gather=True, gather_backbone_out=None, **kwargs )
sam3/model/sam3_image.py:688
Method__init__
(self, *model_args, gpus_to_use=None, **model_kwargs)
sam3/model/sam3_video_predictor.py:291
Method__init__
Initialize a transformer encoder layer. Args: activation: Activation function to use in the feedforward network
sam3/model/encoder.py:25
Method__init__
( self, layer: nn.Module, num_layers: int, d_model: int, num_feature_l
sam3/model/encoder.py:481
Method__init__
( self, bpe_path: Union[str, os.PathLike], additional_special_tokens: Optional[List[st
sam3/model/tokenizer_ve.py:129
Method__init__
( self, # whether to clear non-conditioning memory of the surrounding frames (which may contai
sam3/model/sam3_tracking_predictor.py:20
Method__init__
(self, img_paths, image_size, offload_video_to_cpu, img_mean, img_std)
sam3/model/io_utils.py:344
Method__init__
(self, source, dimension_order="NCHW", device="cpu", num_threads=1)
sam3/model/io_utils.py:409
Method__init__
(self)
sam3/model/io_utils.py:458
Method__init__
( self, video_path, image_size, offload_video_to_cpu, img_mean,
sam3/model/io_utils.py:494
Method__init__
( self, backbone, transformer, maskmem_backbone, num_maskmem=7, # def
sam3/model/sam3_tracker_base.py:28
Method__init__
( self, num_pos_feats, temperature: int = 10000, normalize: bool = True,
sam3/model/position_encoding.py:16
Method__init__
use_prev_mem_frame: bool, whether to condition on previous memory frames for adding points use_stateless_refinement: bool, whether to
sam3/model/sam3_video_inference.py:963
Method__init__
( self, img_paths, image_size, offload_video_to_cpu, img_mean,
sam3/model/utils/sam2_utils.py:33
Method__init__
Transforms for SAM2.
sam3/model/utils/sam1_utils.py:17
Method__init__
Args: tensor (Tensor[float]): a Nx4 matrix. Each row is (x1, y1, x2, y2).
sam3/agent/helpers/boxes.py:149
Method__init__
(self, mask_or_polygons, height, width)
sam3/agent/helpers/visualizer.py:73
Method__init__
(self, panoptic_seg, segments_info, metadata=None)
sam3/agent/helpers/visualizer.py:174
Method__init__
Args: img (ndarray): an RGB image of shape (H, W, 3) in range [0, 255]. scale (float): scale the input image
sam3/agent/helpers/visualizer.py:274
Method__init__
Args: img_rgb: a numpy array of shape (H, W, C), where H and W correspond to the height and width of the image re
sam3/agent/helpers/visualizer.py:373
Method__init__
Args: output_size (tuple): h, w spatial_scale (float): scale the input boxes by this number sampling_rati
sam3/agent/helpers/roi_align.py:9
Method__init__
Arguments: keypoints: A Tensor, numpy array, or list of the x, y, and visibility of each keypoint. The shape shou
sam3/agent/helpers/keypoints.py:23
Method__init__
Args: tensor (Tensor[float]): a Nx5 matrix. Each row is (x_center, y_center, width, height, angle),
sam3/agent/helpers/rotated_boxes.py:42
Method__init__
Args: tensor: bool Tensor of N,H,W, representing N instances in the image.
sam3/agent/helpers/masks.py:101
Method__init__
Arguments: polygons (list[list[np.ndarray]]): The first level of the list correspond to individual instances,
sam3/agent/helpers/masks.py:283
Method__init__
Args: tensor: (N, M, M) mask tensor that defines the mask within each ROI.
sam3/agent/helpers/masks.py:494
Method__init__
( self, dim: int, seq_len: int, pt_seq_len: Optional[int] = None, thet
sam3/sam/rope.py:131
Method__init__
Predicts masks given an image and prompt embeddings, using a transformer architecture. Arguments: transformer_dim
sam3/sam/mask_decoder.py:13
Method__init__
(self, num_channels: int, eps: float = 1e-6)
sam3/sam/common.py:28
Method__init__
A transformer decoder that attends to an input image using queries whose positional embedding is supplied. Args: d
sam3/sam/transformer.py:17
Method__init__
A transformer block with four layers: (1) self-attention of sparse inputs, (2) cross attention of sparse inputs to dense inputs, (3)
sam3/sam/transformer.py:110
Method__init__
( self, *args, rope_theta=10000.0, # whether to repeat q rope to match k lengt
sam3/sam/transformer.py:269
Method__init__
(self, num_pos_feats: int = 64, scale: Optional[float] = None)
sam3/sam/prompt_encoder.py:205
Method__init__
(self, num_images=1600)
PGSR/scene/app_model.py:10
Method__init__
(self, sh_degree : int)
PGSR/scene/gaussian_model.py:54
Method__init__
b :param path: Path to colmap scene main folder.
PGSR/scene/__init__.py:27
Method__init__
(self, colmap_id, R, T, FoVx, FoVy, image_width, image_height, image_path, i
PGSR/scene/cameras.py:115
Method__init__
(self, width, height, fovy, fovx, znear, zfar, world_view_transform, full_proj_transform)
PGSR/scene/cameras.py:214
Method__init__
(self, silent)
PGSR/utils/general_utils.py:124
Method__init__
(self, device="cuda:0")
PGSR/Mesh2DepthHelper/Mesh2DepthHelper.py:66
Method__init__
(self, parser, sentinel=False)
PGSR/arguments/__init__.py:48
Method__init__
(self, parser)
PGSR/arguments/__init__.py:71
Method__init__
(self, parser)
PGSR/arguments/__init__.py:78
Method__init__
(self, raster_settings)
PGSR/submodules/diff-plane-rasterization/diff_plane_rasterization/__init__.py:189
Method__init__
(self, n_channels_list: Sequence[int])
PGSR/lpipsPyTorch/modules/networks.py:24
Method__init__
(self)
PGSR/lpipsPyTorch/modules/networks.py:37
Method__init__
(self)
PGSR/lpipsPyTorch/modules/networks.py:67
Method__init__
(self)
PGSR/lpipsPyTorch/modules/networks.py:78
Method__init__
(self, net_type: str = 'alex', version: str = '0.1')
PGSR/lpipsPyTorch/modules/lpips.py:17
Method__iter__
(self)
sam3/model/model_misc.py:351
Method__iter__
Yield a box as a Tensor of shape (4,) at a time.
sam3/agent/helpers/boxes.py:318
Method__iter__
Yield a box as a Tensor of shape (5,) at a time.
sam3/agent/helpers/rotated_boxes.py:511
Method__iter__
(self)
sam3/agent/helpers/masks.py:151
Method__iter__
Yields: list[ndarray]: the polygons for one instance. Each Tensor is a float64 vector representing a polygon.
sam3/agent/helpers/masks.py:399
Method__len__
(self)
sam3/model/model_misc.py:420
Method__len__
(self)
sam3/model/io_utils.py:399
Method__len__
(self)
sam3/model/io_utils.py:436
Method__len__
(self)
sam3/model/io_utils.py:688
Method__len__
(self)
sam3/model/utils/sam2_utils.py:92
Method__len__
(self)
sam3/agent/helpers/boxes.py:250
Method__len__
(self)
sam3/agent/helpers/keypoints.py:39
Method__len__
(self)
sam3/agent/helpers/rotated_boxes.py:369
Method__len__
(self)
sam3/agent/helpers/masks.py:160
Method__len__
(self)
sam3/agent/helpers/masks.py:412
Method__len__
(self)
sam3/agent/helpers/masks.py:510
Method__repr__
(self)
sam3/model/model_misc.py:417
Method__repr__
(self)
sam3/agent/helpers/boxes.py:253
Method__repr__
(self)
sam3/agent/helpers/roi_align.py:68
Method__repr__
(self)
sam3/agent/helpers/keypoints.py:84
Method__repr__
(self)
sam3/agent/helpers/rotated_boxes.py:372
Method__repr__
(self)
sam3/agent/helpers/masks.py:155
Method__repr__
(self)
sam3/agent/helpers/masks.py:407
Method__repr__
(self)
sam3/agent/helpers/masks.py:535
Function_any_combine
(a, b)
sam3/perflib/triton/connected_components.py:10
Function_broadcast_sizes_kernel
( labels_ptr, sizes_ptr, out_ptr, numel, BLOCK_SIZE: tl.constexpr )
sam3/perflib/triton/connected_components.py:378
Function_build_dir4_mcq_options
(direction: str, rng: random.Random)
qa_generation/templates_object_relpos.py:472
Function_clean_canonicalize
(x)
sam3/model/tokenizer_ve.py:80
Function_clean_lower
(x)
sam3/model/tokenizer_ve.py:85
Function_clean_whitespace
(x)
sam3/model/tokenizer_ve.py:90
Function_count_labels_kernel
(labels_ptr, sizes_ptr, numel, BLOCK_SIZE: tl.constexpr)
sam3/perflib/triton/connected_components.py:363
Method_create_masks
(image, masks)
sam3/perflib/tests/tests.py:32
Function_dir4_label_from_plane
(v_right: float, v_forward: float, min_val: float = 1e-6)
qa_generation/templates_object_relpos.py:437
Function_direction_label
根据局部坐标系中的分量生成8方向标签(使用 classify_dir8 逻辑)。 Returns: 方向标签字符串,如果无法分类则返回 None
qa_generation/templates_object_relpos.py:423
Method_encode_prompt
(self, **kwargs)
sam3/model/sam3_video_base.py:1750
Method_forward_image_no_act_ckpt
(self, samples)
sam3/model/vl_combiner.py:84
Method_forward_text_no_ack_ckpt
( self, captions, input_boxes=None, additional_text=None, device="cuda
sam3/model/vl_combiner.py:132
Method_gather_obj_id_to_mask_across_gpus
Gather obj_id_to_mask from all GPUs. Optionally resize the masks to the video resolution.
sam3/model/sam3_video_inference.py:1609
Method_get_best_mask
(self, out)
sam3/model/sam3_image.py:428
Method_get_image
()
sam3/perflib/tests/tests.py:24
Function_init_labels_kernel
( input_ptr, labels_ptr, numel: tl.constexpr, BLOCK_SIZE: tl.constexpr )
sam3/perflib/triton/connected_components.py:29
Method_init_weights
(self, m: nn.Module)
sam3/model/vitdet.py:804
Method_load_checkpoint
(self, ckpt_path: str, strict: bool = True)
sam3/model/sam3_video_base.py:1699
Method_load_frames
()
sam3/model/io_utils.py:363
Method_load_frames
()
sam3/model/io_utils.py:585
Method_load_frames
()
sam3/model/utils/sam2_utils.py:61
Function_local_prop_kernel
( labels_ptr, input_ptr, H: tl.constexpr, W: tl.constexpr, BLOCK_SIZE_H: tl.constexpr,
sam3/perflib/triton/connected_components.py:204
Method_make_array
(t: Union[torch.Tensor, np.ndarray])
sam3/agent/helpers/masks.py:299
Method_map_keys
(container)
sam3/model/sam3_tracking_predictor.py:1238
← previousnext →901–1,000 of 1,270, ranked by callers