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
Function
compute_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
Function
compute_vertex_normal
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:188
Function
compute_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
Function
compute_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
Function
compute_vertex_normal_weighted
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:194
Function
compute_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
Function
compute_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
Function
compute_vertex_tbn
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:776
Method
convert_intrinsics
(self, meta_data)
data/recon_dataset.py:181
Method
convert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
modeling/qwen2/tokenization_qwen2.py:272
Function
count_parameters
(model, top_k=15)
modeling/pi3/utils/basic.py:80
Method
create_from_conv_bn
Create a ConvModule from a conv and a bn module.
modeling/pi3/models/segformer/head.py:380
Function
crop
(image, crop_factors)
data/transforms.py:221
Function
crop_image
Return a crop of the input view.
modeling/pi3/utils/cropping.py:193
Function
crop_image_depthmap
Return a crop of the input view.
modeling/pi3/utils/cropping.py:172
Function
crop_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
Function
crop_intrinsics
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:518
Function
crop_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
Method
cross_attn_residual_func
(x: Tensor, y: Tensor)
modeling/pi3/models/layers/block.py:395
Method
cross_attn_residual_func
(x: Tensor, y: Tensor)
eval_code/recons/models/pi3/models/layers/block.py:395
Function
cube
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:398
Function
cube
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
Function
cubic_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
Method
cuda
(self, device=None, non_blocking=False)
data/dataset_base_periter.py:710
Method
decode
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
Function
decode_video_byte
(video_bytes)
data/video_utils.py:130
Function
decolorization
(image)
data/transforms.py:208
Function
decorator
(fn: Callable)
eval_code/recons/models/moge/utils/tools.py:234
Function
decorator
(func)
eval_code/recons/models/moge/utils3d/torch/_helpers.py:64
Function
decorator
(func)
eval_code/recons/models/moge/utils3d/numpy/_helpers.py:54
Function
default
(val, d)
eval_code/recons/models/vggt/heads/track_modules/modules.py:32
Function
depth_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
Function
depth_aliasing
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:326
Function
depth_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
Function
depth_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
Function
depth_buffer_to_linear
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:548
Function
depth_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
Function
depth_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
Function
depth_edge
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:314
Function
depth_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
Function
depth_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
Function
depth_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
Function
depth_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
Function
depth_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
Function
depth_read
(filename)
eval_code/recons/datasets/preprocess/prepare_kitti.py:11
Function
depth_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
Function
depth_to_normals
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:374
Function
depth_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
Function
depth_to_points
(*args, **kwargs)
eval_code/recons/models/moge/utils3d/_unified/__init__.py:386
Function
depth_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
Function
depthmap_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
Method
device
(self)
eval_code/recons/models/moge/model/v1.py:207
Function
dilate_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
Function
dinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:71
Function
dinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:71
Function
dinov2_vitb14
DINOv2 ViT-B/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:71
Function
dinov2_vitb14_reg
DINOv2 ViT-B/14 model with registers (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:113
Function
dinov2_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
Function
dinov2_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
Function
dinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:85
Function
dinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:85
Function
dinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:85
Function
dinov2_vitg14_reg
DINOv2 ViT-g/14 model with registers (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:143
Function
dinov2_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
Function
dinov2_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
Function
dinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:78
Function
dinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:78
Function
dinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:78
Function
dinov2_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
Function
dinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:64
Function
dinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/moge/model/dinov2/hub/backbones.py:64
Function
dinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
eval_code/recons/models/pi3/models/dinov2/hub/backbones.py:64
Function
dinov2_vits14_reg
DINOv2 ViT-S/14 model with registers (optionally) pretrained on the LVD-142M dataset.
modeling/pi3/models/dinov2/hub/backbones.py:98
Function
dinov2_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
Function
dinov2_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
Function
download_bytes
(url: str, headers: dict = None)
eval_code/recons/models/moge/utils/download.py:45
Function
download_file
(url: str, filepath: Union[str, Path], headers: dict = None, resume: bool = True)
eval_code/recons/models/moge/utils/download.py:11
Function
downscale
(image, scale_factor)
data/transforms.py:213
Function
draw_appearance_order
(images, data_entry)
data/draw_marker.py:424
Function
draw_appearance_order
(images, data_entry)
data/interleave_datasets/draw_marker.py:424
Function
draw_camera_motion_infer
(images, data_entry)
data/draw_marker.py:430
Function
draw_camera_motion_infer
(images, data_entry)
data/interleave_datasets/draw_marker.py:430
Function
draw_depth_prediction_oc
(image, data_entry)
data/draw_marker.py:30
Function
draw_depth_prediction_oc
(image, data_entry)
data/interleave_datasets/draw_marker.py:30
Function
draw_depth_prediction_oc_mv
(images, data_entry)
data/draw_marker.py:81
Function
draw_depth_prediction_oc_mv
(images, data_entry)
data/interleave_datasets/draw_marker.py:81
Function
draw_depth_prediction_oo
(image, data_entry)
data/draw_marker.py:34
Function
draw_depth_prediction_oo
(image, data_entry)
data/interleave_datasets/draw_marker.py:34
Function
draw_depth_prediction_oo_mv
(images, data_entry)
data/draw_marker.py:92
Function
draw_depth_prediction_oo_mv
(images, data_entry)
data/interleave_datasets/draw_marker.py:92
Function
draw_distance_infer_center_oc_mv
(images, data_entry)
data/draw_marker.py:175
Function
draw_distance_infer_center_oc_mv
(images, data_entry)
data/interleave_datasets/draw_marker.py:175
Function
draw_distance_infer_center_oo_mv
(images, data_entry)
data/draw_marker.py:178
Function
draw_distance_infer_center_oo_mv
(images, data_entry)
data/interleave_datasets/draw_marker.py:178
Function
draw_distance_infer_center_oo_video
(images, data_entry)
data/draw_marker.py:266
Function
draw_distance_infer_center_oo_video
(images, data_entry)
data/interleave_datasets/draw_marker.py:266
Function
draw_distance_inference_oc
(image, data_entry)
data/draw_marker.py:46
Function
draw_distance_inference_oc
(image, data_entry)
data/interleave_datasets/draw_marker.py:46
Function
draw_distance_inference_oo
(image, data_entry)
data/draw_marker.py:49
Function
draw_distance_inference_oo
(image, data_entry)
data/interleave_datasets/draw_marker.py:49
← previous
next →
1,201–1,300 of 2,118, ranked by callers