Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InternRobotics/G2VLM
/ functions
Functions
2,118 in github.com/InternRobotics/G2VLM
⨍
Functions
2,118
◇
Types & classes
338
↳
Endpoints
3
Function
align_depth_affine_irls
Align `depth_src` to `depth_tgt` with given constant weights using IRLS.
eval_code/recons/models/moge/utils/alignment.py:216
Function
align_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
Function
align_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
Function
align_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
Function
align_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
Function
align_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
Function
align_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
Function
align_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
Function
align_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
Function
align_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
Function
align_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
Function
align_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
Function
angle_diff_vec3
(v1: torch.Tensor, v2: torch.Tensor, eps: float = 1e-12)
eval_code/recons/models/moge/utils/geometry_torch.py:72
Function
angle_diff_vec3
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:680
Function
angle_diff_vec3
(v1: np.ndarray, v2: np.ndarray, eps: float = 1e-12)
eval_code/recons/models/moge/utils3d/numpy/transforms.py:1108
Function
apply_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
Function
apply_2d
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:968
Function
apply_transform
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:674
Function
apply_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
Function
as_torch_dtype
(dtype: TypeSpec)
modeling/pi3/models/dinov2/utils/dtype.py:31
Function
as_torch_dtype
(dtype: TypeSpec)
eval_code/recons/models/moge/model/dinov2/utils/dtype.py:31
Function
as_torch_dtype
(dtype: TypeSpec)
eval_code/recons/models/pi3/models/dinov2/utils/dtype.py:31
Method
attn_residual_func
(x: Tensor)
modeling/pi3/models/layers/block.py:87
Method
attn_residual_func
(x: Tensor, attn_bias=None)
modeling/pi3/models/layers/block.py:217
Method
attn_residual_func
(x: Tensor)
modeling/pi3/models/layers/block.py:311
Method
attn_residual_func
(x: Tensor)
modeling/pi3/models/layers/block.py:392
Method
attn_residual_func
(x: Tensor)
modeling/pi3/models/dinov2/layers/block.py:89
Method
attn_residual_func
(x: Tensor, attn_bias=None)
modeling/pi3/models/dinov2/layers/block.py:219
Method
attn_residual_func
(x: Tensor)
eval_code/recons/models/moge/model/dinov2/layers/block.py:89
Method
attn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/moge/model/dinov2/layers/block.py:219
Method
attn_residual_func
(x: Tensor, pos=None)
eval_code/recons/models/vggt/layers/block.py:82
Method
attn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/vggt/layers/block.py:219
Method
attn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:87
Method
attn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/layers/block.py:217
Method
attn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:311
Method
attn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:392
Method
attn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:89
Method
attn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:219
Method
average_time
(self)
eval_code/recons/models/moge/utils/tools.py:190
Function
axis_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
Function
axis_angle_to_matrix
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:584
Function
axis_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
Function
axis_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
Function
axis_angle_to_quaternion
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:908
Function
batched
Decorator that allows a function to be called with batched arguments.
eval_code/recons/models/moge/utils3d/torch/_helpers.py:60
Function
batched
Decorator that allows a function to be called with batched arguments.
eval_code/recons/models/moge/utils3d/numpy/_helpers.py:50
Function
bbox_from_intrinsics_in_out
(input_camera_matrix, output_camera_matrix, output_resolution)
modeling/pi3/utils/cropping.py:204
Function
bin_sample
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:830
Method
blender2opencv_c2w
(self, pose)
data/recon_dataset.py:196
Function
bounding_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
Function
bounding_rect
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:884
Function
build_model_from_cfg
(cfg, only_teacher=False)
modeling/pi3/models/dinov2/models/__init__.py:42
Function
build_model_from_cfg
(cfg, only_teacher=False)
eval_code/recons/models/moge/model/dinov2/models/__init__.py:42
Function
build_model_from_cfg
(cfg, only_teacher=False)
eval_code/recons/models/pi3/models/dinov2/models/__init__.py:42
Function
calc_quad_candidates
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:236
Function
calc_quad_direction
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:248
Function
calc_quad_distortion
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:242
Function
calc_quad_smoothness
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:254
Function
calculate_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
Function
calculate_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
Function
calculate_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
Function
camera_frustum
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:416
Function
camera_frustum
Get x triangle mesh of camera frustum.
eval_code/recons/models/moge/utils3d/numpy/utils.py:639
Function
camera_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
Function
camera_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
Function
catch_exception
(fn)
eval_code/recons/models/moge/utils/tools.py:14
Function
causal_mask
(b, h, q_idx, kv_idx)
data/data_utils.py:11
Function
center_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
Method
change_format
(self, data, num_images)
data/recon_dataset.py:224
Method
change_format
(self, data, num_images)
data/vlm_dataset.py:63
Function
check_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
Function
chessboard
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
Function
chessboard
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:392
Function
chessboard
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
Function
closed_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
Method
cls_seg
Classify each pixel.
modeling/pi3/models/segformer/head.py:638
Function
collate_fn
(batch)
data/dataset_base.py:791
Function
collate_fn
(batch)
data/dataset_base_periter.py:787
Function
collate_wrapper
()
data/dataset_base_periter.py:786
Function
colorize_depth
(depth: np.ndarray, mask: np.ndarray = None, normalize: bool = True, cmap: str = 'Spectral')
eval_code/recons/models/moge/utils/vis.py:7
Function
colorize_depth_affine
(depth: np.ndarray, mask: np.ndarray = None, cmap: str = 'Spectral')
eval_code/recons/models/moge/utils/vis.py:21
Function
colorize_disparity
(disparity: np.ndarray, mask: np.ndarray = None, normalize: bool = True, cmap: str = 'Spectral')
eval_code/recons/models/moge/utils/vis.py:32
Function
colorize_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
Function
colorize_normal
(normal: np.ndarray, mask: np.ndarray = None)
eval_code/recons/models/moge/utils/vis.py:50
Function
colorize_segmentation
(segmentation: np.ndarray, cmap: str = 'Set1')
eval_code/recons/models/moge/utils/vis.py:44
Function
completion_ratio
(gt_points, rec_points, dist_th=0.05)
eval_code/recons/mv_recon/utils.py:45
Function
compute_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
Function
compute_boundarys
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:752
Function
compute_connected_components
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:740
Function
compute_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
Function
compute_dual_graph
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:758
Function
compute_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
Function
compute_edge_connected_components
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:746
Function
compute_edges
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:734
Function
compute_face_angle
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:182
Function
compute_face_angles
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:728
Function
compute_face_normal
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:176
Function
compute_face_tbn
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:770
Function
compute_iou
(pred_vox, target_vox)
eval_code/recons/mv_recon/utils.py:83
Function
compute_ranking
(extrinsics, lambda_t=1.0, normalize=True, batched=True)
modeling/g2vlm/frame_sample_utils.py:108
← previous
next →
1,101–1,200 of 2,118, ranked by callers