MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

↓ 4 callersFunctionweighted_mean
(x: torch.Tensor, w: torch.Tensor = None, dim: Union[int, torch.Size] = None, keepdim: bool = False, eps: floa
eval_code/recons/models/moge/utils/geometry_torch.py:16
↓ 4 callersFunctionwrap_module_with_gradient_checkpointing
(module: nn.Module)
eval_code/recons/models/moge/model/utils.py:7
↓ 3 callersMethod__init__
(self, in_dim: int, out_dim: int, hidden_act: str)
modeling/g2vlm/modeling_utils.py:114
↓ 3 callersMethod__init__
( self, pretrained_model_name_or_path: Optional[str] = None, )
eval_code/recons/models/fastmodel.py:11
↓ 3 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
eval_code/recons/models/vggt/heads/track_modules/modules.py:114
↓ 3 callersMethod_apply_scale
(self, width, height, scale)
data/transforms.py:72
↓ 3 callersMethod_forward_impl
Implementation of the forward pass through the DPT head. This method processes a specific chunk of frames from the sequence.
eval_code/recons/models/vggt/heads/dpt_head.py:185
↓ 3 callersFunction_group
Group values into groups with identical values. Args: values (torch.Tensor): [N] values to group required_group_size (in
eval_code/recons/models/moge/utils3d/torch/mesh.py:32
↓ 3 callersFunction_pad_cumsum
(cumsum: torch.Tensor)
modeling/pi3/utils/alignment.py:44
↓ 3 callersFunction_pad_cumsum
(cumsum: torch.Tensor)
eval_code/recons/models/moge/utils/alignment.py:44
↓ 3 callersFunction_pad_inf
(x_: torch.Tensor)
modeling/pi3/utils/alignment.py:40
↓ 3 callersFunction_pad_inf
(x_: torch.Tensor)
eval_code/recons/models/moge/utils/alignment.py:40
↓ 3 callersFunction_run
(command)
modeling/pi3/models/dinov2/utils/utils.py:49
↓ 3 callersFunction_run
(command)
eval_code/recons/models/moge/model/dinov2/utils/utils.py:49
↓ 3 callersFunction_run
(command)
eval_code/recons/models/pi3/models/dinov2/utils/utils.py:49
↓ 3 callersFunctionapply_rotary_pos_emb_vision
( q: torch.Tensor, k: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor )
modeling/qwen2vl/modeling_qwen2_vl_vit.py:69
↓ 3 callersFunctionapply_rotary_pos_emb_vision
( q: torch.Tensor, k: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor )
modeling/qwen2vl/modeling_qwen2_vl.py:235
↓ 3 callersFunctionbase_pose_act
Apply basic activation function to pose parameters. Args: pose_enc: Tensor containing encoded pose parameters act_type: Acti
eval_code/recons/models/vggt/heads/head_act.py:38
↓ 3 callersFunctionbin_sample
Uniformly (or uniformly in inverse space) sample z values in `n_samples` bins in range [min_value, max_value]. Args: size: size of th
eval_code/recons/models/moge/utils3d/torch/nerf.py:177
↓ 3 callersMethodclose
(self)
eval_code/recons/models/moge/utils/webfile.py:64
↓ 3 callersMethoddecode
(self, hidden, N, H, W)
modeling/pi3/models/pi3.py:132
↓ 3 callersMethodforward
(self, x: Tensor, attn_bias=None)
modeling/pi3/models/layers/attention.py:56
↓ 3 callersMethodforward
(self, x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/layers/attention.py:56
↓ 3 callersMethodforward_cache_update_dino
( self, past_key_values: NaiveCache, packed_text_ids: torch.LongTensor, packed
modeling/g2vlm/g2vlm.py:1062
↓ 3 callersFunctionfreeze_all_params
(modules)
modeling/g2vlm/g2vlm.py:43
↓ 3 callersFunctionfreeze_all_params
(modules)
modeling/pi3/models/pi3_training.py:17
↓ 3 callersFunctionfsdp_wrapper
(original_model, fsdp_config, ignored_modules=[])
train/fsdp_utils.py:84
↓ 3 callersFunctionget_cluster_type
(cluster_type: Optional[ClusterType] = None)
modeling/pi3/models/dinov2/utils/cluster.py:31
↓ 3 callersFunctionget_cluster_type
(cluster_type: Optional[ClusterType] = None)
eval_code/recons/models/moge/model/dinov2/utils/cluster.py:31
↓ 3 callersFunctionget_cluster_type
(cluster_type: Optional[ClusterType] = None)
eval_code/recons/models/pi3/models/dinov2/utils/cluster.py:31
↓ 3 callersMethodget_data_paths_per_worker
(self)
data/distributed_iterable_dataset.py:42
↓ 3 callersFunctionget_rope_index_image_3D
Calculate 3D RoPE indices for a single image. Args: image_grid_thw: Temporal, height, width dimensions of the image grid
data/data_utils.py:142
↓ 3 callersMethodinit
This method is called the the thread is started, to initialize any resources that is only held in the thread.
eval_code/recons/models/moge/utils/pipeline.py:147
↓ 3 callersFunctioninverse_log_transform
Apply inverse log transform: sign(y) * (exp(|y|) - 1) Args: y: Input tensor Returns: Transformed tensor
eval_code/recons/models/vggt/heads/head_act.py:115
↓ 3 callersFunctionlist_depths_a_sequence
(dataset_cfg: DictConfig, seq: Optional[str] = None)
eval_code/recons/utils/files.py:25
↓ 3 callersFunctionmat_to_quat
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
eval_code/recons/models/vggt/utils/rotation.py:47
↓ 3 callersFunctionplot_trajectory
( pred_traj, gt_traj=None, title="", filename="", align=True, correct_scale=True, verbose=False )
eval_code/recons/relpose/evo_utils.py:400
↓ 3 callersFunctionpose_encoding_to_extri_intri
Convert a pose encoding back to camera extrinsics and intrinsics. This function performs the inverse operation of extri_intri_to_pose_encoding,
eval_code/recons/models/vggt/utils/pose_enc.py:65
↓ 3 callersMethodprepare_ROE
(self, pts, mask, target_size=4096)
modeling/pi3/models/pi3_loss.py:67
↓ 3 callersFunctionprocess
(data, seq_id, videoname, output_root)
eval_code/recons/datasets/preprocess/download_re10k.py:41
↓ 3 callersFunctionquaternion_raw_multiply
Multiply two quaternions. Usual torch rules for broadcasting apply. Args: a: Quaternions as tensor of shape (..., 4), real part
modeling/g2vlm/rotation_utils.py:398
↓ 3 callersMethodset_sequence_status
(self)
data/dataset_base.py:200
↓ 3 callersMethodtranspose_for_scores
(self, x: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:225
↓ 3 callersFunctionweighted_mean_numpy
(x: np.ndarray, w: np.ndarray = None, axis: Union[int, Tuple[int,...]] = None, keepdims: bool = False, eps: fl
eval_code/recons/models/moge/utils/geometry_numpy.py:14
↓ 2 callersMethod__init__
( self, hidden_size=768, num_hidden_layers=12, num_attention_heads=12,
modeling/dinov2_with_registers/modular_dinov2_with_registers.py:121
↓ 2 callersMethod__init__
( self, train_conf=False, )
modeling/pi3/models/pi3_loss.py:258
↓ 2 callersMethod__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
modeling/pi3/models/layers/block.py:40
↓ 2 callersMethod__init__
(self, patch_size, dec_embed_dim, output_dim=3,)
modeling/pi3/models/layers/transformer_head.py:64
↓ 2 callersMethod__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, proj_bia
modeling/pi3/models/layers/attention.py:37
↓ 2 callersMethod__init__
( self, num_features: int, dim_in: int, dim_out: List[int], dim_pro
eval_code/recons/models/moge/model/v1.py:62
↓ 2 callersMethod__init__
( self, dim_in: int, patch_size: int = 14, output_dim: int = 4, activa
eval_code/recons/models/vggt/heads/dpt_head.py:43
↓ 2 callersMethod__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
eval_code/recons/models/pi3/models/layers/block.py:40
↓ 2 callersMethod__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, proj_bia
eval_code/recons/models/pi3/models/layers/attention.py:37
↓ 2 callersMethod_add_image
(self, data, image, dino_meta, need_loss, need_dino, need_vit, enable_cfg=True, rng=None, view_info=None )
data/interleave_datasets/recon_then_und_dataset.py:178
↓ 2 callersFunction_angle_from_tan
Extract the first or third Euler angle from the two members of the matrix which are positive constant times its sine and cosine. Args:
modeling/g2vlm/rotation_utils.py:236
↓ 2 callersFunction_angle_from_tan
Extract the first or third Euler angle from the two members of the matrix which are positive constant times its sine and cosine. Args:
eval_code/recons/models/moge/utils3d/torch/transforms.py:834
↓ 2 callersMethod_apply_1d_rope
Applies 1D rotary position embeddings along one dimension. Args: tokens: Input token features. positions: Position in
eval_code/recons/models/vggt/layers/rope.py:133
↓ 2 callersMethod_apply_pos_embed
Apply positional embedding to tensor x.
eval_code/recons/models/vggt/heads/dpt_head.py:262
↓ 2 callersFunction_contains_tensor
(obj)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:145
↓ 2 callersMethod_dispatch
(self, func, *args, **kwargs)
modeling/pi3/utils/cropping.py:52
↓ 2 callersFunction_index_from_letter
(letter: str)
modeling/g2vlm/rotation_utils.py:269
↓ 2 callersFunction_make_dinov2_model_name
(arch_name: str, patch_size: int, num_register_tokens: int = 0)
modeling/pi3/models/dinov2/hub/utils.py:17
↓ 2 callersFunction_make_dinov2_model_name
(arch_name: str, patch_size: int, num_register_tokens: int = 0)
eval_code/recons/models/moge/model/dinov2/hub/utils.py:17
↓ 2 callersFunction_make_dinov2_model_name
(arch_name: str, patch_size: int, num_register_tokens: int = 0)
eval_code/recons/models/pi3/models/dinov2/hub/utils.py:17
↓ 2 callersMethod_make_divisible
Ensure the value is divisible by the stride.
data/transforms.py:68
↓ 2 callersMethod_prepare_4d_causal_attention_mask_with_cache_position
Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_l
modeling/qwen2vl/modeling_qwen2_vl.py:1305
↓ 2 callersMethod_preprocess
Preprocess an image or batch of images. Copy of the `preprocess` method from `CLIPImageProcessor`. Args: images (`ImageI
modeling/qwen2vl/image_processing_qwen2_vl.py:155
↓ 2 callersMethod_preprocess
Preprocess an image or batch of images. Copy of the `preprocess` method from `CLIPImageProcessor`. Args: images (`ImageI
modeling/qwen2vl/image_processing_qwen2_vl_fast.py:116
↓ 2 callersFunctionaccuracy
(gt_points, rec_points, gt_normals=None, rec_normals=None)
eval_code/recons/mv_recon/utils.py:52
↓ 2 callersMethodadd
(self, seqname, list_timestamps)
eval_code/recons/datasets/preprocess/download_re10k.py:33
↓ 2 callersMethodapply_rope1d
(self, tokens, pos1d, cos, sin)
modeling/pi3/models/layers/pos_embed.py:136
↓ 2 callersMethodapply_rope1d
(self, tokens, pos1d, cos, sin)
eval_code/recons/models/pi3/models/layers/pos_embed.py:136
↓ 2 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
modeling/qwen2/modeling_qwen2.py:164
↓ 2 callersFunctionarray_to_pil
Converts a NumPy array to a PIL image. Automatically: - Squeezes dimensions of size 1. - Moves the channel dimension (if it has s
modeling/pi3/utils/basic.py:124
↓ 2 callersMethodavailable
(self)
eval_code/recons/models/moge/utils/webfile.py:35
↓ 2 callersFunctionbilinear_sampler
r"""Sample a tensor using bilinear interpolation `bilinear_sampler(input, coords)` samples a tensor :attr:`input` at coordinates :attr:`coord
eval_code/recons/models/vggt/heads/track_modules/utils.py:127
↓ 2 callersFunctioncalculate_auc_np
Calculate the Area Under the Curve (AUC) for the given error arrays. :param r_error: numpy array representing R error values (Degree). :
eval_code/recons/relpose/metric.py:99
↓ 2 callersFunctionclosed_form_inverse
Computes the inverse of each 4x4 SE3 matrix in the batch. This function assumes PyTorch3D coordinate. Args: - se3 (Tensor): Nx4x4 t
modeling/g2vlm/metric.py:273
↓ 2 callersFunctioncollate_wrapper
()
data/dataset_base.py:790
↓ 2 callersFunctioncolorize_optimized
( x, cmap_name="jet", mask=None, value_range=None, append_cbar=False, cbar_in_image=False, cbar_precision=
eval_code/recons/videodepth/utils.py:100
↓ 2 callersFunctioncompletion
(gt_points, rec_points, gt_normals=None, rec_normals=None)
eval_code/recons/mv_recon/utils.py:68
↓ 2 callersFunctioncompute_face_normal
Compute face normals of a triangular mesh Args: vertices (torch.Tensor): [..., N, 3] 3-dimensional vertices faces (torch.Ten
eval_code/recons/models/moge/utils3d/torch/mesh.py:122
↓ 2 callersFunctioncompute_face_normal
Compute face normals 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:66
↓ 2 callersFunctioncompute_ranking
(extrinsics, lambda_t=1.0, normalize=True, batched=True)
data/frame_sampling_utils.py:108
↓ 2 callersFunctioncreate_sparse_mask
(document_lens, split_lens, attn_modes, device)
data/data_utils.py:10
↓ 2 callersFunctioncrop_resize_if_necessary
This function: - first downsizes the image with LANCZOS inteprolation, which is better than bilinear interpolation in
data/dataset_utils_vggt.py:106
↓ 2 callersFunctioncustom_interpolate
Custom interpolate to avoid INT_MAX issues in nn.functional.interpolate.
eval_code/recons/models/vggt/heads/dpt_head.py:472
↓ 2 callersFunctiondepth_evaluation
Evaluate the depth map using various metrics and return a depth error parity map, with an option for least squares alignment. Args:
eval_code/recons/utils/depth.py:193
↓ 2 callersFunctiondepth_to_world_coords_points
Convert a depth map to world coordinates. Args: depth_map (np.ndarray): Depth map of shape (H, W). intrinsic (np.ndarray): C
eval_code/recons/models/vggt/utils/geometry.py:44
↓ 2 callersFunctiondinov2_vitl14_reg
DINOv2 ViT-L/14 model with registers (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:128
↓ 2 callersMethoddraw_image
(self, image, data_item)
data/interleave_datasets/recon_then_und_dataset.py:58
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
modeling/pi3/models/dinov2/layers/block.py:116
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
eval_code/recons/models/moge/model/dinov2/layers/block.py:116
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, pos=No
eval_code/recons/models/vggt/layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
eval_code/recons/models/pi3/models/dinov2/layers/block.py:116
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
modeling/pi3/models/layers/block.py:185
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
modeling/pi3/models/dinov2/layers/block.py:187
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
eval_code/recons/models/moge/model/dinov2/layers/block.py:187
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
eval_code/recons/models/vggt/layers/block.py:187
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
eval_code/recons/models/pi3/models/layers/block.py:185
← previousnext →101–200 of 2,118, ranked by callers