Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InternRobotics/G2VLM
/ functions
Functions
2,118 in github.com/InternRobotics/G2VLM
⨍
Functions
2,118
◇
Types & classes
338
↳
Endpoints
3
Method
ffn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:314
Method
ffn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:398
Method
ffn_residual_func
(x: Tensor)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:92
Method
ffn_residual_func
(x: Tensor, attn_bias=None)
eval_code/recons/models/pi3/models/dinov2/layers/block.py:222
Function
find_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
Function
fix_random_seeds
Fix random seeds.
modeling/pi3/models/dinov2/utils/utils.py:36
Function
fix_random_seeds
Fix random seeds.
eval_code/recons/models/moge/model/dinov2/utils/utils.py:36
Function
fix_random_seeds
Fix random seeds.
eval_code/recons/models/pi3/models/dinov2/utils/utils.py:36
Function
flatten_mesh_indices
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:230
Function
flatten_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
Method
flops
(self)
modeling/pi3/models/dinov2/layers/patch_embed.py:83
Method
flops
(self)
eval_code/recons/models/moge/model/dinov2/layers/patch_embed.py:83
Method
flops
(self)
eval_code/recons/models/vggt/layers/patch_embed.py:83
Method
flops
(self)
eval_code/recons/models/pi3/models/dinov2/layers/patch_embed.py:83
Function
focal_to_fov
(focal: torch.Tensor)
eval_code/recons/models/moge/utils/geometry_torch.py:64
Function
focal_to_fov
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:458
Method
forward
(self, hidden_states)
modeling/qwen2/modeling_qwen2.py:54
Method
forward
(self, x, position_ids)
modeling/qwen2/modeling_qwen2.py:130
Method
forward
(self, hidden_state)
modeling/qwen2/modeling_qwen2.py:202
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2/modeling_qwen2.py:256
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2/modeling_qwen2.py:342
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
modeling/qwen2/modeling_qwen2.py:465
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
modeling/qwen2/modeling_qwen2.py:688
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
modeling/qwen2/modeling_qwen2.py:846
Method
forward
(self, seqlen: int)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:89
Method
forward
(self, hidden_states: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:114
Method
forward
(self, x: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:134
Method
forward
(self, x)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:146
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl_vit.py:158
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl_vit.py:207
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl_vit.py:248
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl_vit.py:303
Method
forward
(self, hidden_states: torch.Tensor, grid_thw: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:425
Method
forward
(self, x, position_ids)
modeling/qwen2vl/modeling_qwen2_vl.py:142
Method
forward
(self, seqlen: int)
modeling/qwen2vl/modeling_qwen2_vl.py:255
Method
forward
(self, hidden_states: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl.py:280
Method
forward
(self, x: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl.py:300
Method
forward
(self, x)
modeling/qwen2vl/modeling_qwen2_vl.py:312
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl.py:324
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl.py:373
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl.py:414
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, rotary_pos_emb:
modeling/qwen2vl/modeling_qwen2_vl.py:469
Method
forward
(self, hidden_states)
modeling/qwen2vl/modeling_qwen2_vl.py:496
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2vl/modeling_qwen2_vl.py:580
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2vl/modeling_qwen2_vl.py:664
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2vl/modeling_qwen2_vl.py:766
Method
forward
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
Method
forward
(self, hidden_states: torch.Tensor, grid_thw: torch.Tensor)
modeling/qwen2vl/modeling_qwen2_vl.py:1048
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
modeling/qwen2vl/modeling_qwen2_vl.py:1103
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
modeling/qwen2vl/modeling_qwen2_vl.py:1633
Method
forward
(self, pixel_values: torch.Tensor, bool_masked_pos: Optional[torch.Tensor] = None)
modeling/dinov3/dinov3_model.py:51
Method
forward
(self, pixel_values: torch.Tensor)
modeling/dinov3/dinov3_model.py:144
Method
forward
Input shape: Batch x Time x Channel
modeling/dinov3/dinov3_model.py:272
Method
forward
(self, hidden_state: torch.Tensor)
modeling/dinov3/dinov3_model.py:325
Method
forward
(self, hidden_states: torch.Tensor)
modeling/dinov3/dinov3_model.py:351
Method
forward
(self, x)
modeling/dinov3/dinov3_model.py:368
Method
forward
(self, x)
modeling/dinov3/dinov3_model.py:383
Method
forward
( self, hidden_states: torch.Tensor, position_embeddings: Optional[tuple[torc
modeling/dinov3/dinov3_model.py:407
Method
forward
r""" bool_masked_pos (`torch.BoolTensor` of shape `(batch_size, sequence_length)`): Boolean masked positions. Indicates which patc
modeling/dinov3/dinov3_model.py:506
Method
forward
(self, pixel_values: torch.Tensor, bool_masked_pos: Optional[torch.Tensor] = None)
modeling/dinov3/modeling_dinov3_vit.py:55
Method
forward
(self, pixel_values: torch.Tensor)
modeling/dinov3/modeling_dinov3_vit.py:148
Method
forward
Input shape: Batch x Time x Channel
modeling/dinov3/modeling_dinov3_vit.py:276
Method
forward
(self, hidden_state: torch.Tensor)
modeling/dinov3/modeling_dinov3_vit.py:324
Method
forward
(self, hidden_states: torch.Tensor)
modeling/dinov3/modeling_dinov3_vit.py:350
Method
forward
(self, x)
modeling/dinov3/modeling_dinov3_vit.py:367
Method
forward
(self, x)
modeling/dinov3/modeling_dinov3_vit.py:382
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/dinov3/modeling_dinov3_vit.py:406
Method
forward
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
Method
forward
(self, pixel_values: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:64
Method
forward
(self, pixel_values: torch.Tensor, bool_masked_pos: Optional[torch.Tensor] = None)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:147
Method
forward
( self, hidden_states, head_mask: Optional[torch.Tensor] = None, output_attentions: bool = False )
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:230
Method
forward
(self, hidden_states: torch.Tensor, input_tensor: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:277
Method
forward
( self, hidden_states: torch.Tensor, head_mask: Optional[torch.Tensor] = None,
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:309
Method
forward
(self, hidden_state: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:328
Method
forward
(self, hidden_states: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:359
Method
forward
(self, hidden_state: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:378
Method
forward
(self, hidden_state: torch.Tensor)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:395
Method
forward
( self, hidden_states: torch.Tensor, head_mask: Optional[torch.Tensor] = None,
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:423
Method
forward
( self, hidden_states: torch.Tensor, head_mask: Optional[torch.Tensor] = None,
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:462
Method
forward
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
Method
forward
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
Method
forward
r""" Examples: ```python >>> from transformers import AutoImageProcessor, AutoBackbone >>> import torch >>> f
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:749
Method
forward
(self, pixel_values: torch.Tensor, bool_masked_pos: Optional[torch.Tensor] = None)
modeling/dinov2_with_registers/modular_dinov2_with_registers.py:249
Method
forward
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
Method
forward
Examples: ```python >>> from transformers import AutoImageProcessor, AutoBackbone >>> import torch >>> from
modeling/dinov2_with_registers/modular_dinov2_with_registers.py:408
Method
forward
(self, t)
modeling/g2vlm/modeling_utils.py:107
Method
forward
(self, hidden_states: torch.Tensor)
modeling/g2vlm/modeling_utils.py:120
Method
forward
(self, position_ids)
modeling/g2vlm/modeling_utils.py:143
Method
forward
(self, position_ids)
modeling/g2vlm/modeling_utils.py:162
Method
forward
Args: sequence_length: length of sequence. packed_text_ids: 1-D int tensor, packed text token ids. packed
modeling/g2vlm/g2vlm.py:248
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/g2vlm/dinov2_model.py:46
Method
forward
(self, hidden_states: torch.Tensor, input_tensor: torch.Tensor)
modeling/g2vlm/dinov2_model.py:98
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/g2vlm/dinov2_model.py:129
Method
forward
(self, hidden_state: torch.Tensor)
modeling/g2vlm/dinov2_model.py:149
Method
forward
(self, hidden_states: torch.Tensor)
modeling/g2vlm/dinov2_model.py:180
Method
forward
(self, hidden_state: torch.Tensor)
modeling/g2vlm/dinov2_model.py:198
Method
forward
(self, hidden_state: torch.Tensor)
modeling/g2vlm/dinov2_model.py:215
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/g2vlm/dinov2_model.py:242
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/g2vlm/dinov2_model.py:282
Method
forward
r""" bool_masked_pos (`torch.BoolTensor` of shape `(batch_size, sequence_length)`): Boolean masked positions. Indicates which patc
modeling/g2vlm/dinov2_model.py:325
← previous
next →
1,401–1,500 of 2,118, ranked by callers