MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

Functionquaternion_from_matrix
Return quaternion from rotation matrix. If isprecise is True, the input matrix is assumed to be a precise rotation matrix and a faster algori
modeling/g2vlm/metric.py:17
Functionquaternion_multiply
Multiply two quaternions representing rotations, returning the quaternion representing their composition, i.e. the versor with nonnegative re
modeling/g2vlm/rotation_utils.py:419
Functionquaternion_to_axis_angle
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:914
Functionquaternion_to_matrix
Converts a batch of quaternions (w, x, y, z) to rotation matrices Args: quaternion (torch.Tensor): shape (..., 4), the quaternions to
eval_code/recons/models/moge/utils3d/torch/transforms.py:1023
Functionquaternion_to_matrix
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:578
Functionrandom_rotation
Generate a single random 3x3 rotation matrix. Args: dtype: Type to return device: Device of returned tensor. Default: if Non
modeling/g2vlm/rotation_utils.py:366
Functionrasterize_edges
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:704
Functionrasterize_edges
Rasterize vertex attribute. Args: vertices (np.ndarray): [N, 3] faces (np.ndarray): [T, 3] attr (np.ndarray): [N, C]
eval_code/recons/models/moge/utils3d/numpy/rasterization.py:206
Functionrasterize_triangle_faces
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:698
Functionrasterize_triangle_faces_depth_peeling
Rasterize a mesh with vertex attributes using depth peeling. Args: ctx (GLContext): rasterizer context vertices (np.ndarray)
eval_code/recons/models/moge/utils3d/torch/rasterization.py:144
Functionrasterize_triangle_faces_depth_peeling
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:974
Functionray_intersection
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:626
Functionray_intersection
Compute the intersection/closest point of two D-dimensional rays If the rays are intersecting, the closest point is the intersection point.
eval_code/recons/models/moge/utils3d/numpy/transforms.py:880
Functionread_depth
Read a depth image, return float32 depth array of shape (H, W).
eval_code/recons/models/moge/utils/io.py:89
Functionread_extrinsics_from_colmap
Read extrinsics from colmap `images.txt` file. Args: file: Path to `images.txt` file. Returns: extrinsics: (N, 4, 4) arr
eval_code/recons/models/moge/utils3d/io/colmap.py:65
Functionread_frames_decord
(video_path, num_frames, sample='rand', fix_start=None, clip=None, min_num_frames=4)
data/video_utils.py:63
Functionread_frames_folder
(video_path, num_frames, sample='rand', fix_start=None, min_num_frames=4)
data/video_utils.py:99
Functionread_image
Read a image, return uint8 RGB array of shape (H, W, 3).
eval_code/recons/models/moge/utils/io.py:66
Functionread_intrinsics_from_colmap
Read intrinsics from colmap `cameras.txt` file. Args: file: Path to `cameras.txt` file. normalize: Whether to normalize the i
eval_code/recons/models/moge/utils3d/io/colmap.py:103
Functionread_jsonl
(file)
eval_code/recons/models/moge/utils/tools.py:116
Functionread_meta
(path: Union[str, os.PathLike, IO])
eval_code/recons/models/moge/utils/io.py:232
Functionread_normal
Read a normal image, return float32 normal array of shape (H, W, 3).
eval_code/recons/models/moge/utils/io.py:202
Functionread_obj
Read wavefront .obj file, without preprocessing. Why bothering having this read_obj() while we already have other libraries like `trimes
eval_code/recons/models/moge/utils3d/io/obj.py:12
Functionread_ply
Read .ply file, without preprocessing. Args: file (Any): filepath encoding (str, optional): Returns: T
eval_code/recons/models/moge/utils3d/io/ply.py:7
Functionread_segmentation
Read a segmentation mask ### Parameters: - `path: Union[str, os.PathLike, IO]` The file path or file object to read from. ###
eval_code/recons/models/moge/utils/io.py:157
Functionread_traj_local
(traj_path)
data/dataset_utils_vggt.py:622
Functionrecover_focal_shift_numpy
(points: np.ndarray, mask: np.ndarray = None, focal: float = None, downsample_size: Tuple[int, int] = (64, 64)
eval_code/recons/models/moge/utils/geometry_numpy.py:115
Functionrecursive_replace
(d: Union[List, Dict, str], mapping: Dict[str, str])
eval_code/recons/models/moge/utils/tools.py:139
Functionrefine_depth_with_normal
(depth: torch.Tensor, normal: torch.Tensor, intrinsics: torch.Tensor, iterations: int = 10, damp: float = 1e-3
eval_code/recons/models/moge/utils/geometry_torch.py:326
Functionremove_corrupted_faces
Remove corrupted faces (faces with duplicated vertices) Args: faces (torch.Tensor): [T, 3] triangular face indices Returns:
eval_code/recons/models/moge/utils3d/torch/mesh.py:436
Functionremove_corrupted_faces
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:200
Functionremove_corrupted_faces
Remove corrupted faces (faces with duplicated vertices) Args: faces (np.ndarray): [T, 3] triangular face indices Returns:
eval_code/recons/models/moge/utils3d/numpy/mesh.py:185
Functionremove_isolated_pieces
Remove isolated pieces of a mesh. Isolated pieces are removed, and the face indices are updated accordingly. If no face is left, will re
eval_code/recons/models/moge/utils3d/torch/mesh.py:477
Functionremove_isolated_pieces
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:764
Functionremove_noise_mask
(b, h, q_idx, kv_idx)
data/data_utils.py:17
Functionremove_unreferenced_vertices
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:212
Functionremove_unreferenced_vertices
Remove unreferenced vertices of a mesh. Unreferenced vertices are removed, and the face indices are updated accordingly. Args:
eval_code/recons/models/moge/utils3d/numpy/mesh.py:226
Functionrescale_image_depthmap
Jointly rescale a (image, depthmap) so that (out_width, out_height) >= output_res
modeling/pi3/utils/cropping.py:56
Methodreset_classifier
(self, num_classes, global_pool='')
modeling/pi3/models/segformer/backbone.py:311
Methodreset_drop_path
(self, drop_path_rate)
modeling/pi3/models/segformer/backbone.py:283
Functionrotate_2d
3x3 matrix for 2D rotation around a center ``` [[Rxx, Rxy, tx], [Ryx, Ryy, ty], [0, 0, 1]] ``` Args:
eval_code/recons/models/moge/utils3d/torch/transforms.py:1168
Functionrotate_2d
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:950
Functionrotation_6d_to_matrix
Converts 6D rotation representation by Zhou et al. [1] to rotation matrix using Gram--Schmidt orthogonalization per Section B of [1]. Arg
modeling/g2vlm/rotation_utils.py:574
Functionrotation_matrix_2d
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:944
Functionrotation_matrix_from_vectors
Rotation matrix that rotates v1 to v2
eval_code/recons/models/moge/utils3d/torch/transforms.py:822
Functionrotation_matrix_from_vectors
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:620
Functionrotation_matrix_from_vectors
Rotation matrix that rotates v1 to v2
eval_code/recons/models/moge/utils3d/numpy/transforms.py:841
Functionsample_mask
(b, h, q_idx, kv_idx)
data/data_utils.py:20
Functionsample_mp4_frames
(mp4_p, n_frames=None, fps=None, return_frame_indices=False, random_sample=False)
data/video_utils.py:136
Functionsample_mp4_frames_by_indices
(mp4_p, frame_indices: list)
data/video_utils.py:158
Functionsave_glb
( save_path: Union[str, os.PathLike], vertices: np.ndarray, faces: np.ndarray, vertex_uvs:
eval_code/recons/models/moge/utils/io.py:18
Functionsave_ply
(points, colors, filename)
data/dataset_utils_vggt.py:599
Functionsave_ply
( save_path: Union[str, os.PathLike], vertices: np.ndarray, faces: np.ndarray, vertex_color
eval_code/recons/models/moge/utils/io.py:46
Functionsave_ply_visualization
Saves a PLY visualization of the world points and images. Args:
data/dataset_utils_vggt.py:457
Methodsave_vocabulary
(self, save_directory: str, filename_prefix: Optional[str] = None)
modeling/qwen2/tokenization_qwen2_fast.py:121
Methodsave_vocabulary
(self, save_directory: str, filename_prefix: Optional[str] = None)
modeling/qwen2/tokenization_qwen2.py:297
Functionscale_2d
Scale matrix for 2D scaling ``` [[s, 0, tx], [0, s, ty], [0, 0, 1]] ``` Args: scale (float | torch.Te
eval_code/recons/models/moge/utils3d/torch/transforms.py:1222
Functionscale_2d
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:962
Functionse3_inverse
Computes the inverse of a batch of SE(3) matrices. T: Tensor of shape (B, 4, 4)
eval_code/recons/models/pi3/utils/geometry.py:5
Functionse3_matrix
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:632
Functionseed_anything
(seed: int, deterministic=False)
modeling/pi3/utils/basic.py:24
Methodseekable
(self)
eval_code/recons/models/moge/utils/webfile.py:29
Methodseq_lens
(self)
modeling/g2vlm/qwen2vl.py:247
Methodset_decoder
(self, decoder)
modeling/qwen2/modeling_qwen2.py:838
Methodset_decoder
(self, decoder)
modeling/qwen2vl/modeling_qwen2_vl.py:1476
Methodset_decoder
(self, decoder)
modeling/g2vlm/qwen2vl.py:1370
Methodset_epoch
(self, seed=42)
data/distributed_iterable_dataset.py:21
Methodset_input_embeddings
(self, value)
modeling/qwen2/modeling_qwen2.py:684
Methodset_input_embeddings
(self, value)
modeling/qwen2/modeling_qwen2.py:829
Methodset_input_embeddings
(self, value)
modeling/qwen2vl/modeling_qwen2_vl.py:1100
Methodset_input_embeddings
(self, value)
modeling/qwen2vl/modeling_qwen2_vl.py:1467
Methodset_input_embeddings
(self, value)
modeling/g2vlm/qwen2vl.py:1361
Methodset_output_embeddings
(self, new_embeddings)
modeling/qwen2/modeling_qwen2.py:835
Methodset_output_embeddings
(self, new_embeddings)
modeling/qwen2vl/modeling_qwen2_vl.py:1473
Methodset_output_embeddings
(self, new_embeddings)
modeling/g2vlm/qwen2vl.py:1367
Methodset_random_aspect_ratio
(self, num)
data/interleave_datasets/recon_then_und_dataset.py:53
Methodset_random_image_num
(self, num)
data/interleave_datasets/recon_then_und_dataset.py:50
Methodset_step_rng
(self, rng)
data/interleave_datasets/recon_then_und_dataset.py:55
Functionsetup
Create configs and perform basic setups.
modeling/pi3/models/dinov2/utils/config.py:63
Functionsetup
Create configs and perform basic setups.
eval_code/recons/models/moge/model/dinov2/utils/config.py:63
Functionsetup
Create configs and perform basic setups.
eval_code/recons/models/pi3/models/dinov2/utils/config.py:63
Functionsetup_debug
(is_main_process=True, max_retries=10, port_range=(10000, 20000))
modeling/pi3/utils/debug.py:40
Functionsetup_debug
(is_main_process=True, max_retries=10, port_range=(10000, 20000))
eval_code/recons/models/pi3/utils/debug.py:40
Functionshuffle_patch
将图像分割为块(允许尺寸不整除),随机打乱后拼接,块间保留间隙
data/transforms.py:259
Functionsimple_write_obj
Write wavefront .obj file, without preprocessing. Args: vertices (np.ndarray): [N, 3] faces (np.ndarray): [T, 3]
eval_code/recons/models/moge/utils3d/io/obj.py:127
Functionskew_symmetric
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:614
Functionslerp
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:920
Functionslerp_quaternion
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:638
Functionslerp_vector
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:644
Functionslerp_vector
Spherical linear interpolation between two unit vectors. The vectors are assumed to be normalized. Args: v1 (np.ndarray): [..., d] u
eval_code/recons/models/moge/utils3d/numpy/transforms.py:972
Functionslice_expand_and_flatten
Processes specialized tokens with shape (1, 2, X, C) for multi-frame processing: 1) Uses the first position (index=0) for the first frame onl
modeling/g2vlm/g2vlm.py:53
Functionsliding_window_1d
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:278
Functionsliding_window_2d
(x: torch.Tensor, window_size: Union[int, Tuple[int, int]], stride: Union[int, Tuple[int, int]], dim: Union[in
eval_code/recons/models/moge/utils3d/torch/utils.py:48
Functionsliding_window_2d
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:290
Functionsliding_window_nd
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:284
Functionsovle_quad
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:260
Functionsovle_quad_qp
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:266
Functionsovle_quad_qp
Solve the quad mesh from the candidate quad faces. Args: face2edge (np.ndarray): [T, 3] face to edge relation edge2face (np.
eval_code/recons/models/moge/utils3d/numpy/quadmesh.py:313
Functionsplit_integer_exp_decay
(S, ng_sample_decay=1.0)
data/data_utils.py:242
Functionsplit_panorama_image
(image: np.ndarray, extrinsics: np.ndarray, intrinsics: np.ndarray, resolution: int)
eval_code/recons/models/moge/utils/panorama.py:40
← previousnext →1,901–2,000 of 2,118, ranked by callers