MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

Methodforward
(self, x: Tensor, xpos=None)
eval_code/recons/models/pi3/models/layers/block.py:310
Methodforward
(self, x: Tensor, y: Tensor, xpos=None, ypos=None)
eval_code/recons/models/pi3/models/layers/block.py:391
Methodforward
(self, hidden, xpos=None)
eval_code/recons/models/pi3/models/layers/transformer_head.py:48
Methodforward
(self, decout, img_shape)
eval_code/recons/models/pi3/models/layers/transformer_head.py:70
Methodforward
(self, x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/layers/attention.py:73
Methodforward
(self, x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/layers/attention.py:95
Methodforward
Args: query: Tensor of shape (B, N, C), input query key: Tensor of shape (B, M, C), input key value: Tens
eval_code/recons/models/pi3/models/layers/attention.py:151
Methodforward
Args: query: Tensor of shape (B, N, C), input query key: Tensor of shape (B, M, C), input key value: Tens
eval_code/recons/models/pi3/models/layers/attention.py:195
Methodforward
(self, x: Tensor, attn_bias=None, xpos=None)
eval_code/recons/models/pi3/models/layers/attention.py:266
Methodforward
(self, x: Tensor, attn_bias=None, xpos=None)
eval_code/recons/models/pi3/models/layers/attention.py:289
Methodforward
(self, x: Tensor, attn_bias=None, xpos=None)
eval_code/recons/models/pi3/models/layers/attention.py:324
Methodforward
input: * tokens: batch_size x nheads x ntokens x dim * positions: batch_size x ntokens x 2 (y and x posit
eval_code/recons/models/pi3/models/layers/pos_embed.py:142
Methodforward
(self, res)
eval_code/recons/models/pi3/models/layers/camera_head.py:25
Methodforward
(self, feat, patch_h, patch_w)
eval_code/recons/models/pi3/models/layers/camera_head.py:48
Methodforward
(self, x)
eval_code/recons/models/pi3/models/dinov2/hub/utils.py:36
Methodforward
(self, x)
eval_code/recons/models/pi3/models/dinov2/layers/drop_path.py:33
Methodforward
(self, x_or_x_list)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:251
Methodforward
(self, x)
eval_code/recons/models/pi3/models/dinov2/layers/dino_head.py:36
Methodforward
(self, x: Tensor)
eval_code/recons/models/pi3/models/dinov2/layers/layer_scale.py:26
Methodforward
(self, x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/dinov2/layers/attention.py:73
Methodforward
(self, x: Tensor)
eval_code/recons/models/pi3/models/dinov2/layers/mlp.py:34
Methodforward
(self, x: Tensor)
eval_code/recons/models/pi3/models/dinov2/layers/swiglu_ffn.py:30
Methodforward
(self, x: Tensor)
eval_code/recons/models/pi3/models/dinov2/layers/patch_embed.py:68
Methodforward
(self, x)
eval_code/recons/models/pi3/models/dinov2/models/vision_transformer.py:39
Methodforward
(self, *args, is_training=False, **kwargs)
eval_code/recons/models/pi3/models/dinov2/models/vision_transformer.py:332
Methodforward_train
Forward function for training. Args: inputs (list[Tensor]): List of multi-level img features. img_metas (list[dict]):
modeling/pi3/models/segformer/head.py:601
Functionfov_to_focal
(fov: torch.Tensor)
eval_code/recons/models/moge/utils/geometry_torch.py:68
Functionfov_to_focal
(fov: torch.Tensor)
eval_code/recons/models/moge/utils3d/torch/transforms.py:290
Functionfov_to_focal
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:452
Functionfov_to_focal
(fov: np.ndarray)
eval_code/recons/models/moge/utils3d/numpy/transforms.py:205
Functionfov_to_focal_numpy
(fov: np.ndarray)
eval_code/recons/models/moge/utils/geometry_numpy.py:49
Methodfreeze_patch_emb
(self)
modeling/pi3/models/segformer/backbone.py:301
Methodfrom_pretrained
Load a model from a checkpoint file. ### Parameters: - `pretrained_model_name_or_path`: path to the checkpoint file or repo
eval_code/recons/models/moge/model/v1.py:215
Methodfsdp_save_fsdp_ckpt
( ckpt_dir, train_steps, model, ema_model, optimizer, scaler,
train/fsdp_utils.py:136
Functionfull_and_noise_mask
(b, h, q_idx, kv_idx)
data/data_utils.py:14
Functionfuse_params_groups
(all_params_groups, keys=("lr_multiplier", "wd_multiplier", "is_last_layer"))
modeling/pi3/models/dinov2/utils/param_groups.py:92
Functionfuse_params_groups
(all_params_groups, keys=("lr_multiplier", "wd_multiplier", "is_last_layer"))
eval_code/recons/models/moge/model/dinov2/utils/param_groups.py:92
Functionfuse_params_groups
(all_params_groups, keys=("lr_multiplier", "wd_multiplier", "is_last_layer"))
eval_code/recons/models/pi3/models/dinov2/utils/param_groups.py:92
Functiongaussian_blur_2d
(input: torch.Tensor, kernel_size: int, sigma: float)
eval_code/recons/models/moge/utils/geometry_torch.py:55
Functiongeometric_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:32
Functiongeotrf
Apply a geometric transformation to a list of 3-D points. H: 3x3 or 4x4 projection matrix (typically a Homography) p: numpy/torch/tuple of c
modeling/pi3/utils/geometry.py:249
Functiongeotrf
Apply a geometric transformation to a list of 3-D points. H: 3x3 or 4x4 projection matrix (typically a Homography) p: numpy/torch/tuple of c
eval_code/recons/models/pi3/utils/geometry.py:257
Functionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [n_cls_token+grid_size*grid_size, embe
modeling/pi3/models/layers/pos_embed.py:22
Functionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [n_cls_token+grid_size*grid_size, embe
eval_code/recons/models/pi3/models/layers/pos_embed.py:22
Functionget_attn_score
(blk_class, x, frame_num, token_length, xpos=None)
modeling/pi3/models/layers/attention.py:383
Functionget_attn_score
(blk_class, x, frame_num, token_length, xpos=None)
eval_code/recons/models/pi3/models/layers/attention.py:349
Methodget_classifier
(self)
modeling/pi3/models/segformer/backbone.py:308
Methodget_data_ori
(self, index=None, sequence_name=None, ids=(0, 1), return_path = False)
eval_code/recons/datasets/co3d_v2.py:270
Methodget_data_paths
(self, *args, **kwargs)
data/distributed_iterable_dataset.py:18
Methodget_decoder
(self)
modeling/qwen2/modeling_qwen2.py:841
Methodget_decoder
(self)
modeling/qwen2vl/modeling_qwen2_vl.py:1479
Methodget_decoder
(self)
modeling/g2vlm/qwen2vl.py:1373
Methodget_device
(self)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:393
Methodget_device
(self)
modeling/qwen2vl/modeling_qwen2_vl.py:1016
Methodget_dtype
(self)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:390
Functionget_flattened_position_ids_extrapolate
(img_h, img_w, patch_size, max_num_patches_per_side)
data/data_utils.py:50
Functionget_flattened_position_ids_interpolate
(img_h, img_w, patch_size, max_num_patches_per_side)
data/data_utils.py:66
Functionget_gt_warp
(depth1, depth2, T_1to2, K1, K2, depth_interpolation_mode = 'bilinear', relative_depth_error_threshold = 0.05,
modeling/pi3/utils/geometry.py:115
Functionget_gt_warp
(depth1, depth2, T_1to2, K1, K2, depth_interpolation_mode = 'bilinear', relative_depth_error_threshold = 0.05,
eval_code/recons/models/pi3/utils/geometry.py:123
Functionget_image_rays
Args: extrinsics: (..., 4, 4) extrinsics matrices. intrinsics: (..., 3, 3) intrinsics matrices. width: width of the image
eval_code/recons/models/moge/utils3d/torch/nerf.py:49
Functionget_image_rays
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:812
Methodget_input_embeddings
(self)
modeling/qwen2/modeling_qwen2.py:681
Methodget_input_embeddings
(self)
modeling/qwen2/modeling_qwen2.py:826
Methodget_input_embeddings
(self)
modeling/qwen2vl/modeling_qwen2_vl.py:1097
Methodget_input_embeddings
(self)
modeling/qwen2vl/modeling_qwen2_vl.py:1464
Methodget_input_embeddings
(self)
modeling/dinov3/dinov3_model.py:503
Methodget_input_embeddings
(self)
modeling/dinov3/modeling_dinov3_vit.py:494
Methodget_input_embeddings
(self)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:564
Methodget_input_embeddings
(self)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:745
Methodget_input_embeddings
(self)
modeling/dinov2_with_registers/modular_dinov2_with_registers.py:405
Methodget_input_embeddings
(self)
modeling/g2vlm/dinov2_model.py:314
Methodget_input_embeddings
(self)
modeling/g2vlm/qwen2vl.py:1358
Methodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
modeling/pi3/models/dinov2/models/vision_transformer.py:306
Methodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
eval_code/recons/models/vggt/layers/vision_transformer.py:309
Methodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
eval_code/recons/models/pi3/models/dinov2/models/vision_transformer.py:306
Functionget_logger
(cfg, name=None)
modeling/pi3/utils/basic.py:71
Functionget_mipnerf_cones
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:818
Functionget_nearby_ids
TODO: add the function to sample the ids by pose similarity ranking. Sample a set of IDs from a sequence close to a given start index.
data/dataset_utils_vggt.py:315
Methodget_nearby_ids
TODO: add the function to sample the ids by pose similarity ranking. Sample a set of IDs from a sequence close to a given start inde
data/recon_dataset.py:307
Functionget_nearby_pose_ranking
Sample a set of IDs from a sequence based on pose similarity ranking. Args: ids (list): Initial list of IDs. The first element is us
data/dataset_utils_vggt.py:385
Methodget_nearby_pose_ranking
Sample a set of IDs from a sequence based on pose similarity ranking. Args: ids (list): Initial list of IDs. The first e
data/recon_dataset.py:423
Methodget_output_embeddings
(self)
modeling/qwen2/modeling_qwen2.py:832
Methodget_output_embeddings
(self)
modeling/qwen2vl/modeling_qwen2_vl.py:1470
Methodget_output_embeddings
(self)
modeling/g2vlm/qwen2vl.py:1364
Functionget_panorama_cameras
()
eval_code/recons/models/moge/utils/panorama.py:20
Functionget_params_groups_with_decay
(model, lr_decay_rate=1.0, patch_embed_lr_mult=1.0)
modeling/pi3/models/dinov2/utils/param_groups.py:51
Functionget_params_groups_with_decay
(model, lr_decay_rate=1.0, patch_embed_lr_mult=1.0)
eval_code/recons/models/moge/model/dinov2/utils/param_groups.py:51
Functionget_params_groups_with_decay
(model, lr_decay_rate=1.0, patch_embed_lr_mult=1.0)
eval_code/recons/models/pi3/models/dinov2/utils/param_groups.py:51
Functionget_pca_map
feature_map: (1, h, w, C) is the feature map of a single image.
modeling/pi3/utils/basic.py:225
Functionget_pose_rank_ids
(total_ids, extrinsics, expand_ratio=None, upper_bound=None)
data/dataset_utils_vggt.py:270
Methodget_pose_rank_ids
(self, total_ids, extrinsics, expand_ratio=None, upper_bound=None)
data/recon_dataset.py:377
Functionget_rays
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:806
Methodget_rope_index
Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation: Each embedding se
modeling/g2vlm/qwen2vl.py:1044
Methodget_rope_index
Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation: Each embedding se
modeling/g2vlm/qwen2vl.py:1382
Methodget_seq_framenum
(self, index: Optional[int] = None, sequence_name: Optional[str] = None)
eval_code/recons/datasets/co3d_v2.py:201
Methodget_seq_framenum
(self, index: Optional[int] = None, sequence_name: Optional[str] = None)
eval_code/recons/datasets/sevenscenes.py:92
Methodget_seq_framenum
(self, index: Optional[int] = None, sequence_name: Optional[str] = None)
eval_code/recons/datasets/eth3d.py:58
Methodget_seq_framenum
(self, index: Optional[int] = None, sequence_name: Optional[str] = None)
eval_code/recons/datasets/re10k.py:82
Methodget_seq_framenum
(self, index: Optional[int] = None, sequence_name: Optional[str] = None)
eval_code/recons/datasets/nrgbd.py:95
Functionget_sha
()
modeling/pi3/models/dinov2/utils/utils.py:46
← previousnext →1,601–1,700 of 2,118, ranked by callers