MCPcopy Create free account

hub / github.com/InternRobotics/G2VLM / functions

Functions2,118 in github.com/InternRobotics/G2VLM

Functioncompute_vertex_normal
Compute vertex normals of a triangular mesh by averaging neightboring face normals Args: vertices (torch.Tensor): [..., N, 3] 3-dime
eval_code/recons/models/moge/utils3d/torch/mesh.py:172
Functioncompute_vertex_normal
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:188
Functioncompute_vertex_normal
Compute vertex normals of a triangular mesh by averaging neightboring face normals TODO: can be improved. Args: vertices (np
eval_code/recons/models/moge/utils3d/numpy/mesh.py:119
Functioncompute_vertex_normal_weighted
Compute vertex normals of a triangular mesh by weighted sum of neightboring face normals according to the angles Args: vertices
eval_code/recons/models/moge/utils3d/torch/mesh.py:201
Functioncompute_vertex_normal_weighted
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:194
Functioncompute_vertex_normal_weighted
Compute vertex normals of a triangular mesh by weighted sum of neightboring face normals according to the angles Args: vertices
eval_code/recons/models/moge/utils3d/numpy/mesh.py:152
Functioncompute_vertex_tbn
compute TBN matrix for each face Args: faces_topo (torch.Tensor): (T, 3), face indice of topology pos (torch.Tensor): shape (...,
eval_code/recons/models/moge/utils3d/torch/mesh.py:597
Functioncompute_vertex_tbn
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:776
Methodconvert_intrinsics
(self, meta_data)
data/recon_dataset.py:181
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
modeling/qwen2/tokenization_qwen2.py:272
Functioncount_parameters
(model, top_k=15)
modeling/pi3/utils/basic.py:80
Methodcreate_from_conv_bn
Create a ConvModule from a conv and a bn module.
modeling/pi3/models/segformer/head.py:380
Functioncrop
(image, crop_factors)
data/transforms.py:221
Functioncrop_image
Return a crop of the input view.
modeling/pi3/utils/cropping.py:193
Functioncrop_image_depthmap
Return a crop of the input view.
modeling/pi3/utils/cropping.py:172
Functioncrop_intrinsics
Evaluate the new intrinsics(s) after crop the image: cropped_img = img[top:top+crop_height, left:left+crop_width] Args: intrinsics (
eval_code/recons/models/moge/utils3d/torch/transforms.py:480
Functioncrop_intrinsics
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:518
Functioncrop_intrinsics
Evaluate the new intrinsics(s) after crop the image: cropped_img = img[top:top+crop_height, left:left+crop_width] Args: intrinsics (
eval_code/recons/models/moge/utils3d/numpy/transforms.py:408
Methodcross_attn_residual_func
(x: Tensor, y: Tensor)
modeling/pi3/models/layers/block.py:395
Methodcross_attn_residual_func
(x: Tensor, y: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:395
Functioncube
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:398
Functioncube
Get x cube mesh of size 1 centered at origin. ### Parameters tri (bool, optional): return triangulated mesh. Defaults to False, whic
eval_code/recons/models/moge/utils3d/numpy/utils.py:608
Functioncubic_spline_interpolate
Cubic spline interpolation. ### Parameters: - `x`: np.ndarray, shape (..., n,): the x-coordinates of the data points. - `t`: np.ndar
eval_code/recons/models/moge/utils3d/numpy/spline.py:55
Methodcuda
(self, device=None, non_blocking=False)
data/dataset_base_periter.py:710
Methoddecode
This method forwards all its arguments to Qwen2TokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
modeling/qwen2vl/processing_qwen2_vl.py:166
Functiondecode_video_byte
(video_bytes)
data/video_utils.py:130
Functiondecolorization
(image)
data/transforms.py:208
Functiondecorator
(fn: Callable)
eval_code/recons/models/moge/utils/tools.py:234
Functiondecorator
(func)
eval_code/recons/models/moge/utils3d/torch/_helpers.py:64
Functiondecorator
(func)
eval_code/recons/models/moge/utils3d/numpy/_helpers.py:54
Functiondefault
(val, d)
eval_code/recons/models/vggt/heads/track_modules/modules.py:32
Functiondepth_aliasing
Compute the map that indicates the aliasing of a depth map. The aliasing is defined as the pixels which neither close to the maximum nor the mini
eval_code/recons/models/moge/utils3d/torch/utils.py:187
Functiondepth_aliasing
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:326
Functiondepth_aliasing
Compute the map that indicates the aliasing of x depth map. The aliasing is defined as the pixels which neither close to the maximum nor the mini
eval_code/recons/models/moge/utils3d/numpy/utils.py:134
Functiondepth_buffer_to_linear
Linearize depth value to linear depth Args: depth (torch.Tensor): [...] screen depth value, ranging in [0, 1] near (float |
eval_code/recons/models/moge/utils3d/torch/transforms.py:597
Functiondepth_buffer_to_linear
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:548
Functiondepth_buffer_to_linear
OpenGL depth buffer to linear depth Args: depth_buffer (np.ndarray): [...] depth value near (float | np.ndarray): [...] near
eval_code/recons/models/moge/utils3d/numpy/transforms.py:527
Functiondepth_edge
Compute the edge mask of a depth map. The edge is defined as the pixels whose neighbors have a large difference in depth. Args:
eval_code/recons/models/moge/utils3d/torch/utils.py:156
Functiondepth_edge
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:314
Functiondepth_edge
Compute the edge mask from depth map. The edge is defined as the pixels whose neighbors have large difference in depth. Args: de
eval_code/recons/models/moge/utils3d/numpy/utils.py:108
Functiondepth_edge
Compute the edge mask of a depth map. The edge is defined as the pixels whose neighbors have a large difference in depth. Args:
eval_code/recons/models/pi3/utils/geometry.py:347
Functiondepth_occlusion_edge
(depth: torch.FloatTensor, mask: torch.BoolTensor, kernel_size: int = 3, tol: float = 0.1)
eval_code/recons/models/moge/utils/geometry_torch.py:264
Functiondepth_occlusion_edge_numpy
(depth: np.ndarray, mask: np.ndarray, thickness: int = 1, tol: float = 0.1)
eval_code/recons/models/moge/utils/geometry_numpy.py:291
Functiondepth_of_field
Apply depth of field effect to an image. Args: img (numpy.ndarray): (H, W, 3) input image. depth (numpy.ndarray): (H, W) dep
eval_code/recons/models/moge/utils/geometry_numpy.py:356
Functiondepth_read
(filename)
eval_code/recons/datasets/preprocess/prepare_kitti.py:11
Functiondepth_to_normals
Calculate normal map from depth map. Value range is [-1, 1]. Normal direction in OpenGL identity camera's coordinate system. Args: d
eval_code/recons/models/moge/utils3d/torch/utils.py:277
Functiondepth_to_normals
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:374
Functiondepth_to_normals
Calculate normal map from depth map. Value range is [-1, 1]. Normal direction in OpenGL identity camera's coordinate system. Args: d
eval_code/recons/models/moge/utils3d/numpy/utils.py:256
Functiondepth_to_points
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:386
Functiondepth_to_points
Unproject depth map to 3D points. Args: depth (np.ndarray): [..., H, W] depth value extrinsics (optional, np.ndarray): [...,
eval_code/recons/models/moge/utils3d/numpy/utils.py:277
Functiondepthmap_to_absolute_camera_coordinates
Args: - depthmap (HxW array): - camera_intrinsics: a 3x3 matrix - camera_pose: a 4x3 or 4x4 cam2world matrix Returns:
eval_code/recons/models/pi3/utils/geometry.py:55
Methoddevice
(self)
eval_code/recons/models/moge/model/v1.py:207
Functiondilate_with_mask
(input: torch.Tensor, mask: torch.BoolTensor, filter: Literal['min', 'max', 'mean', 'median'] = 'mean', iterat
eval_code/recons/models/moge/utils/geometry_torch.py:309
Functiondinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:71
Functiondinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:71
Functiondinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:71
Functiondinov2_vitb14_reg
DINOv2 ViT-B/14 model with registers (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:113
Functiondinov2_vitb14_reg
DINOv2 ViT-B/14 model with registers (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:113
Functiondinov2_vitb14_reg
DINOv2 ViT-B/14 model with registers (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:113
Functiondinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:85
Functiondinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:85
Functiondinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:85
Functiondinov2_vitg14_reg
DINOv2 ViT-g/14 model with registers (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:143
Functiondinov2_vitg14_reg
DINOv2 ViT-g/14 model with registers (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:143
Functiondinov2_vitg14_reg
DINOv2 ViT-g/14 model with registers (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:143
Functiondinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:78
Functiondinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:78
Functiondinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:78
Functiondinov2_vitl14_reg
DINOv2 ViT-L/14 model with registers (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:128
Functiondinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:64
Functiondinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:64
Functiondinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:64
Functiondinov2_vits14_reg
DINOv2 ViT-S/14 model with registers (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:98
Functiondinov2_vits14_reg
DINOv2 ViT-S/14 model with registers (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:98
Functiondinov2_vits14_reg
DINOv2 ViT-S/14 model with registers (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:98
Functiondownload_bytes
(url: str, headers: dict = None)
eval_code/recons/models/moge/utils/download.py:45
Functiondownload_file
(url: str, filepath: Union[str, Path], headers: dict = None, resume: bool = True)
eval_code/recons/models/moge/utils/download.py:11
Functiondownscale
(image, scale_factor)
data/transforms.py:213
Functiondraw_appearance_order
(images, data_entry)
data/draw_marker.py:424
Functiondraw_appearance_order
(images, data_entry)
data/interleave_datasets/draw_marker.py:424
Functiondraw_camera_motion_infer
(images, data_entry)
data/draw_marker.py:430
Functiondraw_camera_motion_infer
(images, data_entry)
data/interleave_datasets/draw_marker.py:430
Functiondraw_depth_prediction_oc
(image, data_entry)
data/draw_marker.py:30
Functiondraw_depth_prediction_oc
(image, data_entry)
data/interleave_datasets/draw_marker.py:30
Functiondraw_depth_prediction_oc_mv
(images, data_entry)
data/draw_marker.py:81
Functiondraw_depth_prediction_oc_mv
(images, data_entry)
data/interleave_datasets/draw_marker.py:81
Functiondraw_depth_prediction_oo
(image, data_entry)
data/draw_marker.py:34
Functiondraw_depth_prediction_oo
(image, data_entry)
data/interleave_datasets/draw_marker.py:34
Functiondraw_depth_prediction_oo_mv
(images, data_entry)
data/draw_marker.py:92
Functiondraw_depth_prediction_oo_mv
(images, data_entry)
data/interleave_datasets/draw_marker.py:92
Functiondraw_distance_infer_center_oc_mv
(images, data_entry)
data/draw_marker.py:175
Functiondraw_distance_infer_center_oc_mv
(images, data_entry)
data/interleave_datasets/draw_marker.py:175
Functiondraw_distance_infer_center_oo_mv
(images, data_entry)
data/draw_marker.py:178
Functiondraw_distance_infer_center_oo_mv
(images, data_entry)
data/interleave_datasets/draw_marker.py:178
Functiondraw_distance_infer_center_oo_video
(images, data_entry)
data/draw_marker.py:266
Functiondraw_distance_infer_center_oo_video
(images, data_entry)
data/interleave_datasets/draw_marker.py:266
Functiondraw_distance_inference_oc
(image, data_entry)
data/draw_marker.py:46
Functiondraw_distance_inference_oc
(image, data_entry)
data/interleave_datasets/draw_marker.py:46
Functiondraw_distance_inference_oo
(image, data_entry)
data/draw_marker.py:49
Functiondraw_distance_inference_oo
(image, data_entry)
data/interleave_datasets/draw_marker.py:49
← previousnext →1,201–1,300 of 2,118, ranked by callers