MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

Functionalign_depth_affine_irls
Align `depth_src` to `depth_tgt` with given constant weights using IRLS.
eval_code/recons/models/moge/utils/alignment.py:216
Functionalign_depth_scale
Align `depth_src` to `depth_tgt` with given constant weights. ### Parameters: - `depth_src: torch.Tensor` of shape (..., N) - `dept
modeling/pi3/utils/alignment.py:149
Functionalign_depth_scale
Align `depth_src` to `depth_tgt` with given constant weights. ### Parameters: - `depth_src: torch.Tensor` of shape (..., N) - `dept
eval_code/recons/models/moge/utils/alignment.py:149
Functionalign_points_scale
### Parameters: - `points_src: torch.Tensor` of shape (..., N, 3) - `points_tgt: torch.Tensor` of shape (..., N, 3) - `weight: torch.
eval_code/recons/models/moge/utils/alignment.py:233
Functionalign_points_scale_xyz_shift
Align `points_src` to `points_tgt` with respect to a shared xyz scale and z shift. It is similar to `align_affine` but scale and shift are a
modeling/pi3/utils/alignment.py:305
Functionalign_points_scale_xyz_shift
Align `points_src` to `points_tgt` with respect to a shared xyz scale and z shift. It is similar to `align_affine` but scale and shift are a
eval_code/recons/models/moge/utils/alignment.py:305
Functionalign_points_scale_z_shift
Align `points_src` to `points_tgt` with respect to a shared xyz scale and z shift. It is similar to `align_affine` but scale and shift are a
modeling/pi3/utils/alignment.py:251
Functionalign_points_scale_z_shift
Align `points_src` to `points_tgt` with respect to a shared xyz scale and z shift. It is similar to `align_affine` but scale and shift are a
eval_code/recons/models/moge/utils/alignment.py:251
Functionalign_points_xyz_shift
Align `points_src` to `points_tgt` with respect to a Z-axis shift. ### Parameters: - `points_src: torch.Tensor` of shape (..., N, 3)
modeling/pi3/utils/alignment.py:379
Functionalign_points_xyz_shift
Align `points_src` to `points_tgt` with respect to a Z-axis shift. ### Parameters: - `points_src: torch.Tensor` of shape (..., N, 3)
eval_code/recons/models/moge/utils/alignment.py:379
Functionalign_points_z_shift
Align `points_src` to `points_tgt` with respect to a Z-axis shift. ### Parameters: - `points_src: torch.Tensor` of shape (..., N, 3)
modeling/pi3/utils/alignment.py:358
Functionalign_points_z_shift
Align `points_src` to `points_tgt` with respect to a Z-axis shift. ### Parameters: - `points_src: torch.Tensor` of shape (..., N, 3)
eval_code/recons/models/moge/utils/alignment.py:358
Functionangle_diff_vec3
(v1: torch.Tensor, v2: torch.Tensor, eps: float = 1e-12)
eval_code/recons/models/moge/utils/geometry_torch.py:72
Functionangle_diff_vec3
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:680
Functionangle_diff_vec3
(v1: np.ndarray, v2: np.ndarray, eps: float = 1e-12)
eval_code/recons/models/moge/utils3d/numpy/transforms.py:1108
Functionapply_2d
Apply (3x3 or 2x3) 2D affine transformation to points ``` p = R @ p + t ``` Args: transform (torch.Tensor): (..., 2 o
eval_code/recons/models/moge/utils3d/torch/transforms.py:1252
Functionapply_2d
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:968
Functionapply_transform
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:674
Functionapply_transform
Apply SE(3) transformation to a point or a set of points. ### Parameters: - `T`: np.ndarray, shape (..., 4, 4): the SE(3) matrix. -
eval_code/recons/models/moge/utils3d/numpy/transforms.py:1089
Functionas_torch_dtype
(dtype: TypeSpec)
modeling/pi3/models/dinov2/utils/dtype.py:31
Functionas_torch_dtype
(dtype: TypeSpec)
eval_code/recons/models/moge/model/dinov2/utils/dtype.py:31
Functionas_torch_dtype
(dtype: TypeSpec)
eval_code/recons/models/pi3/models/dinov2/utils/dtype.py:31
Methodattn_residual_func
(x: Tensor)
modeling/pi3/models/layers/block.py:87
Methodattn_residual_func
(x: Tensor, attn_bias=None)
modeling/pi3/models/layers/block.py:217
Methodattn_residual_func
(x: Tensor)
modeling/pi3/models/layers/block.py:311
Methodattn_residual_func
(x: Tensor)
modeling/pi3/models/layers/block.py:392
Methodattn_residual_func
(x: Tensor)
modeling/pi3/models/dinov2/layers/block.py:89
Methodattn_residual_func
(x: Tensor, attn_bias=None)
modeling/pi3/models/dinov2/layers/block.py:219
Methodattn_residual_func
(x: Tensor)
eval_code/recons/models/moge/model/dinov2/layers/block.py:89
Methodattn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/moge/model/dinov2/layers/block.py:219
Methodattn_residual_func
(x: Tensor, pos=None)
eval_code/recons/models/vggt/layers/block.py:82
Methodattn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/vggt/layers/block.py:219
Methodattn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:87
Methodattn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/layers/block.py:217
Methodattn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:311
Methodattn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:392
Methodattn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:89
Methodattn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:219
Methodaverage_time
(self)
eval_code/recons/models/moge/utils/tools.py:190
Functionaxis_angle_to_matrix
Convert rotations given as axis/angle to rotation matrices. Args: axis_angle: Rotations given as a vector in axis angle form,
modeling/g2vlm/rotation_utils.py:478
Functionaxis_angle_to_matrix
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:584
Functionaxis_angle_to_matrix
Convert axis-angle representation (rotation vector) to rotation matrix, whose direction is the axis of rotation and length is the angle of rotation
eval_code/recons/models/moge/utils3d/numpy/transforms.py:853
Functionaxis_angle_to_quaternion
Convert axis-angle representation (rotation vector) to quaternion (w, x, y, z) Args: axis_angle (torch.Tensor): shape (..., 3), axis-angl
eval_code/recons/models/moge/utils3d/torch/transforms.py:962
Functionaxis_angle_to_quaternion
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:908
Functionbatched
Decorator that allows a function to be called with batched arguments.
eval_code/recons/models/moge/utils3d/torch/_helpers.py:60
Functionbatched
Decorator that allows a function to be called with batched arguments.
eval_code/recons/models/moge/utils3d/numpy/_helpers.py:50
Functionbbox_from_intrinsics_in_out
(input_camera_matrix, output_camera_matrix, output_resolution)
modeling/pi3/utils/cropping.py:204
Functionbin_sample
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:830
Methodblender2opencv_c2w
(self, pose)
data/recon_dataset.py:196
Functionbounding_rect
get bounding rectangle of a mask Args: mask (torch.Tensor): shape (..., height, width), mask Returns: rect (torch.Tensor): s
eval_code/recons/models/moge/utils3d/torch/utils.py:316
Functionbounding_rect
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:884
Functionbuild_model_from_cfg
(cfg, only_teacher=False)
modeling/pi3/models/dinov2/models/__init__.py:42
Functionbuild_model_from_cfg
(cfg, only_teacher=False)
eval_code/recons/models/moge/model/dinov2/models/__init__.py:42
Functionbuild_model_from_cfg
(cfg, only_teacher=False)
eval_code/recons/models/pi3/models/dinov2/models/__init__.py:42
Functioncalc_quad_candidates
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:236
Functioncalc_quad_direction
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:248
Functioncalc_quad_distortion
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:242
Functioncalc_quad_smoothness
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:254
Functioncalculate_auc
Calculate the Area Under the Curve (AUC) for the given error arrays using PyTorch. :param r_error: torch.Tensor representing R error values
modeling/g2vlm/metric.py:184
Functioncalculate_auc
Calculate the Area Under the Curve (AUC) for the given error arrays using PyTorch. :param r_error: torch.Tensor representing R error values
eval_code/recons/relpose/metric.py:64
Functioncalculate_auc_np
Calculate the Area Under the Curve (AUC) for the given error arrays. :param r_error: numpy array representing R error values (Degree). :
modeling/g2vlm/metric.py:154
Functioncamera_frustum
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:416
Functioncamera_frustum
Get x triangle mesh of camera frustum.
eval_code/recons/models/moge/utils3d/numpy/utils.py:639
Functioncamera_to_rel_deg
Calculate relative rotation and translation angles between predicted and ground truth cameras. Args: - pred_cameras: Predicted camera.
modeling/g2vlm/metric.py:107
Functioncamera_to_rel_deg
Calculate the relative rotation and translation angles between two poses. Args: pose_pred: Predicted camera pose as a tensor of shap
modeling/g2vlm/rotation_utils.py:617
Functioncatch_exception
(fn)
eval_code/recons/models/moge/utils/tools.py:14
Functioncausal_mask
(b, h, q_idx, kv_idx)
data/data_utils.py:11
Functioncenter_crop_image_depthmap
Jointly center-crop an image and its depthmap, and adjust the camera intrinsics accordingly. Parameters: - image: PIL.Image or similar,
modeling/pi3/utils/cropping.py:93
Methodchange_format
(self, data, num_images)
data/recon_dataset.py:224
Methodchange_format
(self, data, num_images)
data/vlm_dataset.py:63
Functioncheck_valid_numpy
Checks if a numpy array is valid (not None and has the expected shape). Raises an error if the array is None or has an unexpected shape.
data/recon_dataset.py:78
Functionchessboard
get a chessboard image Args: width (int): image width height (int): image height grid_size (int): size of chessboard grid
eval_code/recons/models/moge/utils3d/torch/utils.py:333
Functionchessboard
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:392
Functionchessboard
get x chessboard image Args: width (int): image width height (int): image height grid_size (int): size of chessboard grid
eval_code/recons/models/moge/utils3d/numpy/utils.py:570
Functionclosed_form_inverse_OpenCV
Computes the inverse of each 4x4 SE3 matrix in the batch. Args: - se3 (Tensor): Nx4x4 tensor of SE3 matrices. Returns: - Tensor
modeling/g2vlm/metric.py:233
Methodcls_seg
Classify each pixel.
modeling/pi3/models/segformer/head.py:638
Functioncollate_fn
(batch)
data/dataset_base.py:791
Functioncollate_fn
(batch)
data/dataset_base_periter.py:787
Functioncollate_wrapper
()
data/dataset_base_periter.py:786
Functioncolorize_depth
(depth: np.ndarray, mask: np.ndarray = None, normalize: bool = True, cmap: str = 'Spectral')
eval_code/recons/models/moge/utils/vis.py:7
Functioncolorize_depth_affine
(depth: np.ndarray, mask: np.ndarray = None, cmap: str = 'Spectral')
eval_code/recons/models/moge/utils/vis.py:21
Functioncolorize_disparity
(disparity: np.ndarray, mask: np.ndarray = None, normalize: bool = True, cmap: str = 'Spectral')
eval_code/recons/models/moge/utils/vis.py:32
Functioncolorize_error_map
(error_map: np.ndarray, mask: np.ndarray = None, cmap: str = 'plasma', value_range: Tuple[float, float] = None
eval_code/recons/models/moge/utils/vis.py:58
Functioncolorize_normal
(normal: np.ndarray, mask: np.ndarray = None)
eval_code/recons/models/moge/utils/vis.py:50
Functioncolorize_segmentation
(segmentation: np.ndarray, cmap: str = 'Set1')
eval_code/recons/models/moge/utils/vis.py:44
Functioncompletion_ratio
(gt_points, rec_points, dist_th=0.05)
eval_code/recons/mv_recon/utils.py:45
Functioncompute_boundarys
Compute boundary edges of a mesh. Args: faces (torch.Tensor): [T, 3] triangular face indices edges (torch.Tensor): [E, 2] ed
eval_code/recons/models/moge/utils3d/torch/mesh.py:332
Functioncompute_boundarys
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:752
Functioncompute_connected_components
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:740
Functioncompute_dual_graph
Compute dual graph of a mesh. Args: face2edge (torch.Tensor): [T, 3] mapping from face to edge. Returns:
eval_code/recons/models/moge/utils3d/torch/mesh.py:388
Functioncompute_dual_graph
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:758
Functioncompute_edge_connected_components
Compute connected edges of a mesh. Args: edges (torch.Tensor): [E, 2] edge indices Returns: components (List[torch.Tens
eval_code/recons/models/moge/utils3d/torch/mesh.py:293
Functioncompute_edge_connected_components
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:746
Functioncompute_edges
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:734
Functioncompute_face_angle
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:182
Functioncompute_face_angles
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:728
Functioncompute_face_normal
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:176
Functioncompute_face_tbn
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:770
Functioncompute_iou
(pred_vox, target_vox)
eval_code/recons/mv_recon/utils.py:83
Functioncompute_ranking
(extrinsics, lambda_t=1.0, normalize=True, batched=True)
modeling/g2vlm/frame_sample_utils.py:108
← previousnext →1,101–1,200 of 2,118, ranked by callers