MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

↓ 2 callersMethodtry_load_fsdp_ckpt
(resume_from, logger, model, ema_model=None, resume_from_ema=False)
train/fsdp_utils.py:222
↓ 2 callersMethodtry_load_train_state
(resume_from, optimizer, scaler, scheduler, fsdp_config)
train/fsdp_utils.py:479
↓ 2 callersMethodturn_on_efficient_conv_bn_eval
(self, efficient_conv_bn_eval=True)
modeling/pi3/models/segformer/head.py:369
↓ 2 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 ----
eval_code/recons/mv_recon/utils.py:7
↓ 1 callersMethodRun
(self, tmp_dir)
eval_code/recons/datasets/preprocess/download_re10k.py:160
↓ 1 callersMethodShow
(self)
eval_code/recons/datasets/preprocess/download_re10k.py:195
↓ 1 callersMethod__build_patch_embed__
Build the patch embed layer. If 'conv', we use a simple PatchEmbed conv layer. Otherwise, we use a vision transformer.
eval_code/recons/models/vggt/models/aggregator.py:146
↓ 1 callersMethod__enter__
(self)
eval_code/recons/models/moge/utils/tools.py:179
↓ 1 callersMethod__exit__
(self, exc_type, exc_val, exc_tb)
eval_code/recons/models/moge/utils/tools.py:198
↓ 1 callersMethod__init__
( self, vocab_size=152064, hidden_size=8192, intermediate_size=29568,
modeling/qwen2vl/configuration_qwen2_vl.py:182
↓ 1 callersMethod__init__
(self, language_model, vit_model, dino_model, config: G2VLMConfig)
modeling/g2vlm/g2vlm.py:119
↓ 1 callersMethod__init__
(self, in_channels, out_channels)
modeling/pi3/models/layers/camera_head.py:11
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
modeling/pi3/models/dinov2/layers/swiglu_ffn.py:15
↓ 1 callersMethod__init__
( self, max_image_size, min_image_size, image_stride, max_pixels=1
data/transforms.py:181
↓ 1 callersMethod__init__
( self, grouped_datasets, text_cond_dropout_prob=0.1, vit_cond_dropout_prob=
data/dataset_base.py:31
↓ 1 callersMethod__init__
( self, grouped_datasets, text_cond_dropout_prob=0.1, vit_cond_dropout_prob=
data/dataset_base_periter.py:31
↓ 1 callersMethod__init__
Open the ZIP file with mode read 'r', write 'w', exclusive create 'x', or append 'a'.
eval_code/recons/models/moge/utils/webzipfile.py:24
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
eval_code/recons/models/moge/model/dinov2/layers/swiglu_ffn.py:15
↓ 1 callersMethod__init__
Initializes the position generator with an empty cache.
eval_code/recons/models/vggt/layers/rope.py:35
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
eval_code/recons/models/vggt/layers/swiglu_ffn.py:15
↓ 1 callersMethod__init__
Build a pyramid of feature maps from the input. fmaps: Tensor (B, S, C, H, W) num_levels: number of pyramid levels (each dow
eval_code/recons/models/vggt/heads/track_modules/blocks.py:148
↓ 1 callersMethod__init__
(self, patch_size, dec_embed_dim, output_dim=3,)
eval_code/recons/models/pi3/models/layers/transformer_head.py:64
↓ 1 callersMethod__init__
(self, dim=512)
eval_code/recons/models/pi3/models/layers/camera_head.py:33
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
eval_code/recons/models/pi3/models/dinov2/layers/swiglu_ffn.py:15
↓ 1 callersMethod_add_text
(self, data, text, need_loss, enable_cfg=True)
data/interleave_datasets/recon_then_und_dataset.py:163
↓ 1 callersFunction_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
modeling/g2vlm/rotation_utils.py:175
↓ 1 callersFunction_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
data/dataset_utils_vggt.py:188
↓ 1 callersFunction_build_mlp
(nlayers, in_dim, bottleneck_dim, hidden_dim=None, use_bn=False, bias=True)
modeling/pi3/models/dinov2/layers/dino_head.py:44
↓ 1 callersFunction_build_mlp
(nlayers, in_dim, bottleneck_dim, hidden_dim=None, use_bn=False, bias=True)
eval_code/recons/models/moge/model/dinov2/layers/dino_head.py:44
↓ 1 callersFunction_build_mlp
(nlayers, in_dim, bottleneck_dim, hidden_dim=None, use_bn=False, bias=True)
eval_code/recons/models/pi3/models/dinov2/layers/dino_head.py:44
↓ 1 callersMethod_compute_frequency_components
Computes frequency components for rotary embeddings. Args: dim: Feature dimension (must be even). seq_len: Maximum se
eval_code/recons/models/vggt/layers/rope.py:86
↓ 1 callersFunction_compute_residual
(a: torch.Tensor, xyw: torch.Tensor, trunc: float)
modeling/pi3/utils/alignment.py:48
↓ 1 callersFunction_compute_residual
(a: torch.Tensor, xyw: torch.Tensor, trunc: float)
eval_code/recons/models/moge/utils/alignment.py:48
↓ 1 callersFunction_copysign
Return a tensor where each element has the absolute value taken from the, corresponding element of a, with sign taken from the corresponding
modeling/g2vlm/rotation_utils.py:76
↓ 1 callersMethod_crop_resize_if_necessary
This function: - first downsizes the image with LANCZOS inteprolation, which is better than bilinear interpolation in
data/recon_dataset.py:254
↓ 1 callersMethod_crop_resize_if_necessary
This function: - first downsizes the image with LANCZOS inteprolation, which is better than bilinear interpolation in
data/interleave_datasets/recon_then_und_dataset.py:66
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
modeling/pi3/models/segformer/model.py:53
↓ 1 callersMethod_dynamic_frequency_update
dynamic RoPE layers should recompute `inv_freq` in the following situations: 1 - growing beyond the cached sequence length (allow sca
modeling/qwen2/modeling_qwen2.py:111
↓ 1 callersMethod_dynamic_frequency_update
dynamic RoPE layers should recompute `inv_freq` in the following situations: 1 - growing beyond the cached sequence length (allow sca
modeling/qwen2vl/modeling_qwen2_vl.py:123
↓ 1 callersMethod_fetch_data
(self, offset: int, n: int)
eval_code/recons/models/moge/utils/webfile.py:23
↓ 1 callersMethod_fetch_size
(self)
eval_code/recons/models/moge/utils/webfile.py:15
↓ 1 callersMethod_get_image_nums_and_video_nums
Get the number of images and videos for each sample to calculate the separation length of the sample tensor. These parameters are not
modeling/qwen2vl/modeling_qwen2_vl.py:1894
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
modeling/pi3/models/dinov2/models/vision_transformer.py:292
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
eval_code/recons/models/moge/model/dinov2/models/vision_transformer.py:284
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
eval_code/recons/models/vggt/layers/vision_transformer.py:295
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
eval_code/recons/models/pi3/models/dinov2/models/vision_transformer.py:292
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
modeling/pi3/models/dinov2/models/vision_transformer.py:280
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
eval_code/recons/models/moge/model/dinov2/models/vision_transformer.py:272
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
eval_code/recons/models/vggt/layers/vision_transformer.py:283
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
eval_code/recons/models/pi3/models/dinov2/models/vision_transformer.py:280
↓ 1 callersMethod_get_pad
(self, size)
modeling/pi3/models/dinov2/hub/utils.py:28
↓ 1 callersMethod_get_pad
(self, size)
eval_code/recons/models/moge/model/dinov2/hub/utils.py:28
↓ 1 callersMethod_get_pad
(self, size)
eval_code/recons/models/pi3/models/dinov2/hub/utils.py:28
↓ 1 callersFunction_guess_cluster_type
()
modeling/pi3/models/dinov2/utils/cluster.py:18
↓ 1 callersFunction_guess_cluster_type
()
eval_code/recons/models/moge/model/dinov2/utils/cluster.py:18
↓ 1 callersFunction_guess_cluster_type
()
eval_code/recons/models/pi3/models/dinov2/utils/cluster.py:18
↓ 1 callersMethod_init_data
(self)
data/interleave_datasets/recon_then_und_dataset.py:139
↓ 1 callersMethod_init_inputs
Check and initialize input transforms. The in_channels, in_index and input_transform must match. Specifically, when input_transform i
modeling/pi3/models/segformer/head.py:525
↓ 1 callersMethod_init_weights
(self)
modeling/g2vlm/modeling_utils.py:138
↓ 1 callersMethod_init_weights
(self)
modeling/g2vlm/modeling_utils.py:157
↓ 1 callersMethod_init_weights
(self)
modeling/g2vlm/g2vlm.py:241
↓ 1 callersMethod_make_output_block
(self, dim_in: int, dim_out: int, dim_times_res_block_hidden: int, last_res_blocks: int, last_conv_channels: i
eval_code/recons/models/moge/model/v1.py:103
↓ 1 callersFunction_make_scratch
(in_shape: List[int], out_shape: int, groups: int = 1, expand: bool = False)
eval_code/recons/models/vggt/heads/dpt_head.py:326
↓ 1 callersMethod_make_upsampler
(self, in_channels: int, out_channels: int)
eval_code/recons/models/moge/model/v1.py:95
↓ 1 callersFunction_ntuple
(n)
eval_code/recons/models/vggt/heads/track_modules/modules.py:19
↓ 1 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
modeling/pi3/models/segformer/segmentor.py:167
↓ 1 callersMethod_process_frame_attention
Process frame attention blocks. We keep tokens in shape (B*S, P, C).
eval_code/recons/models/vggt/models/aggregator.py:266
↓ 1 callersMethod_process_global_attention
Process global attention blocks. We keep tokens in shape (B, S*P, C).
eval_code/recons/models/vggt/models/aggregator.py:287
↓ 1 callersMethod_remap_points
(self, points: torch.Tensor)
eval_code/recons/models/moge/model/v2.py:112
↓ 1 callersMethod_remap_points
(self, points: torch.Tensor)
eval_code/recons/models/moge/model/v1.py:253
↓ 1 callersMethod_rotate_features
Performs feature rotation by splitting and recombining feature dimensions. Args: x: Input tensor to rotate. Returns:
eval_code/recons/models/vggt/layers/rope.py:120
↓ 1 callersFunction_solve_tridiagonal
(a: np.ndarray, b: np.ndarray, c: np.ndarray, d: np.ndarray)
eval_code/recons/models/moge/utils3d/numpy/spline.py:39
↓ 1 callersFunction_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0.
modeling/g2vlm/rotation_utils.py:94
↓ 1 callersFunction_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0.
eval_code/recons/models/vggt/utils/rotation.py:112
↓ 1 callersMethod_transform_inputs
Transform inputs for decoder. Args: inputs (list[Tensor]): List of multi-level img features. Returns: Tensor
modeling/pi3/models/segformer/head.py:568
↓ 1 callersMethod_update_causal_mask
( self, attention_mask: torch.Tensor, input_tensor: torch.Tensor, cache_positi
modeling/qwen2vl/modeling_qwen2_vl.py:1220
↓ 1 callersFunctionabsolute_value_scaling
(predicted_depth, ground_truth_depth, s=1, t=0)
eval_code/recons/utils/depth.py:123
↓ 1 callersFunctionabsolute_value_scaling2
( predicted_depth, ground_truth_depth, s_init=1.0, t_init=0.0, lr=1e-4, max_iters=1000
eval_code/recons/utils/depth.py:139
↓ 1 callersFunctionactivate_head
Process network output to extract 3D points and confidence values. Args: out: Network output tensor (B, C, H, W) activation:
eval_code/recons/models/vggt/heads/head_act.py:61
↓ 1 callersFunctionactivate_pose
Activate pose parameters with specified activation functions. Args: pred_pose_enc: Tensor containing encoded pose parameters [transl
eval_code/recons/models/vggt/heads/head_act.py:12
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
modeling/pi3/models/layers/block.py:146
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
modeling/pi3/models/dinov2/layers/block.py:148
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
eval_code/recons/models/moge/model/dinov2/layers/block.py:148
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
eval_code/recons/models/vggt/layers/block.py:148
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
eval_code/recons/models/pi3/models/layers/block.py:146
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:148
↓ 1 callersFunctionalign_points_scale
### Parameters: - `points_src: torch.Tensor` of shape (..., N, 3) - `points_tgt: torch.Tensor` of shape (..., N, 3) - `weight: torch.
modeling/pi3/utils/alignment.py:233
↓ 1 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors, but only to the patch tokens, ignoring the prefix tokens (cls token and register t
modeling/dinov3/dinov3_model.py:216
↓ 1 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors, but only to the patch tokens, ignoring the prefix tokens (cls token and register t
modeling/dinov3/modeling_dinov3_vit.py:220
↓ 1 callersFunctionapply_scaling_rules_to_cfg
(cfg)
modeling/pi3/models/dinov2/utils/config.py:21
↓ 1 callersFunctionapply_scaling_rules_to_cfg
(cfg)
eval_code/recons/models/moge/model/dinov2/utils/config.py:21
↓ 1 callersFunctionapply_scaling_rules_to_cfg
(cfg)
eval_code/recons/models/pi3/models/dinov2/utils/config.py:21
↓ 1 callersFunctionapply_template_qwenvl2
(question_with_image_tokens,answer)
data/data_utils.py:386
↓ 1 callersFunctionapply_template_qwenvl2_reconThenUnd
(question_with_image_tokens,answer)
data/data_utils.py:328
↓ 1 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
eval_code/recons/models/pi3/utils/basic.py:105
↓ 1 callersFunctionassociate
Associate two dictionaries of (stamp, data). As the time stamps never match exactly, we aim to find the closest match for every input tuple.
eval_code/recons/datasets/preprocess/prepare_tum.py:30
↓ 1 callersMethodaug_test
Placeholder for augmentation test.
modeling/pi3/models/segformer/segmentor.py:55
↓ 1 callersFunctionaugment_patches_center_coordinates
( coords: torch.Tensor, shift: Optional[float] = None, jitter: Optional[float] = None, rescale
modeling/dinov3/dinov3_model.py:100
↓ 1 callersFunctionaugment_patches_center_coordinates
( coords: torch.Tensor, shift: Optional[float] = None, jitter: Optional[float] = None, rescale
modeling/dinov3/modeling_dinov3_vit.py:104
↓ 1 callersFunctionaxis_angle_to_matrix
Convert axis-angle representation (rotation vector) to rotation matrix, whose direction is the axis of rotation and length is the angle of rotation
eval_code/recons/models/moge/utils3d/torch/transforms.py:905
← previousnext →301–400 of 2,118, ranked by callers