MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

Methodffn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:314
Methodffn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:398
Methodffn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:92
Methodffn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:222
Functionfind_best_alignment
找出将 gt_normal 调整为 pred_normal 的最佳操作。 参数: - gt_normal: Tensor of shape (N, 3),GT 法向量。 - pred_normal: Tensor of shape (N, 3),预测的法向
modeling/pi3/utils/basic.py:152
Functionfix_random_seeds
Fix random seeds.
modeling/pi3/models/dinov2/utils/utils.py:36
Functionfix_random_seeds
Fix random seeds.
eval_code/recons/models/moge/model/dinov2/utils/utils.py:36
Functionfix_random_seeds
Fix random seeds.
eval_code/recons/models/pi3/models/dinov2/utils/utils.py:36
Functionflatten_mesh_indices
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:230
Functionflatten_mesh_indices
Rearrange the indices of a mesh to a flattened version. Vertices will be no longer shared. ### Parameters: - `faces1`: [T, P] face indic
eval_code/recons/models/moge/utils3d/numpy/mesh.py:332
Methodflops
(self)
modeling/pi3/models/dinov2/layers/patch_embed.py:83
Methodflops
(self)
eval_code/recons/models/moge/model/dinov2/layers/patch_embed.py:83
Methodflops
(self)
eval_code/recons/models/vggt/layers/patch_embed.py:83
Methodflops
(self)
eval_code/recons/models/pi3/models/dinov2/layers/patch_embed.py:83
Functionfocal_to_fov
(focal: torch.Tensor)
eval_code/recons/models/moge/utils/geometry_torch.py:64
Functionfocal_to_fov
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:458
Methodforward
(self, hidden_states)
modeling/qwen2/modeling_qwen2.py:54
Methodforward
(self, x, position_ids)
modeling/qwen2/modeling_qwen2.py:130
Methodforward
(self, hidden_state)
modeling/qwen2/modeling_qwen2.py:202
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2/modeling_qwen2.py:256
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2/modeling_qwen2.py:342
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
modeling/qwen2/modeling_qwen2.py:465
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
modeling/qwen2/modeling_qwen2.py:688
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
modeling/qwen2/modeling_qwen2.py:846
Methodforward
(self, seqlen: int)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:89
Methodforward
(self, hidden_states: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:114
Methodforward
(self, x: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:134
Methodforward
(self, x)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:146
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl_vit.py:158
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl_vit.py:207
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl_vit.py:248
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl_vit.py:303
Methodforward
(self, hidden_states: torch.Tensor, grid_thw: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:425
Methodforward
(self, x, position_ids)
modeling/qwen2vl/modeling_qwen2_vl.py:142
Methodforward
(self, seqlen: int)
modeling/qwen2vl/modeling_qwen2_vl.py:255
Methodforward
(self, hidden_states: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl.py:280
Methodforward
(self, x: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl.py:300
Methodforward
(self, x)
modeling/qwen2vl/modeling_qwen2_vl.py:312
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl.py:324
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl.py:373
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl.py:414
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl.py:469
Methodforward
(self, hidden_states)
modeling/qwen2vl/modeling_qwen2_vl.py:496
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2vl/modeling_qwen2_vl.py:580
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2vl/modeling_qwen2_vl.py:664
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2vl/modeling_qwen2_vl.py:766
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
modeling/qwen2vl/modeling_qwen2_vl.py:875
Methodforward
(self, hidden_states: torch.Tensor, grid_thw: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl.py:1048
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
modeling/qwen2vl/modeling_qwen2_vl.py:1103
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
modeling/qwen2vl/modeling_qwen2_vl.py:1633
Methodforward
(self, pixel_values: torch.Tensor, bool_masked_pos: Optional[torch.Tensor] = None)
modeling/dinov3/dinov3_model.py:51
Methodforward
(self, pixel_values: torch.Tensor)
modeling/dinov3/dinov3_model.py:144
Methodforward
Input shape: Batch x Time x Channel
modeling/dinov3/dinov3_model.py:272
Methodforward
(self, hidden_state: torch.Tensor)
modeling/dinov3/dinov3_model.py:325
Methodforward
(self, hidden_states: torch.Tensor)
modeling/dinov3/dinov3_model.py:351
Methodforward
(self, x)
modeling/dinov3/dinov3_model.py:368
Methodforward
(self, x)
modeling/dinov3/dinov3_model.py:383
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: Optional[tuple[torc
modeling/dinov3/dinov3_model.py:407
Methodforward
r""" bool_masked_pos (`torch.BoolTensor` of shape `(batch_size, sequence_length)`): Boolean masked positions. Indicates which patc
modeling/dinov3/dinov3_model.py:506
Methodforward
(self, pixel_values: torch.Tensor, bool_masked_pos: Optional[torch.Tensor] = None)
modeling/dinov3/modeling_dinov3_vit.py:55
Methodforward
(self, pixel_values: torch.Tensor)
modeling/dinov3/modeling_dinov3_vit.py:148
Methodforward
Input shape: Batch x Time x Channel
modeling/dinov3/modeling_dinov3_vit.py:276
Methodforward
(self, hidden_state: torch.Tensor)
modeling/dinov3/modeling_dinov3_vit.py:324
Methodforward
(self, hidden_states: torch.Tensor)
modeling/dinov3/modeling_dinov3_vit.py:350
Methodforward
(self, x)
modeling/dinov3/modeling_dinov3_vit.py:367
Methodforward
(self, x)
modeling/dinov3/modeling_dinov3_vit.py:382
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/dinov3/modeling_dinov3_vit.py:406
Methodforward
r""" bool_masked_pos (`torch.BoolTensor` of shape `(batch_size, sequence_length)`): Boolean masked positions. Indicates which patc
modeling/dinov3/modeling_dinov3_vit.py:499
Methodforward
(self, pixel_values: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:64
Methodforward
(self, pixel_values: torch.Tensor, bool_masked_pos: Optional[torch.Tensor] = None)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:147
Methodforward
( self, hidden_states, head_mask: Optional[torch.Tensor] = None, output_attentions: bool = False )
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:230
Methodforward
(self, hidden_states: torch.Tensor, input_tensor: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:277
Methodforward
( self, hidden_states: torch.Tensor, head_mask: Optional[torch.Tensor] = None,
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:309
Methodforward
(self, hidden_state: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:328
Methodforward
(self, hidden_states: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:359
Methodforward
(self, hidden_state: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:378
Methodforward
(self, hidden_state: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:395
Methodforward
( self, hidden_states: torch.Tensor, head_mask: Optional[torch.Tensor] = None,
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:423
Methodforward
( self, hidden_states: torch.Tensor, head_mask: Optional[torch.Tensor] = None,
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:462
Methodforward
r""" bool_masked_pos (`torch.BoolTensor` of shape `(batch_size, sequence_length)`): Boolean masked positions. Indicates which patc
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:576
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the image classification/regression lo
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:653
Methodforward
r""" Examples: ```python >>> from transformers import AutoImageProcessor, AutoBackbone >>> import torch >>> f
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:749
Methodforward
(self, pixel_values: torch.Tensor, bool_masked_pos: Optional[torch.Tensor] = None)
modeling/dinov2_with_registers/modular_dinov2_with_registers.py:249
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the image classification/regression lo
modeling/dinov2_with_registers/modular_dinov2_with_registers.py:318
Methodforward
Examples: ```python >>> from transformers import AutoImageProcessor, AutoBackbone >>> import torch >>> from
modeling/dinov2_with_registers/modular_dinov2_with_registers.py:408
Methodforward
(self, t)
modeling/g2vlm/modeling_utils.py:107
Methodforward
(self, hidden_states: torch.Tensor)
modeling/g2vlm/modeling_utils.py:120
Methodforward
(self, position_ids)
modeling/g2vlm/modeling_utils.py:143
Methodforward
(self, position_ids)
modeling/g2vlm/modeling_utils.py:162
Methodforward
Args: sequence_length: length of sequence. packed_text_ids: 1-D int tensor, packed text token ids. packed
modeling/g2vlm/g2vlm.py:248
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/g2vlm/dinov2_model.py:46
Methodforward
(self, hidden_states: torch.Tensor, input_tensor: torch.Tensor)
modeling/g2vlm/dinov2_model.py:98
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/g2vlm/dinov2_model.py:129
Methodforward
(self, hidden_state: torch.Tensor)
modeling/g2vlm/dinov2_model.py:149
Methodforward
(self, hidden_states: torch.Tensor)
modeling/g2vlm/dinov2_model.py:180
Methodforward
(self, hidden_state: torch.Tensor)
modeling/g2vlm/dinov2_model.py:198
Methodforward
(self, hidden_state: torch.Tensor)
modeling/g2vlm/dinov2_model.py:215
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/g2vlm/dinov2_model.py:242
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/g2vlm/dinov2_model.py:282
Methodforward
r""" bool_masked_pos (`torch.BoolTensor` of shape `(batch_size, sequence_length)`): Boolean masked positions. Indicates which patc
modeling/g2vlm/dinov2_model.py:325
← previousnext →1,401–1,500 of 2,118, ranked by callers