MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

↓ 1 callersFunctionaxis_angle_to_quaternion
Convert rotations given as axis/angle to quaternions. Args: axis_angle: Rotations given as a vector in axis angle form,
modeling/g2vlm/rotation_utils.py:510
↓ 1 callersMethodbatch_decode
This method forwards all its arguments to Qwen2TokenizerFast's [`~PreTrainedTokenizer.batch_decode`]. Please refer to the docstring o
modeling/qwen2vl/processing_qwen2_vl.py:159
↓ 1 callersFunctionbatched_all_pairs
(B, N)
modeling/g2vlm/metric.py:221
↓ 1 callersFunctionbest_plotmode
(traj)
eval_code/recons/relpose/evo_utils.py:394
↓ 1 callersMethodbpe
(self, token)
modeling/qwen2/tokenization_qwen2.py:208
↓ 1 callersFunctionbroadcast_args
(args, kwargs, args_dim, kwargs_dim)
eval_code/recons/models/moge/utils3d/torch/_helpers.py:38
↓ 1 callersFunctionbroadcast_args
(args, kwargs, args_dim, kwargs_dim)
eval_code/recons/models/moge/utils3d/numpy/_helpers.py:28
↓ 1 callersFunctionbuild_conv_layer
Build convolution layer. Args: cfg (None or dict): The conv layer config, which should contain: - type (str): Layer type.
modeling/pi3/models/segformer/head.py:73
↓ 1 callersMethodbuild_datasets
(self, datasets_metainfo, data_status)
data/dataset_base.py:124
↓ 1 callersMethodbuild_datasets
(self, datasets_metainfo, data_status)
data/dataset_base_periter.py:124
↓ 1 callersFunctionbuild_model
(args, only_teacher=False, img_size=224)
modeling/pi3/models/dinov2/models/__init__.py:14
↓ 1 callersFunctionbuild_model
(args, only_teacher=False, img_size=224)
eval_code/recons/models/moge/model/dinov2/models/__init__.py:14
↓ 1 callersFunctionbuild_model
(args, only_teacher=False, img_size=224)
eval_code/recons/models/pi3/models/dinov2/models/__init__.py:14
↓ 1 callersFunctionbuild_padding_layer
Build padding layer. Args: cfg (dict): The padding layer config, which should contain: - type (str): Layer type.
modeling/pi3/models/segformer/head.py:111
↓ 1 callersFunctionbuild_pair_index
(N, B=1)
eval_code/recons/relpose/metric.py:9
↓ 1 callersFunctionbuild_transform
(pixel=224)
g2vlm_utils.py:113
↓ 1 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a mapping to unicode strings. We specifically avoids mapping to whitespace/control characters the bpe code bar
modeling/qwen2/tokenization_qwen2.py:33
↓ 1 callersFunctionc2w_to_tumpose
Convert a camera-to-world matrix to a tuple of translation and rotation input: c2w: 4x4 matrix output: tuple of translation and rotation
eval_code/recons/relpose/evo_utils.py:51
↓ 1 callersFunctioncalc_quad_candidates
Calculate the candidate quad faces. Args: edges (np.ndarray): [E, 2] edge indices face2edge (np.ndarray): [T, 3] face to edg
eval_code/recons/models/moge/utils3d/numpy/quadmesh.py:18
↓ 1 callersFunctioncalc_quad_direction
Calculate the direction of each candidate quad face. Args: vertices (np.ndarray): [N, 3] 3-dimensional vertices quads (np.nd
eval_code/recons/models/moge/utils3d/numpy/quadmesh.py:130
↓ 1 callersFunctioncalc_quad_distortion
Calculate the distortion of each candidate quad face. Args: vertices (np.ndarray): [N, 3] 3-dimensional vertices quads (np.n
eval_code/recons/models/moge/utils3d/numpy/quadmesh.py:79
↓ 1 callersFunctioncalc_quad_smoothness
Calculate the smoothness of each candidate quad face connection. Args: quad2adj (np.ndarray): [Q, 8] adjacent quad faces of each qua
eval_code/recons/models/moge/utils3d/numpy/quadmesh.py:174
↓ 1 callersFunctioncalculate_averages
(results)
eval_code/recons/relpose/evo_utils.py:483
↓ 1 callersFunctioncamera_matrix_of_crop
(input_camera_matrix, input_resolution, output_resolution, scaling=1, offset_factor=0.5, offset=None)
modeling/pi3/utils/cropping.py:156
↓ 1 callersMethodchat_with_recon
( self, tokenizer, new_token_ids, image_transform, dino_image_transfor
modeling/g2vlm/g2vlm.py:1474
↓ 1 callersFunctionclosed_form_inverse_intrinsics
Compute the inverse of each 3x3 intrinsics matrix in a batch.
eval_code/recons/models/moge/utils3d/torch/transforms.py:61
↓ 1 callersFunctionclosed_form_inverse_se3
Compute the inverse of each 4x4 (or 3x4) SE3 matrix in a batch. If `R` and `T` are provided, they must correspond to the rotation and transl
eval_code/recons/models/moge/utils3d/torch/transforms.py:74
↓ 1 callersFunctioncolmap_to_opencv_intrinsics
Modify camera intrinsics to follow a different convention. Coordinates of the center of the top-left pixels are by default: - (0.5, 0.5)
modeling/pi3/utils/basic.py:42
↓ 1 callersFunctioncolor_from_xy
Map (x, y) -> color in (R, G, B). 1) Normalize x,y to [0,1]. 2) Combine them into a single scalar c in [0,1]. 3) Use matplotlib's col
eval_code/recons/models/vggt/utils/visual_track.py:13
↓ 1 callersFunctioncompare_translation_by_angle
Normalize the translation vectors and compute the angle between them.
modeling/g2vlm/metric.py:337
↓ 1 callersFunctioncompare_translation_by_angle
Normalize the translation vectors and compute the angle between them.
modeling/g2vlm/rotation_utils.py:676
↓ 1 callersFunctioncompare_translation_by_angle
Normalize the translation vectors and compute the angle between them.
eval_code/recons/relpose/metric.py:48
↓ 1 callersFunctioncompute_connected_components
Compute connected faces of a mesh. Args: faces (torch.Tensor): [T, 3] triangular face indices edges (torch.Tensor, optional)
eval_code/recons/models/moge/utils3d/torch/mesh.py:251
↓ 1 callersFunctioncompute_corr_level
(fmap1, fmap2s, C)
eval_code/recons/models/vggt/heads/track_modules/blocks.py:241
↓ 1 callersFunctioncompute_edges
Compute edges of a mesh. Args: faces (torch.Tensor): [T, 3] triangular face indices Returns: edges (torch.T
eval_code/recons/models/moge/utils3d/torch/mesh.py:229
↓ 1 callersFunctioncompute_face_angle
Compute face angles of a triangular mesh Args: vertices (np.ndarray): [..., N, 3] 3-dimensional vertices faces (np.ndarray):
eval_code/recons/models/moge/utils3d/numpy/mesh.py:91
↓ 1 callersFunctioncompute_face_angles
Compute face angles of a triangular mesh Args: vertices (torch.Tensor): [..., N, 3] 3-dimensional vertices faces (torch.Tens
eval_code/recons/models/moge/utils3d/torch/mesh.py:147
↓ 1 callersFunctioncompute_face_tbn
compute TBN matrix for each face Args: pos (torch.Tensor): shape (..., N_pos, 3), positions faces_pos (torch.Tensor): shape(T, 3)
eval_code/recons/models/moge/utils3d/torch/mesh.py:574
↓ 1 callersFunctionconstant_init
(module, val, bias=0)
modeling/pi3/models/segformer/head.py:13
↓ 1 callersFunctionconvert_dinov2_with_registers_checkpoint
Copy/paste/tweak model's weights to our Dinov2WithRegisters structure.
modeling/dinov2_with_registers/convert_dinov2_with_registers_to_hf.py:152
↓ 1 callersMethodconvert_pose_to_4x4
(self, B, out_r, out_t, device)
modeling/pi3/models/layers/camera_head.py:66
↓ 1 callersMethodconvert_pose_to_4x4
(self, B, out_r, out_t, device)
eval_code/recons/models/pi3/models/layers/camera_head.py:66
↓ 1 callersFunctionconvert_pt3d_RT_to_opencv
(Rot, Trans)
eval_code/recons/datasets/co3d_v2.py:95
↓ 1 callersMethodcorr_sample
Instead of storing the entire correlation pyramid, we compute each level's correlation volume, sample it immediately, then discard it
eval_code/recons/models/vggt/heads/track_modules/blocks.py:186
↓ 1 callersFunctioncreate_rename_keys
(config)
modeling/dinov2_with_registers/convert_dinov2_with_registers_to_hf.py:76
↓ 1 callersFunctioncreate_uv_grid
Create a normalized UV grid of shape (width, height, 2). The grid spans horizontally and vertically according to an aspect ratio, ensuri
eval_code/recons/models/vggt/heads/utils.py:66
↓ 1 callersMethoddecode
( self, token_ids, skip_special_tokens: bool = False, clean_up_tokenization_sp
modeling/qwen2/tokenization_qwen2.py:278
↓ 1 callersMethoddecode
(self, hidden, N, H, W)
modeling/pi3/models/pi3_training.py:205
↓ 1 callersFunctiondefault_setup
(args)
modeling/pi3/models/dinov2/utils/config.py:49
↓ 1 callersFunctiondefault_setup
(args)
eval_code/recons/models/moge/model/dinov2/utils/config.py:49
↓ 1 callersFunctiondefault_setup
(args)
eval_code/recons/models/pi3/models/dinov2/utils/config.py:49
↓ 1 callersFunctiondepth_edge
Compute the edge mask of a depth map. The edge is defined as the pixels whose neighbors have a large difference in depth. Args:
modeling/pi3/utils/geometry.py:339
↓ 1 callersFunctiondepth_read_bonn
(filename: str)
eval_code/recons/utils/depth.py:70
↓ 1 callersFunctiondepth_read_kitti
(filename: str)
eval_code/recons/utils/depth.py:81
↓ 1 callersFunctiondepth_read_nyu
(filename: str)
eval_code/recons/utils/depth.py:94
↓ 1 callersFunctiondepth_read_sintel
Read depth data from file, return as numpy array.
eval_code/recons/utils/depth.py:49
↓ 1 callersFunctiondepth_to_cam_coords_points
Convert a depth map to camera coordinates. Args: depth_map (np.ndarray): Depth map of shape (H, W). intrinsic (np.ndarray):
eval_code/recons/models/vggt/utils/geometry.py:84
↓ 1 callersFunctiondepth_to_points
(depth: torch.Tensor, intrinsics: torch.Tensor, extrinsics: torch.Tensor = None)
eval_code/recons/models/moge/utils3d/torch/utils.py:291
↓ 1 callersFunctiondepthmap_to_camera_coordinates
Args: - depthmap (HxW array): - camera_intrinsics: a 3x3 matrix Returns: pointmap of absolute coordinates (HxWx3 arra
modeling/pi3/utils/geometry.py:72
↓ 1 callersFunctiondepthmap_to_camera_coordinates
Args: - depthmap (HxW array): - camera_intrinsics: a 3x3 matrix Returns: pointmap of absolute coordinates (HxWx3 arra
eval_code/recons/models/pi3/utils/geometry.py:80
↓ 1 callersFunctiondinov2_vitl14_reg
DINOv2 ViT-L/14 model with registers (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:128
↓ 1 callersFunctiondirections_to_spherical_uv
(directions: np.ndarray)
eval_code/recons/models/moge/utils/panorama.py:33
↓ 1 callersFunctiondisk_blur
Apply disk blur to an image using FFT convolution. Args: image (np.ndarray): Input image, can be grayscale or color. radius
eval_code/recons/models/moge/utils/geometry_numpy.py:329
↓ 1 callersFunctiondisk_kernel
Generate disk kernel with given radius. Args: radius (int): Radius of the disk (in pixels). Returns: np.ndarray
eval_code/recons/models/moge/utils/geometry_numpy.py:309
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
modeling/dinov3/dinov3_model.py:329
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
modeling/dinov3/modeling_dinov3_vit.py:328
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). Comment by Ross Wightman: This is the same as the D
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:332
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). Comment by Ross Wightman: This is the same as the D
modeling/g2vlm/dinov2_model.py:153
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
modeling/pi3/models/dinov2/layers/drop_path.py:14
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
eval_code/recons/models/moge/model/dinov2/layers/drop_path.py:14
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
eval_code/recons/models/vggt/layers/drop_path.py:14
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
eval_code/recons/models/pi3/models/dinov2/layers/drop_path.py:14
↓ 1 callersFunctioneuler_axis_angle_rotation
Return the rotation matrices for one of the rotations about an axis of which Euler angles describe, for each value of the angle given. A
eval_code/recons/models/moge/utils3d/torch/transforms.py:752
↓ 1 callersFunctioneuler_axis_angle_rotation
Return the rotation matrices for one of the rotations about an axis of which Euler angles describe, for each value of the angle given. A
eval_code/recons/models/moge/utils3d/numpy/transforms.py:772
↓ 1 callersFunctionexists
(val)
eval_code/recons/models/vggt/heads/track_modules/modules.py:28
↓ 1 callersMethodextract_feat
Extract features from images.
modeling/pi3/models/segformer/model.py:46
↓ 1 callersFunctionextract_frame_number
(filename)
data/video_utils.py:87
↓ 1 callersFunctionextract_metrics
(file_path)
eval_code/recons/relpose/evo_utils.py:444
↓ 1 callersFunctionextrinsic_distance
(extrinsic1, extrinsic2, lambda_t=1.0)
modeling/g2vlm/frame_sample_utils.py:18
↓ 1 callersFunctionextrinsic_distance
(extrinsic1, extrinsic2, lambda_t=1.0)
data/frame_sampling_utils.py:18
↓ 1 callersFunctionextrinsic_distance_batch
(extrinsics, lambda_t=1.0)
modeling/g2vlm/frame_sample_utils.py:42
↓ 1 callersFunctionextrinsic_distance_batch
(extrinsics, lambda_t=1.0)
data/frame_sampling_utils.py:42
↓ 1 callersFunctionextrinsic_distance_batch_chunked
(extrinsics, lambda_t=1.0, chunk_size=1000)
modeling/g2vlm/frame_sample_utils.py:86
↓ 1 callersFunctionextrinsic_distance_batch_chunked
(extrinsics, lambda_t=1.0, chunk_size=1000)
data/frame_sampling_utils.py:86
↓ 1 callersFunctionflatten_nested_dict
Flattens a nested dictionary into a single-level dictionary, with keys as tuples.
eval_code/recons/models/moge/utils/tools.py:85
↓ 1 callersFunctionformat_float
(num, total_width=20, decimal_places=12)
eval_code/recons/utils/messages.py:64
↓ 1 callersFunctionformat_matrix_str
(matrix)
eval_code/recons/utils/messages.py:63
↓ 1 callersMethodforward
(self, x)
modeling/qwen2vl/modeling_qwen2_vl.py:519
↓ 1 callersMethodforward
(self, x: Tensor)
modeling/pi3/models/layers/block.py:86
↓ 1 callersMethodforward
(self, x: Tensor)
modeling/pi3/models/dinov2/layers/block.py:88
↓ 1 callersMethodforward
(self, x: Tensor, attn_bias=None)
modeling/pi3/models/dinov2/layers/attention.py:56
↓ 1 callersMethodforward
(self, image: torch.Tensor, num_tokens: int)
eval_code/recons/models/moge/model/v2.py:128
↓ 1 callersMethodforward
(self, image: torch.Tensor, num_tokens: int)
eval_code/recons/models/moge/model/v1.py:269
↓ 1 callersMethodforward
(self, x: Tensor)
eval_code/recons/models/moge/model/dinov2/layers/block.py:88
↓ 1 callersMethodforward
(self, x: Tensor, attn_bias=None)
eval_code/recons/models/moge/model/dinov2/layers/attention.py:56
↓ 1 callersMethodforward
(self, x: Tensor, pos=None)
eval_code/recons/models/vggt/layers/block.py:81
↓ 1 callersMethodforward
(self, x: Tensor, pos=None)
eval_code/recons/models/vggt/layers/attention.py:50
↓ 1 callersMethodforward
(self, x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:86
↓ 1 callersMethodforward
(self, x: Tensor)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:88
↓ 1 callersMethodforward
(self, x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/dinov2/layers/attention.py:56
← previousnext →401–500 of 2,118, ranked by callers