MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

Functionget_sha
()
eval_code/recons/models/moge/model/dinov2/utils/utils.py:46
Functionget_sha
()
eval_code/recons/models/pi3/models/dinov2/utils/utils.py:46
Functionget_slurm_executor_parameters
( nodes: int, num_gpus_per_node: int, cluster_type: Optional[ClusterType] = None, **kwargs )
modeling/pi3/models/dinov2/utils/cluster.py:74
Functionget_slurm_executor_parameters
( nodes: int, num_gpus_per_node: int, cluster_type: Optional[ClusterType] = None, **kwargs )
eval_code/recons/models/moge/model/dinov2/utils/cluster.py:74
Functionget_slurm_executor_parameters
( nodes: int, num_gpus_per_node: int, cluster_type: Optional[ClusterType] = None, **kwargs )
eval_code/recons/models/pi3/models/dinov2/utils/cluster.py:74
Methodget_target_shape
Calculate the target shape based on the given aspect ratio. Args: aspect_ratio: Target aspect ratio
data/interleave_datasets/recon_then_und_dataset.py:118
Functionget_user_checkpoint_path
(cluster_type: Optional[ClusterType] = None)
modeling/pi3/models/dinov2/utils/cluster.py:51
Functionget_user_checkpoint_path
(cluster_type: Optional[ClusterType] = None)
eval_code/recons/models/moge/model/dinov2/utils/cluster.py:51
Functionget_user_checkpoint_path
(cluster_type: Optional[ClusterType] = None)
eval_code/recons/models/pi3/models/dinov2/utils/cluster.py:51
Methodget_vocab
(self)
modeling/qwen2/tokenization_qwen2.py:204
Functiongrad_checkpoint_check_fn
(module)
train/fsdp_utils.py:533
Functionharmonic_mean
(x: torch.Tensor, w: torch.Tensor = None, dim: Union[int, torch.Size] = None, keepdim: bool = False, eps: floa
eval_code/recons/models/moge/utils/geometry_torch.py:24
Functionharmonic_mean_numpy
(x: np.ndarray, w: np.ndarray = None, axis: Union[int, Tuple[int,...]] = None, keepdims: bool = False, eps: fl
eval_code/recons/models/moge/utils/geometry_numpy.py:22
Functionhas_batchnorms
(model)
modeling/pi3/models/dinov2/utils/utils.py:90
Functionhas_batchnorms
(model)
eval_code/recons/models/moge/model/dinov2/utils/utils.py:90
Functionhas_batchnorms
(model)
eval_code/recons/models/pi3/models/dinov2/utils/utils.py:90
Methodhistory
(self)
eval_code/recons/models/moge/utils/tools.py:195
Functionicosahedron
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:404
Functionicosahedron
()
eval_code/recons/models/moge/utils3d/numpy/utils.py:665
Functionimage_mesh
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:362
Functionimage_mesh_from_depth
( depth: torch.Tensor, extrinsics: torch.Tensor = None, intrinsics: torch.Tensor = None )
eval_code/recons/models/moge/utils3d/torch/utils.py:220
Functionimage_mesh_from_depth
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:368
Functionimage_mesh_from_depth
Get x triangle mesh by lifting depth map to 3D. Args: depth (np.ndarray): [H, W] depth map extrinsics (np.ndarray, optional)
eval_code/recons/models/moge/utils3d/numpy/utils.py:507
Functionimage_pixel
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:356
Functionimage_pixel
Get image pixel coordinates grid, ranging in [0, width - 1] and [0, height - 1]. `image[i, j]` has pixel center coordinates `(j, i)`. >>
eval_code/recons/models/moge/utils3d/numpy/utils.py:428
Functionimage_pixel_center
Get image pixel center coordinates, ranging in [0, width] and [0, height]. `image[i, j]` has pixel center coordinates `(j + 0.5, i + 0.5)`.
eval_code/recons/models/moge/utils3d/torch/utils.py:84
Functionimage_pixel_center
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:350
Functionimage_pixel_center
Get image pixel center coordinates, ranging in [0, width] and [0, height]. `image[i, j]` has pixel center coordinates `(j + 0.5, i + 0.5)`.
eval_code/recons/models/moge/utils3d/numpy/utils.py:393
Functionimage_scrcoord
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:338
Functionimage_scrcoord
Get OpenGL's screen space coordinates, ranging in [0, 1]. [0, 0] is the bottom-left corner of the image. Args: width (int): imag
eval_code/recons/models/moge/utils3d/numpy/utils.py:321
Functionimage_uv
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:344
Functionimport_file_as_module
(file_path: Union[str, os.PathLike], module_name: str)
eval_code/recons/models/moge/utils/tools.py:285
Functionimport_model_class_by_version
(version: str)
eval_code/recons/models/moge/model/__init__.py:9
Functionimportance_sample
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:836
Methodinfer
User-friendly inference function ### Parameters - `image`: input image tensor of shape (B, 3, H, W) or (3, H, W)\ -
eval_code/recons/models/moge/model/v1.py:302
Functioninfer_cameras_c2w
(filelist: str, model: G2VLM, hydra_cfg: DictConfig)
eval_code/recons/interfaces/g2vlm.py:121
Functioninfer_cameras_c2w
(filelist: List[str], model: VGGT, hydra_cfg: DictConfig)
eval_code/recons/interfaces/vggt.py:82
Functioninfer_cameras_w2c
(filelist: str, model: G2VLM, hydra_cfg: DictConfig)
eval_code/recons/interfaces/g2vlm.py:106
Functioninfer_cameras_w2c
(filelist: List[str], model: VGGT, hydra_cfg: DictConfig)
eval_code/recons/interfaces/vggt.py:59
Functioninfer_monodepth
(file: str, model: G2VLM, hydra_cfg: DictConfig)
eval_code/recons/interfaces/g2vlm.py:93
Functioninfer_monodepth
(file: str, model: MoGe, hydra_cfg: DictConfig)
eval_code/recons/interfaces/moge.py:10
Functioninfer_monodepth
(file: str, model: VGGT, hydra_cfg: DictConfig)
eval_code/recons/interfaces/vggt.py:26
Functioninfer_mv_pointclouds
(filelist: str, model: G2VLM, hydra_cfg: DictConfig, data_size: Tuple[int, int])
eval_code/recons/interfaces/g2vlm.py:133
Functioninfer_mv_pointclouds
(filelist: List[str], model: VGGT, hydra_cfg: DictConfig, data_size: Tuple[int, int])
eval_code/recons/interfaces/vggt.py:105
Functioninfer_videodepth
(filelist: List[str], model: VGGT, hydra_cfg: DictConfig)
eval_code/recons/interfaces/vggt.py:41
Methodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
modeling/pi3/models/segformer/model.py:85
Methodinit_weights
Initialize weights of classification layer.
modeling/pi3/models/segformer/head.py:563
Methodinit_weights
(self, pretrained=None)
modeling/pi3/models/segformer/backbone.py:279
Methodinit_weights
Initialize the weights in segmentor. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to N
modeling/pi3/models/segformer/segmentor.py:59
Methodinit_weights
(self)
eval_code/recons/models/moge/model/v2.py:99
Methodinit_weights
Load the backbone with pretrained dinov2 weights from torch hub
eval_code/recons/models/moge/model/v1.py:244
Methodinit_weights
(self)
eval_code/recons/models/moge/model/modules.py:99
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
modeling/pi3/models/dinov2/models/vision_transformer.py:340
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
eval_code/recons/models/moge/model/dinov2/models/vision_transformer.py:332
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
eval_code/recons/models/vggt/layers/vision_transformer.py:343
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
eval_code/recons/models/pi3/models/dinov2/models/vision_transformer.py:340
Functioninpainting
图像分割后随机空白部分patch,用于inpainting任务 参数: image: PIL.Image 输入图像(RGB模式) h_splits: int 行分割数(垂直方向分割块数) w_splits: int 列分割数
data/transforms.py:310
Functioninterpolate
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:332
Functioninterpolate
Interpolate with given barycentric coordinates and triangle indices Args: bary (np.ndarray): shape (..., 3), barycentric coordinates
eval_code/recons/models/moge/utils3d/numpy/utils.py:304
Functioninterpolate_extrinsics
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:926
Functioninterpolate_pos_embed
(model, checkpoint_model)
modeling/pi3/models/layers/pos_embed.py:78
Functioninterpolate_pos_embed
(model, checkpoint_model)
eval_code/recons/models/pi3/models/layers/pos_embed.py:78
Functioninterpolate_view
Interpolate view matrices between two camera poses. Linear interpolation for translation, spherical linear interpolation for rotation. Args:
eval_code/recons/models/moge/utils3d/torch/transforms.py:1083
Functioninterpolate_view
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:932
Functionintrinsics_from_focal_center
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:440
Functionintrinsics_from_fov
Get normalized OpenCV intrinsics matrix from given field of view. You can provide either fov_max, fov_min, fov_x or fov_y Args:
eval_code/recons/models/moge/utils3d/torch/transforms.py:221
Functionintrinsics_from_fov
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:446
Functionintrinsics_from_fov
Get normalized OpenCV intrinsics matrix from given field of view. You can provide either fov_max, fov_min, fov_x or fov_y Args:
eval_code/recons/models/moge/utils3d/numpy/transforms.py:157
Functionintrinsics_from_fov_xy
Get OpenCV intrinsics matrix from field of view in x and y axis Args: fov_x (float | torch.Tensor): field of view in x axis
eval_code/recons/models/moge/utils3d/torch/transforms.py:266
Functionintrinsics_from_fov_xy
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:890
Functionintrinsics_to_fov
Returns field of view in radians from normalized intrinsics matrix. ### Parameters: - intrinsics: torch.Tensor of shape (..., 3, 3)
eval_code/recons/models/moge/utils/geometry_torch.py:75
Functionintrinsics_to_fov
NOTE: approximate FOV by assuming centered principal point
eval_code/recons/models/moge/utils3d/torch/transforms.py:294
Functionintrinsics_to_fov
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:464
Functionintrinsics_to_fov
(intrinsics: np.ndarray)
eval_code/recons/models/moge/utils3d/numpy/transforms.py:209
Functionintrinsics_to_fov_numpy
(intrinsics: np.ndarray)
eval_code/recons/models/moge/utils/geometry_numpy.py:53
Functionintrinsics_to_perspective
OpenCV intrinsics to OpenGL perspective matrix Args: intrinsics (torch.Tensor): [..., 3, 3] OpenCV intrinsics matrix near (f
eval_code/recons/models/moge/utils3d/torch/transforms.py:390
Functionintrinsics_to_perspective
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:494
Functionintrinsics_to_perspective
OpenCV intrinsics to OpenGL perspective matrix NOTE: not work for tile-shifting intrinsics currently Args: intrinsics (np.ndarra
eval_code/recons/models/moge/utils3d/numpy/transforms.py:309
Functioninv
Invert a torch or numpy matrix
modeling/pi3/utils/geometry.py:313
Functioninv
Invert a torch or numpy matrix
eval_code/recons/models/pi3/utils/geometry.py:321
Methodjoin
(self)
eval_code/recons/models/moge/utils/pipeline.py:139
Methodjoin
(self)
eval_code/recons/models/moge/utils/pipeline.py:240
Methodjoin
(self)
eval_code/recons/models/moge/utils/pipeline.py:288
Methodjoin
(self)
eval_code/recons/models/moge/utils/pipeline.py:404
Functionkey_average
Returns a dictionary with the average value of each key in the input list of dictionaries.
eval_code/recons/models/moge/utils/tools.py:65
Functionlaplacian
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:782
Functionlaplacian_hc_smooth_mesh
HC algorithm from Improved Laplacian Smoothing of Noisy Surface Meshes by J.Vollmer et al.
eval_code/recons/models/moge/utils3d/torch/mesh.py:679
Functionlaplacian_hc_smooth_mesh
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:800
Functionlaplacian_smooth_mesh
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:788
Functionlerp
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:650
Functionlerp_se3_matrix
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:656
Functionlinear_spline_interpolate
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:686
Functionlinear_spline_interpolate
Linear spline interpolation. ### Parameters: - `x`: np.ndarray, shape (n, d): the values of data points. - `t`: np.ndarray, shape (n
eval_code/recons/models/moge/utils3d/numpy/spline.py:9
Functionload_16big_png_depth
Loads a 16-bit PNG as a half-float depth map (H, W), returning a float32 NumPy array. Implementation detail: - PIL loads 16-bit data a
data/dataset_utils_vggt.py:432
Functionload_and_preprocess_images
A quick start function to load and preprocess images for model input. This assumes the images should have the same shape for easier batching,
data/transforms_vggt.py:276
Functionload_and_preprocess_images_square
Load and preprocess images by center padding to square and resizing to target size. Also returns the position information of original pixels
data/transforms_vggt.py:192
Functionload_and_preprocess_images_square_edit
Load and preprocess images by center padding to square and resizing to target size. Also returns the position information of original pixels
data/transforms_vggt.py:116
Functionload_and_resize16
(images, new_width)
data/transforms_vggt.py:464
Functionload_camera_poses
Returns ------- intrinsics : (S, 3, 3) array, pixel-space K matrices extrinsics : (S, 4, 4) array, OpenCV world-to-camera matrices
data/dataset_utils_vggt.py:67
Functionload_images_as_tensor
Loads images from a directory or video, resizes them to a uniform size, then converts and stacks them into a single [N, 3, H, W] PyTorch tens
modeling/pi3/utils/basic.py:251
← previousnext →1,701–1,800 of 2,118, ranked by callers