MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

↓ 279 callersMethodjoin
(self)
eval_code/recons/models/moge/utils/pipeline.py:94
↓ 137 callersFunction_call_based_on_args
(fname, args, kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:156
↓ 113 callersMethodnorm
(self)
modeling/pi3/models/segformer/head.py:309
↓ 82 callersMethodget
(self, key: str = None, block: bool = True)
eval_code/recons/models/moge/utils/pipeline.py:101
↓ 50 callersMethodsize
(self)
modeling/pi3/utils/cropping.py:41
↓ 47 callersMethodopen
Return file-like object for 'name'. name is a string for the file name within the ZIP file, or a ZipInfo object. mode should
eval_code/recons/models/moge/utils/webzipfile.py:30
↓ 36 callersMethoddtype
(self)
eval_code/recons/models/moge/model/v2.py:63
↓ 32 callersMethodresize
(self, *args, **kwargs)
modeling/pi3/utils/cropping.py:46
↓ 28 callersFunctiondraw_thick_bbox
(draw, image, bbox, color, stroke=20)
data/draw_marker.py:17
↓ 28 callersFunctiondraw_thick_bbox
(draw, image, bbox, color, stroke=20)
data/interleave_datasets/draw_marker.py:17
↓ 25 callersMethodread
(self, n: Optional[int] = None)
eval_code/recons/models/moge/utils/webfile.py:50
↓ 24 callersMethodfrom_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/v2.py:67
↓ 19 callersFunctionfn
(uv: np.ndarray, xy: np.ndarray, z: np.ndarray, shift: np.ndarray)
eval_code/recons/models/moge/utils/geometry_numpy.py:84
↓ 18 callersFunctiondraw_points
(draw, image, data_entry, points)
data/draw_marker.py:11
↓ 18 callersFunctiondraw_points
(draw, image, data_entry, points)
data/interleave_datasets/draw_marker.py:11
↓ 16 callersMethod__init__
(self, config)
modeling/qwen2vl/modeling_qwen2_vl.py:509
↓ 16 callersMethodadd
(self, node: Node)
eval_code/recons/models/moge/utils/pipeline.py:256
↓ 14 callersFunctionset_default_arg
check if `key` in arguments, else append default value `key=value` to argument list
eval_code/recons/utils/messages.py:8
↓ 13 callersMethod__init__
(self, config)
modeling/dinov2_with_registers/modeling_dinov2_with_registers.py:367
↓ 12 callersMethod__init__
(self, in_buffer_size: int = 1, out_buffer_size: int = 1)
eval_code/recons/models/moge/utils/pipeline.py:75
↓ 12 callersFunctionwrite_csv
(file_path: str, data_dict: dict)
eval_code/recons/utils/messages.py:51
↓ 9 callersMethod__init__
(self, config)
modeling/g2vlm/dinov2_model.py:187
↓ 9 callersMethod__init__
(self, dims: Sequence[int])
eval_code/recons/models/moge/model/modules.py:176
↓ 9 callersFunctionmax_pool_2d
(x: np.ndarray, kernel_size: Union[int, Tuple[int, int]], stride: Union[int, Tuple[int, int]], padding: Union[
eval_code/recons/models/moge/utils3d/numpy/utils.py:97
↓ 8 callersMethod__init__
(self, dim: int, hidden_dim: int, hidden_act: str)
modeling/qwen2vl/modeling_qwen2_vl_vit.py:140
↓ 8 callersMethod__init__
(self, config)
modeling/dinov3/dinov3_model.py:359
↓ 8 callersMethod__init__
(self, config)
modeling/dinov3/modeling_dinov3_vit.py:358
↓ 8 callersMethod__init__
(self, dim: int, init_values: Union[float, Tensor] = 1e-5, inplace: bool = False)
modeling/g2vlm/qwen2vl.py:41
↓ 8 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
modeling/pi3/models/dinov2/hub/backbones.py:18
↓ 8 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:18
↓ 8 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:18
↓ 8 callersFunctionclosed_form_inverse_se3
Compute the inverse of each 4x4 (or 3x4) SE3 matrix in a batch. If `R` and `T` are provided, they must correspond to the rotation and transl
eval_code/recons/models/vggt/utils/geometry.py:117
↓ 8 callersFunctionget_all_sequences
(dataset_cfg: DictConfig, sort_by_seq_name: bool = True)
eval_code/recons/utils/files.py:8
↓ 8 callersFunctionimage_uv
Get image space UV grid, ranging in [0, 1]. >>> image_uv(10, 10): [[[0.05, 0.05], [0.15, 0.05], ..., [0.95, 0.05]], [[0.05, 0.15],
eval_code/recons/models/moge/utils3d/torch/utils.py:56
↓ 8 callersFunctionresize
(input, size=None, scale_factor=None, mode='nearest', align_corner
modeling/pi3/models/segformer/head.py:420
↓ 8 callersMethodstart
(self)
eval_code/recons/models/moge/utils/pipeline.py:82
↓ 8 callersMethodtime
(self)
eval_code/recons/models/moge/utils/tools.py:184
↓ 7 callersMethod__init__
(self, config)
modeling/qwen2/modeling_qwen2.py:193
↓ 7 callersFunction_get_queue_item
(queue: Queue, terminate_flag: Event, timeout: float = None)
eval_code/recons/models/moge/utils/pipeline.py:46
↓ 7 callersFunction_put_queue_item
(queue: Queue, item: _ItemWrapper, terminate_flag: Event)
eval_code/recons/models/moge/utils/pipeline.py:63
↓ 7 callersFunctionapply_multimodal_rotary_pos_emb
Applies Rotary Position Embedding with Multimodal Sections to the query and key tensors (https://qwenlm.github.io/blog/qwen2-vl/). Explanation:
modeling/qwen2vl/modeling_qwen2_vl.py:176
↓ 7 callersMethodcuda
(self, device=None, non_blocking=False)
data/dataset_base.py:714
↓ 7 callersMethoddevice
(self)
eval_code/recons/models/moge/model/v2.py:59
↓ 7 callersFunctionmake_traj
(args)
eval_code/recons/relpose/evo_utils.py:217
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
modeling/pi3/models/segformer/backbone.py:23
↓ 6 callersMethodcrop
(self, *args, **kwargs)
modeling/pi3/utils/cropping.py:49
↓ 6 callersFunctionhomogenize_points
Convert batched points (xyz) to (xyz1).
modeling/pi3/utils/geometry.py:108
↓ 6 callersFunctionlist_imgs_a_sequence
(dataset_cfg: DictConfig, seq: Optional[str] = None)
eval_code/recons/utils/files.py:19
↓ 6 callersFunctionnormalized_view_plane_uv
UV with left-top corner as (-width / diagonal, -height / diagonal) and right-bottom corner as (width / diagonal, height / diagonal)
eval_code/recons/models/moge/utils/geometry_torch.py:40
↓ 6 callersFunctionpad_sequence
(tensor, pad_size)
modeling/g2vlm/qwen2vl.py:268
↓ 6 callersMethodpop_first
(self, arr)
data/interleave_datasets/recon_then_und_dataset.py:46
↓ 6 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
modeling/qwen2vl/modeling_qwen2_vl.py:525
↓ 5 callersFunctionalign
If trunc is None, solve `min sum_i w_i * |a * x_i - y_i|`, otherwise solve `min sum_i min(trunc, w_i * |a * x_i - y_i|)`. w_i must be >=
modeling/pi3/utils/alignment.py:52
↓ 5 callersFunctionalign
If trunc is None, solve `min sum_i w_i * |a * x_i - y_i|`, otherwise solve `min sum_i min(trunc, w_i * |a * x_i - y_i|)`. w_i must be >=
eval_code/recons/models/moge/utils/alignment.py:52
↓ 5 callersMethodchain
Link the output of each node to the input of the next node.
eval_code/recons/models/moge/utils/pipeline.py:268
↓ 5 callersFunctioncheck_inf_nan_debug
Checks if 'input_tensor' contains inf or nan values and clamps extreme values. Args: input_tensor (torch.Tensor): The loss tenso
modeling/g2vlm/dinov2_model.py:23
↓ 5 callersMethoddecode
(self, hidden, N, H, W)
eval_code/recons/models/pi3/models/pi3.py:132
↓ 5 callersFunctiondepth2disparity
(depth, return_mask=False)
eval_code/recons/utils/depth.py:101
↓ 5 callersMethodforward_inference
( self, packed_query_sequence: torch.Tensor, query_lens: torch.Tensor, packed_
modeling/g2vlm/qwen2vl.py:1267
↓ 5 callersMethodget_data
( self, index: Optional[int] = None, sequence_name: Optional[str] = None,
eval_code/recons/datasets/dtu.py:144
↓ 5 callersFunctionget_rays
Args: extrinsics: (..., 4, 4) extrinsics matrices. intrinsics: (..., 3, 3) intrinsics matrices. uv: (..., n_rays, 2) uv c
eval_code/recons/models/moge/utils3d/torch/nerf.py:27
↓ 5 callersFunctionload_and_resize14
(filelist: List[str], new_width: int, device: str, verbose: bool)
eval_code/recons/interfaces/pi3.py:79
↓ 5 callersFunctionload_and_resize14
(filelist: List[str], resize_to: int, device: str)
eval_code/recons/interfaces/vggt.py:16
↓ 5 callersFunctionmatrix_to_quaternion
Convert rotations given as rotation matrices to quaternions. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Re
modeling/g2vlm/rotation_utils.py:105
↓ 5 callersFunctionpil_img2rgb
(image)
data/data_utils.py:254
↓ 5 callersFunctionresize_image_depth_and_intrinsic
( image: Image.Image, depth_map: np.ndarray, intrinsic: np.ndarray, output_width: int, pix
eval_code/recons/datasets/utils/cropping.py:18
↓ 5 callersMethodterminate
(self)
eval_code/recons/models/moge/utils/pipeline.py:86
↓ 5 callersMethodto_dict
(self)
data/dataset_base.py:746
↓ 5 callersMethodto_pil
(self)
modeling/pi3/utils/cropping.py:37
↓ 5 callersFunctionunproject_depth_map_to_point_map
Unproject a batch of depth maps to 3D world coordinates. Args: depth_map (np.ndarray): Batch of depth maps of shape (S, H, W, 1) or
eval_code/recons/models/vggt/utils/geometry.py:12
↓ 5 callersFunctionvolume_rendering
Given color, sigma and z_vals (linear depth of the sampling points), render the volume. NOTE: By default, color and sigma should have one le
eval_code/recons/models/moge/utils3d/torch/nerf.py:110
↓ 4 callersMethod__init__
(self, input_dim=2048, embed_dim=768)
modeling/pi3/models/segformer/head.py:651
↓ 4 callersFunction_make_fusion_block
(features: int, size: int = None, has_residual: bool = True, groups: int = 1)
eval_code/recons/models/vggt/heads/dpt_head.py:312
↓ 4 callersFunction_smooth
(err: torch.FloatTensor, beta: float = 0.0)
modeling/pi3/models/pi3_loss.py:30
↓ 4 callersFunctionadd_special_tokens
(tokenizer)
data/data_utils.py:278
↓ 4 callersFunctionangle_diff_vec3
(v1: torch.Tensor, v2: torch.Tensor, eps: float = 1e-12)
modeling/pi3/models/pi3_loss.py:36
↓ 4 callersFunctioncreate_logger
Create a logger that writes to a log file and stdout.
train/train_utils.py:5
↓ 4 callersFunctiondepthmap_to_absolute_camera_coordinates
Args: - depthmap (HxW array): - camera_intrinsics: a 3x3 matrix - camera_pose: a 4x3 or 4x4 cam2world matrix Returns:
modeling/pi3/utils/geometry.py:47
↓ 4 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
modeling/pi3/models/layers/block.py:114
↓ 4 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
eval_code/recons/models/pi3/models/layers/block.py:114
↓ 4 callersMethodforward_cache_update_text
( self, past_key_values: NaiveCache, packed_text_ids: torch.IntTensor, packed_
modeling/g2vlm/g2vlm.py:698
↓ 4 callersFunctionget_rope_index_image_3D_dino
Calculate 3D RoPE indices for a single image. Args: image_grid_thw: Temporal, height, width dimensions of the image grid
data/data_utils.py:78
↓ 4 callersFunctionimportance_sample
Importance sample z values. NOTE: By default, weights should have one less sample than z_vals, in correspondence with the intervals. If
eval_code/recons/models/moge/utils3d/torch/nerf.py:202
↓ 4 callersFunctionlaplacian_smooth_mesh
Laplacian smooth with cotangent weights Args: vertices (torch.Tensor): shape (..., N, 3) faces (torch.Tensor): shape (T, 3)
eval_code/recons/models/moge/utils3d/torch/mesh.py:649
↓ 4 callersFunctionload_and_resize14_ori
(filelist: List[str], new_width: int, device: str, verbose: bool)
eval_code/recons/interfaces/g2vlm.py:82
↓ 4 callersFunctionpatchify
(image, patch_size)
data/data_utils.py:40
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
modeling/pi3/models/dinov2/models/vision_transformer.py:215
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
eval_code/recons/models/moge/model/dinov2/models/vision_transformer.py:213
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
eval_code/recons/models/vggt/layers/vision_transformer.py:217
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
eval_code/recons/models/pi3/models/dinov2/models/vision_transformer.py:215
↓ 4 callersFunctionrank0_print
(*args)
train/fsdp_utils.py:575
↓ 4 callersFunctionrecover_focal_shift
Recover the depth map and FoV from a point map with unknown z shift and focal. Note that it assumes: - the optical center is at the cent
eval_code/recons/models/moge/utils/geometry_torch.py:115
↓ 4 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
modeling/qwen2/modeling_qwen2.py:207
↓ 4 callersFunctionresize_image
(image: Image.Image, output_resolution: Tuple[int, int])
eval_code/recons/datasets/utils/cropping.py:14
↓ 4 callersFunctionrotate_half
Rotates half the hidden dims of the input.
modeling/qwen2vl/modeling_qwen2_vl.py:170
↓ 4 callersFunctionsave_list_of_matrices
(matrices_tosave: List[List[List[float]]], save_path: str)
eval_code/recons/utils/messages.py:84
↓ 4 callersFunctionscatter_min
Scatter the minimum value along the given dimension of `input` into `src` at the indices specified in `index`.
modeling/pi3/utils/alignment.py:13
↓ 4 callersFunctionscatter_min
Scatter the minimum value along the given dimension of `input` into `src` at the indices specified in `index`.
eval_code/recons/models/moge/utils/alignment.py:13
↓ 4 callersFunctionse3_inverse
Computes the inverse of a batch of SE(3) matrices.
modeling/pi3/utils/geometry.py:5
↓ 4 callersMethodset_epoch
(self, seed)
data/dataset_base.py:195
next →1–100 of 2,118, ranked by callers