MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

↓ 1 callersMethodrotate_half
(x)
modeling/pi3/models/layers/pos_embed.py:132
↓ 1 callersMethodrotate_half
(x)
eval_code/recons/models/pi3/models/layers/pos_embed.py:132
↓ 1 callersFunctionrotation_angle
(rot_gt, rot_pred, batch_size=None, eps=1e-15)
modeling/g2vlm/metric.py:307
↓ 1 callersFunctionrotation_angle
(rot_gt, rot_pred, batch_size=None, eps=1e-15)
modeling/g2vlm/rotation_utils.py:646
↓ 1 callersFunctionrotation_angle
(R1, R2)
modeling/g2vlm/frame_sample_utils.py:9
↓ 1 callersFunctionrotation_angle
(R1, R2)
data/frame_sampling_utils.py:9
↓ 1 callersFunctionrotation_angle
(rot_gt, rot_pred, batch_size=None, eps=1e-15)
eval_code/recons/relpose/metric.py:16
↓ 1 callersFunctionrotation_angle_batch
(R1, R2)
modeling/g2vlm/frame_sample_utils.py:25
↓ 1 callersFunctionrotation_angle_batch
(R1, R2)
data/frame_sampling_utils.py:25
↓ 1 callersFunctionrotation_angle_batch_chunked
(R, chunk_size)
modeling/g2vlm/frame_sample_utils.py:57
↓ 1 callersFunctionrotation_angle_batch_chunked
(R, chunk_size)
data/frame_sampling_utils.py:57
↓ 1 callersFunctionrotation_matrix_2d
2x2 matrix for 2D rotation Args: theta (float | torch.Tensor): rotation angle in radians, arbitrary shape (...,) Returns:
eval_code/recons/models/moge/utils3d/torch/transforms.py:1150
↓ 1 callersFunctionsave_image_grid
images: numpy array of shape (N, H, W, 3) grid_shape: (rows, cols)
eval_code/recons/utils/vis_utils.py:9
↓ 1 callersFunctionsave_ply_visualization
Saves a PLY visualization of the world points and images. Args:
g2vlm_utils.py:125
↓ 1 callersFunctionsave_trajectory_tum_format
(traj, filename, verbose=False)
eval_code/recons/relpose/evo_utils.py:432
↓ 1 callersFunctionscale_bbox
(bbox, width, height)
data/draw_marker.py:5
↓ 1 callersFunctionscale_bbox
(bbox, width, height)
data/interleave_datasets/draw_marker.py:5
↓ 1 callersFunctionscale_point
(point, width, height)
data/draw_marker.py:8
↓ 1 callersFunctionscale_point
(point, width, height)
data/interleave_datasets/draw_marker.py:8
↓ 1 callersMethodscratch_forward
Forward pass through the fusion blocks. Args: features (List[Tensor]): List of feature maps from different layers.
eval_code/recons/models/vggt/heads/dpt_head.py:274
↓ 1 callersFunctionse3_matrix
Convert rotation matrix and translation vector to 4x4 transformation matrix. Args: R (np.ndarray): [..., 3, 3] rotation matrix
eval_code/recons/models/moge/utils3d/numpy/transforms.py:908
↓ 1 callersMethodset_epoch
(self, seed)
data/dataset_base_periter.py:195
↓ 1 callersFunctionset_nested_dict
(d: Dict[str, Dict], keys: Tuple[str, ...], value: Any)
eval_code/recons/models/moge/utils/tools.py:59
↓ 1 callersMethodset_sequence_status
(self)
data/dataset_base_periter.py:200
↓ 1 callersMethodsimple_test
Placeholder for single image test.
modeling/pi3/models/segformer/segmentor.py:50
↓ 1 callersFunctionsintel_cam_read
Read camera data, return (M,N) tuple. M is the intrinsic matrix, N is the extrinsic matrix, so that x = M*N*X, with x being a point in h
eval_code/recons/relpose/evo_utils.py:84
↓ 1 callersFunctionskew_symmetric
Skew symmetric matrix from a 3D vector
eval_code/recons/models/moge/utils3d/torch/transforms.py:810
↓ 1 callersFunctionskew_symmetric
Skew symmetric matrix from a 3D vector
eval_code/recons/models/moge/utils3d/numpy/transforms.py:829
↓ 1 callersFunctionslerp
Spherical linear interpolation between two rotation matrices Args: rot_mat_1 (torch.Tensor): shape (..., 3, 3), the first rotation matrix
eval_code/recons/models/moge/utils3d/torch/transforms.py:1048
↓ 1 callersFunctionslerp_quaternion
Spherical linear interpolation between two unit quaternions. Args: q1 (np.ndarray): [..., d] unit vector 1 q2 (np.ndarray):
eval_code/recons/models/moge/utils3d/numpy/transforms.py:927
↓ 1 callersFunctionslerp_rotation_matrix
Spherical linear interpolation between two rotation matrices. Args: R1 (np.ndarray): [..., 3, 3] rotation matrix 1 R2 (np.nd
eval_code/recons/models/moge/utils3d/numpy/transforms.py:954
↓ 1 callersFunctionsliding_window_1d
Sliding window view of the input tensor. The dimension of the sliding window is appended to the end of the input tensor's shape. NOTE: Since
eval_code/recons/models/moge/utils3d/torch/utils.py:32
↓ 1 callersFunctionsliding_window_nd
(x: torch.Tensor, window_size: Tuple[int, ...], stride: Tuple[int, ...], dim: Tuple[int, ...])
eval_code/recons/models/moge/utils3d/torch/utils.py:40
↓ 1 callersFunctionsliding_window_nd
(x: np.ndarray, window_size: Tuple[int,...], stride: Tuple[int,...], axis: Tuple[int,...])
eval_code/recons/models/moge/utils3d/numpy/utils.py:65
↓ 1 callersFunctionsort_frames
(frame_paths)
data/video_utils.py:93
↓ 1 callersFunctionsovle_quad
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:203
↓ 1 callersFunctionspherical_uv_to_directions
(uv: np.ndarray)
eval_code/recons/models/moge/utils/panorama.py:27
↓ 1 callersFunctionstandardize_quaternion
Convert a unit quaternion to a standard form: one in which the real part is non negative. Args: quaternions: Quaternions with re
eval_code/recons/models/vggt/utils/rotation.py:126
↓ 1 callersMethodsvd_orthogonalize
Convert 9D representation to SO(3) using SVD orthogonalization. Args: m: [BATCH, 3, 3] 3x3 matrices. Returns: [B
modeling/pi3/models/layers/camera_head.py:74
↓ 1 callersMethodsvd_orthogonalize
Convert 9D representation to SO(3) using SVD orthogonalization. Args: m: [BATCH, 3, 3] 3x3 matrices. Returns: [B
eval_code/recons/models/pi3/models/layers/camera_head.py:74
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
modeling/g2vlm/modeling_utils.py:88
↓ 1 callersFunctionto_numpy
(x)
eval_code/recons/relpose/evo_utils.py:47
↓ 1 callersMethodto_tensor
(self, sequence_status)
data/dataset_base_periter.py:236
↓ 1 callersFunctiontodevice
Transfer some variables to another device (i.e. GPU, CPU:torch, CPU:numpy). batch: list, tuple, dict of tensors or other things device: pytor
eval_code/recons/relpose/evo_utils.py:19
↓ 1 callersFunctiontranslation_angle
(tvec_gt, tvec_pred, batch_size=None, ambiguity=True)
modeling/g2vlm/metric.py:323
↓ 1 callersFunctiontranslation_angle
(tvec_gt, tvec_pred, batch_size=None, ambiguity=True)
modeling/g2vlm/rotation_utils.py:662
↓ 1 callersFunctiontranslation_angle
(tvec_gt, tvec_pred, batch_size=None, ambiguity=True)
eval_code/recons/relpose/metric.py:33
↓ 1 callersFunctiontraverse_nested_dict_keys
(d: Dict[str, Dict])
eval_code/recons/models/moge/utils/tools.py:43
↓ 1 callersMethodtrunk_fn
Iteratively refine camera pose predictions. Args: pose_tokens (torch.Tensor): Normalized camera tokens with shape [B, 1,
eval_code/recons/models/vggt/heads/camera_head.py:105
↓ 1 callersFunctionumeyama
Estimates the Sim(3) transformation between `X` and `Y` point sets. Estimates c, R and t such as c * R @ X + t ~ Y. Parameters ----
data/dataset_utils_vggt.py:232
↓ 1 callersFunctionupdate_vscode_launch_file
Update the .vscode/launch.json file with the new host and port.
modeling/pi3/utils/debug.py:7
↓ 1 callersFunctionupdate_vscode_launch_file
Update the .vscode/launch.json file with the new host and port.
eval_code/recons/models/pi3/utils/debug.py:7
↓ 1 callersFunctionvalue_to_decimal
(value, decimal_places)
data/dataset_utils_vggt.py:615
↓ 1 callersFunctionwarp_kpts
Warp kpts0 from I0 to I1 with depth, K and Rt Also check covisibility and depth consistency. Depth is consistent if relative error < 0.2 (hard
modeling/pi3/utils/geometry.py:147
↓ 1 callersFunctionwarp_kpts
Warp kpts0 from I0 to I1 with depth, K and Rt Also check covisibility and depth consistency. Depth is consistent if relative error < 0.2 (hard
eval_code/recons/models/pi3/utils/geometry.py:155
↓ 1 callersFunctionweighted_mean
(x: torch.Tensor, w: torch.Tensor = None, dim: Union[int, torch.Size] = None, keepdim: bool = False, eps: floa
modeling/pi3/models/pi3_loss.py:23
↓ 1 callersMethodwhole_inference
Inference with full image.
modeling/pi3/models/segformer/model.py:71
↓ 1 callersMethodwork
This method defines the job that the node should do for each input item. A item obtained from the input queue is passed as arguments
eval_code/recons/models/moge/utils/pipeline.py:154
↓ 1 callersFunctionwrap_dinov2_attention_with_sdpa
(module: nn.Module)
eval_code/recons/models/moge/model/utils.py:22
↓ 1 callersFunctionwrite_config
(cfg, output_dir, name="config.yaml")
modeling/pi3/models/dinov2/utils/config.py:32
↓ 1 callersFunctionwrite_config
(cfg, output_dir, name="config.yaml")
eval_code/recons/models/moge/model/dinov2/utils/config.py:32
↓ 1 callersFunctionwrite_config
(cfg, output_dir, name="config.yaml")
eval_code/recons/models/pi3/models/dinov2/utils/config.py:32
FunctionInstantNGP
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:866
FunctionRastContext
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:692
Method__call__
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text` and `kwargs` arguments
modeling/qwen2vl/processing_qwen2_vl.py:68
Method__call__
(self, b, h, w, device)
modeling/pi3/models/layers/pos_embed.py:168
Method__call__
(self, img, img_num=1)
data/transforms_vggt.py:39
Method__call__
(self, img, img_num=1)
data/transforms_vggt.py:59
Method__call__
(self, img, img_num=1)
data/transforms_vggt.py:87
Method__call__
(self, img, img_num=1)
data/transforms.py:126
Method__call__
(self, img, img_num=1)
data/transforms.py:169
Method__call__
(self, img, img_num=1)
data/transforms.py:201
Method__call__
(self, file_name)
data/video_utils.py:124
Method__call__
Submit data to the pipeline's input queue, and return the output data asynchronously. NOTE: The pipeline must be streamed (i.e., ever
eval_code/recons/models/moge/utils/pipeline.py:303
Method__call__
(self, func: Callable)
eval_code/recons/models/moge/utils/tools.py:164
Method__call__
(self, fn)
eval_code/recons/models/moge/utils/tools.py:268
Method__call__
(self, fn)
eval_code/recons/models/moge/utils3d/_helpers.py:21
Method__call__
Generates spatial positions for a batch of patches. Args: batch_size: Number of samples in the batch. height: Height
eval_code/recons/models/vggt/layers/rope.py:39
Method__call__
(self, b, h, w, device)
eval_code/recons/models/pi3/models/layers/pos_embed.py:168
Method__enter__
(self)
eval_code/recons/models/moge/utils/pipeline.py:105
Method__enter__
(self)
eval_code/recons/models/moge/utils/tools.py:34
Method__enter__
(self)
eval_code/recons/models/moge/utils/tools.py:276
Method__enter__
(self)
eval_code/recons/models/moge/utils/webfile.py:67
Method__enter__
(self)
eval_code/recons/models/moge/utils3d/_helpers.py:29
Method__exit__
(self, exc_type, exc_value, traceback)
eval_code/recons/models/moge/utils/pipeline.py:109
Method__exit__
(self, exc_type, exc_val, exc_tb)
eval_code/recons/models/moge/utils/tools.py:37
Method__exit__
(self, exc_type, exc_val, exc_tb)
eval_code/recons/models/moge/utils/tools.py:281
Method__exit__
(self, exc_type, exc_value, traceback)
eval_code/recons/models/moge/utils/webfile.py:70
Method__exit__
(self, exc_type, exc_val, exc_tb)
eval_code/recons/models/moge/utils3d/_helpers.py:34
Function__getattr__
(name: str)
eval_code/recons/models/moge/utils3d/__init__.py:15
Function__getattr__
(name)
eval_code/recons/models/moge/utils3d/torch/__init__.py:124
Function__getattr__
(name)
eval_code/recons/models/moge/utils3d/numpy/__init__.py:121
Method__getitem__
(self, it)
modeling/pi3/models/dinov2/utils/utils.py:83
Method__getitem__
Fetch item by index and a dynamic variable n_per_seq.
eval_code/recons/datasets/co3d_v2.py:208
Method__getitem__
Fetch item by index and a dynamic variable n_per_seq.
eval_code/recons/datasets/dtu.py:131
Method__getitem__
Fetch item by index and a dynamic variable n_per_seq.
eval_code/recons/datasets/sevenscenes.py:99
Method__getitem__
Fetch item by index and a dynamic variable n_per_seq.
eval_code/recons/datasets/eth3d.py:65
Method__getitem__
Fetch item by index and a dynamic variable n_per_seq.
eval_code/recons/datasets/re10k.py:89
Method__getitem__
Fetch item by index and a dynamic variable n_per_seq.
eval_code/recons/datasets/nrgbd.py:102
Method__getitem__
(self, it)
eval_code/recons/models/moge/model/dinov2/utils/utils.py:83
← previousnext →701–800 of 2,118, ranked by callers