MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

Method__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
eval_code/recons/models/vggt/layers/block.py:28
Method__init__
( self, dim: int, init_values: Union[float, Tensor] = 1e-5, inplace: bool = Fa
eval_code/recons/models/vggt/layers/layer_scale.py:16
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = True, proj_bias
eval_code/recons/models/vggt/layers/attention.py:22
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
eval_code/recons/models/vggt/layers/mlp.py:17
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
eval_code/recons/models/vggt/layers/swiglu_ffn.py:55
Method__init__
( self, img_size: Union[int, Tuple[int, int]] = 224, patch_size: Union[int, Tuple[int,
eval_code/recons/models/vggt/layers/patch_embed.py:37
Method__init__
Args: img_size (int, tuple): input image size patch_size (int, tuple): patch size in_chans (int): number
eval_code/recons/models/vggt/layers/vision_transformer.py:43
Method__init__
Init. Args: features (int): number of features
eval_code/recons/models/vggt/heads/dpt_head.py:360
Method__init__
Init. Args: features (int): number of features
eval_code/recons/models/vggt/heads/dpt_head.py:405
Method__init__
( self, dim_in: int = 2048, trunk_depth: int = 4, pose_encoding_type: str = "a
eval_code/recons/models/vggt/heads/camera_head.py:26
Method__init__
Initialize the TrackHead module. Args: dim_in (int): Input dimension of tokens from the backbone. patch_size
eval_code/recons/models/vggt/heads/track_head.py:18
Method__init__
( self, space_depth=6, time_depth=6, input_dim=320, hidden_size=384,
eval_code/recons/models/vggt/heads/track_modules/blocks.py:24
Method__init__
( self, stride=1, corr_levels=5, corr_radius=4, latent_dim=128,
eval_code/recons/models/vggt/heads/track_modules/base_track_predictor.py:18
Method__init__
(self, in_planes, planes, norm_fn="group", stride=1, kernel_size=3)
eval_code/recons/models/vggt/heads/track_modules/modules.py:44
Method__init__
Self attention block
eval_code/recons/models/vggt/heads/track_modules/modules.py:148
Method__init__
Cross attention block
eval_code/recons/models/vggt/heads/track_modules/modules.py:188
Method__init__
( self, img_size=518, patch_size=14, embed_dim=1024, depth=24,
eval_code/recons/models/vggt/models/aggregator.py:50
Method__init__
(self, img_size=518, patch_size=14, embed_dim=1024)
eval_code/recons/models/vggt/models/vggt.py:20
Method__init__
( self, pos_type='rope100', decoder_size='large', )
eval_code/recons/models/pi3/models/pi3.py:17
Method__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
eval_code/recons/models/pi3/models/layers/block.py:260
Method__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
eval_code/recons/models/pi3/models/layers/block.py:339
Method__init__
( self, in_dim, out_dim, dec_embed_dim=512, depth=5, dec_num_h
eval_code/recons/models/pi3/models/layers/transformer_head.py:10
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, proj_bia
eval_code/recons/models/pi3/models/layers/attention.py:120
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, proj_bia
eval_code/recons/models/pi3/models/layers/attention.py:239
Method__init__
(self, freq=100.0, F0=1.0)
eval_code/recons/models/pi3/models/layers/pos_embed.py:114
Method__init__
(self)
eval_code/recons/models/pi3/models/layers/pos_embed.py:165
Method__init__
(self, in_channels, out_channels)
eval_code/recons/models/pi3/models/layers/camera_head.py:11
Method__init__
(self, base_value, final_value, total_iters, warmup_iters=0, start_warmup_value=0, freeze_iters=0)
eval_code/recons/models/pi3/models/dinov2/utils/utils.py:68
Method__init__
(self, multiple)
eval_code/recons/models/pi3/models/dinov2/hub/utils.py:24
Method__init__
(self, drop_prob=None)
eval_code/recons/models/pi3/models/dinov2/layers/drop_path.py:29
Method__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
eval_code/recons/models/pi3/models/dinov2/layers/block.py:43
Method__init__
( self, in_dim, out_dim, use_bn=False, nlayers=3, hidden_dim=2
eval_code/recons/models/pi3/models/dinov2/layers/dino_head.py:13
Method__init__
( self, dim: int, init_values: Union[float, Tensor] = 1e-5, inplace: bool = Fa
eval_code/recons/models/pi3/models/dinov2/layers/layer_scale.py:16
Method__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, proj_bia
eval_code/recons/models/pi3/models/dinov2/layers/attention.py:37
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
eval_code/recons/models/pi3/models/dinov2/layers/mlp.py:17
Method__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
eval_code/recons/models/pi3/models/dinov2/layers/swiglu_ffn.py:55
Method__init__
( self, img_size: Union[int, Tuple[int, int]] = 224, patch_size: Union[int, Tuple[int,
eval_code/recons/models/pi3/models/dinov2/layers/patch_embed.py:37
Method__init__
Args: img_size (int, tuple): input image size patch_size (int, tuple): patch size in_chans (int): number
eval_code/recons/models/pi3/models/dinov2/models/vision_transformer.py:46
Method__init__
( self, sharding_strategy, backward_prefetch, cpu_offload, num_repl
train/fsdp_utils.py:69
Method__iter__
(self)
data/recon_dataset.py:612
Method__iter__
(self)
data/dataset_base.py:308
Method__iter__
(self)
data/distributed_iterable_dataset.py:60
Method__iter__
(self)
data/vlm_dataset.py:92
Method__iter__
(self)
data/dataset_base_periter.py:308
Method__iter__
(self)
data/interleave_datasets/interleave_dataset.py:165
Method__iter__
(self)
eval_code/recons/models/moge/utils/pipeline.py:294
Method__len__
(self)
modeling/pi3/utils/cropping.py:34
Method__len__
(self)
eval_code/recons/datasets/co3d_v2.py:198
Method__len__
(self)
eval_code/recons/datasets/dtu.py:121
Method__len__
(self)
eval_code/recons/datasets/sevenscenes.py:89
Method__len__
(self)
eval_code/recons/datasets/eth3d.py:55
Method__len__
(self)
eval_code/recons/datasets/re10k.py:79
Method__len__
(self)
eval_code/recons/datasets/nrgbd.py:92
Method__len__
(self)
eval_code/recons/datasets/preprocess/download_re10k.py:37
Method_add_image
(self, data, image, need_loss, need_vae, need_vit, enable_cfg=True)
data/interleave_datasets/interleave_dataset.py:33
Method_add_text
(self, data, text, need_loss, enable_cfg=True)
data/interleave_datasets/interleave_dataset.py:18
Method_add_video
(self, data, frames, frame_indexes, need_loss, need_vae, enable_cfg=True)
data/interleave_datasets/interleave_dataset.py:85
Method_add_video
(self, data, frames, frame_indexes, need_loss, need_vae, enable_cfg=True)
data/interleave_datasets/recon_then_und_dataset.py:317
Method_basic_init
(module)
eval_code/recons/models/vggt/heads/track_modules/blocks.py:91
Method_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
modeling/qwen2/tokenization_qwen2.py:267
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
modeling/qwen2/tokenization_qwen2.py:262
Method_expand_dict_for_generation
(dict_to_expand)
modeling/qwen2vl/modeling_qwen2_vl.py:1988
Method_expand_dict_for_generation_visual
(dict_to_expand)
modeling/qwen2vl/modeling_qwen2_vl.py:1940
Method_expand_inputs_for_generation
( self, expand_size: int = 1, is_encoder_decoder: bool = False, input_ids: Opt
modeling/qwen2vl/modeling_qwen2_vl.py:1923
Function_fn
(input)
eval_code/recons/models/moge/utils/tools.py:242
Method_in_thread_fn
(self, node: Node)
eval_code/recons/models/moge/utils/pipeline.py:364
Method_init_data
(self)
data/interleave_datasets/interleave_dataset.py:9
Method_init_weights
(self, module)
modeling/qwen2/modeling_qwen2.py:565
Method_init_weights
(self, module)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:352
Method_init_weights
(self, module)
modeling/qwen2vl/modeling_qwen2_vl.py:975
Method_init_weights
Initialize the weights
modeling/dinov3/dinov3_model.py:458
Method_init_weights
Initialize the weights
modeling/dinov3/modeling_dinov3_vit.py:449
Method_init_weights
Initialize the weights
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:518
Method_init_weights
Initialize the weights
modeling/dinov2_with_registers/modular_dinov2_with_registers.py:281
Method_init_weights
(self, m)
modeling/pi3/models/segformer/backbone.py:35
Method_init_weights
(self, m)
modeling/pi3/models/segformer/backbone.py:83
Method_init_weights
(self, m)
modeling/pi3/models/segformer/backbone.py:140
Method_init_weights
(self, m)
modeling/pi3/models/segformer/backbone.py:180
Method_init_weights
(self, m)
modeling/pi3/models/segformer/backbone.py:264
Method_init_weights
(self, m)
modeling/pi3/models/dinov2/layers/dino_head.py:30
Method_init_weights
(self, m)
eval_code/recons/models/moge/model/dinov2/layers/dino_head.py:30
Method_init_weights
(self, m)
eval_code/recons/models/pi3/models/dinov2/layers/dino_head.py:30
Method_loop_fn
(self, input: Queue, output: Queue, terminate_flag: Event)
eval_code/recons/models/moge/utils/pipeline.py:122
Method_loop_fn
(self, input: Queue, output: Queue, terminate_flag: Event)
eval_code/recons/models/moge/utils/pipeline.py:162
Method_loop_fn
(self, input: Queue, output: Queue, terminate_flag: Event)
eval_code/recons/models/moge/utils/pipeline.py:191
Method_loop_fn
(self, input: Queue, output: Queue, terminate_flag: Event)
eval_code/recons/models/moge/utils/pipeline.py:452
Method_loop_fn
(self, input: Queue, output: Queue, terminate_flag: Event)
eval_code/recons/models/moge/utils/pipeline.py:487
Method_out_thread_fn
(self)
eval_code/recons/models/moge/utils/pipeline.py:377
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:567
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
modeling/g2vlm/dinov2_model.py:317
Method_repeat_interleave_samples
(x, lengths, repeat_times)
modeling/qwen2vl/modeling_qwen2_vl.py:1945
Method_thread_fn
(self)
eval_code/recons/models/moge/utils/pipeline.py:224
Method_tokenize
Tokenize a string.
modeling/qwen2/tokenization_qwen2.py:251
Functionabsolute_error_loss
(params, predicted_depth, ground_truth_depth)
eval_code/recons/utils/depth.py:114
Functionalign_affine_lstsq
Solve `min sum_i w_i * (a * x_i + b - y_i ) ^ 2`, where `a` and `b` are scalars, with respect to `a` and `b` using least squares. ### Parame
modeling/pi3/utils/alignment.py:399
Functionalign_affine_lstsq
Solve `min sum_i w_i * (a * x_i + b - y_i ) ^ 2`, where `a` and `b` are scalars, with respect to `a` and `b` using least squares. ### Parame
eval_code/recons/models/moge/utils/alignment.py:399
Functionalign_affine_lstsq_z_shift
Solve `min sum_i w_i * ||a * x_i + b - y_i||^2`, where x_i and y_i are 3D points, `a` is a scalar (isotropic scaling), and `b` is a translati
modeling/pi3/utils/alignment.py:419
Functionalign_depth_affine
Align `depth_src` to `depth_tgt` with given constant weights. ### Parameters: - `depth_src: torch.Tensor` of shape (..., N) - `depth
modeling/pi3/utils/alignment.py:163
Functionalign_depth_affine
Align `depth_src` to `depth_tgt` with given constant weights. ### Parameters: - `depth_src: torch.Tensor` of shape (..., N) - `depth
eval_code/recons/models/moge/utils/alignment.py:163
Functionalign_depth_affine_irls
Align `depth_src` to `depth_tgt` with given constant weights using IRLS.
modeling/pi3/utils/alignment.py:216
← previousnext →1,001–1,100 of 2,118, ranked by callers