MCPcopy Create free account

hub / github.com/Livioni/OmniVGGT-official / functions

Functions660 in github.com/Livioni/OmniVGGT-official

↓ 2 callersFunctionget_opengl_conversion_matrix
Constructs and returns the OpenGL conversion matrix. Returns: numpy.ndarray: A 4x4 OpenGL conversion matrix.
visual_util.py:344
↓ 2 callersFunctionget_rank
()
omnivggt/datasets/utils/misc.py:210
↓ 2 callersFunctionget_world_points_from_depth
Generate 3D world points from depth predictions. Args: predictions (dict): Prediction dictionary containing pose_enc, depth, and ima
visual_util.py:42
↓ 2 callersFunctiongif_and_tile
(ims, just_gif=False)
omnivggt/utils/po_utils/improc.py:149
↓ 2 callersFunctiongradient_loss_multi_scale_wrapper
Multi-scale gradient loss wrapper. Applies gradient loss at multiple scales by subsampling the input. This helps capture both fine and coarse
omnivggt/loss.py:366
↓ 2 callersFunctionimg_to_arr
( img )
omnivggt/utils/image.py:75
↓ 2 callersFunctionlistify
(elems)
omnivggt/utils/device.py:75
↓ 2 callersFunctionload_timestamps
(time_file, traj_format="replica")
omnivggt/utils/vo_eval.py:141
↓ 2 callersFunctionmake_2tuple
(x)
omnivggt/layers/patch_embed.py:16
↓ 2 callersFunctionmake_sincos_pos_embed
This function generates a 1D positional embedding from a given grid using sine and cosine functions. Args: - embed_dim: The embedding di
omnivggt/heads/utils.py:36
↓ 2 callersFunctionmeshgrid2d
(B, Y, X, stack=False, norm=False, device='cuda', on_chans=False)
omnivggt/utils/po_utils/basic.py:180
↓ 2 callersFunctionnormalize_boxlist2d
(boxlist2d, H, W)
omnivggt/utils/po_utils/geom.py:287
↓ 2 callersMethodnormalize_depth
depth: [B, V, H, W, 1] mask: [B, V, H, W]
omnivggt/models/omnivggt_aggregator.py:112
↓ 2 callersMethodnormalize_extrinsics
(self, extrinsics)
omnivggt/models/omnivggt_aggregator.py:90
↓ 2 callersFunctiononed2inferno
(d, norm=True, do_colorize=False)
omnivggt/utils/po_utils/improc.py:355
↓ 2 callersFunctionpoint_map_to_normal
Convert 3D point map to surface normal vectors using cross products. Computes normals by taking cross products of neighboring point diff
omnivggt/loss.py:508
↓ 2 callersFunctionpose_encoding_to_extri_intri
Convert a pose encoding back to camera extrinsics and intrinsics. This function performs the inverse operation of extri_intri_to_pose_encoding,
omnivggt/utils/pose_enc.py:65
↓ 2 callersFunctionpredictions_to_glb
Converts VGGT predictions to a 3D scene represented as a GLB file. Args: predictions (dict): Dictionary containing model predictions
visual_util.py:75
↓ 2 callersFunctionregression_loss
Core regression loss function with confidence weighting and optional gradient loss. Computes: 1. gamma * ||pred - gt||^2 * conf - al
omnivggt/loss.py:277
↓ 2 callersFunctionsegment_sky
Segments sky from an image using an ONNX model. Thanks for the great model provided by https://github.com/xiongzhu666/Sky-Segmentation-and-Po
visual_util.py:422
↓ 2 callersFunctionselect_first_batch
Remove batch dimension from all tensors in the inputs dictionary and optionally change data type. Args: inputs (dict): Dictionar
omnivggt/utils/misc.py:203
↓ 2 callersFunctionselout
(ar)
omnivggt/utils/misc.py:104
↓ 2 callersMethodset_epoch
(self, epoch)
omnivggt/datasets/base/easy_dataset.py:140
↓ 2 callersFunctionsetup_for_distributed
This function disables printing when not in master process
omnivggt/datasets/utils/misc.py:179
↓ 2 callersMethodshow
(self, point_size=2)
omnivggt/viz.py:210
↓ 2 callersFunctiontransform_points
Applies a 4x4 transformation to a set of points. Args: transformation (np.ndarray): Transformation matrix. points (np.ndarra
visual_util.py:361
↓ 2 callersFunctiontransposed
(dic)
omnivggt/utils/misc.py:121
↓ 2 callersFunctionuint8
(colors)
omnivggt/viz.py:348
↓ 2 callersFunctionunnormalize_boxlist2d
(boxlist2d, H, W)
omnivggt/utils/po_utils/geom.py:297
↓ 2 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
omnivggt/utils/geometry.py:151
↓ 2 callersMethodupdate
(self, value, n=1)
omnivggt/datasets/utils/misc.py:43
↓ 2 callersFunctionupdate_point_cloud
Update the point cloud based on current GUI selections.
inference.py:214
↓ 1 callersMethod__build_patch_embed__
Build the patch embed layer. If 'conv', we use a simple PatchEmbed conv layer. Otherwise, we use a vision transformer.
omnivggt/models/aggregator.py:150
↓ 1 callersMethod__init__
Initializes the position generator with an empty cache.
omnivggt/layers/rope.py:35
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
omnivggt/layers/swiglu_ffn.py:15
↓ 1 callersMethod__init__
(self, multiplicator, dataset)
omnivggt/datasets/base/easy_dataset.py:48
↓ 1 callersMethod_build_intrinsics_matrix
Build camera intrinsics matrix from parameters.
omnivggt/datasets/arkitscenes_high.py:150
↓ 1 callersMethod_compute_frequency_components
Computes frequency components for rotary embeddings. Args: dim: Feature dimension (must be even). seq_len: Maximum se
omnivggt/layers/rope.py:86
↓ 1 callersMethod_crop_resize_if_necessary
This function: - first downsizes the image with LANCZOS inteprolation, which is better than bilinear interpolation in
omnivggt/heads/datasets/dl3dv.py:178
↓ 1 callersFunction_generic_transform_sk_3d
(transform, in_type='', out_type='')
omnivggt/utils/po_utils/improc.py:22
↓ 1 callersMethod_get_batch_fmtstr
(self, num_batches)
omnivggt/utils/general.py:121
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
omnivggt/layers/vision_transformer.py:285
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
omnivggt/layers/vision_transformer.py:273
↓ 1 callersFunction_get_num_layer_for_vit
(var_name, enc_depth, dec_depth)
omnivggt/datasets/utils/misc.py:371
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/wildrgb.py:185
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/scannet.py:180
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/mvs_synth.py:178
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/vkitti.py:184
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/tartanair.py:167
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/uasol.py:178
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/arkitscenes_high.py:163
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/blendedmvs.py:154
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/megadepth.py:177
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/dynamic_replica.py:164
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/kubric.py:175
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/mp3d.py:177
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/dl3dv.py:235
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/hypersim.py:187
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/scannetppv2.py:187
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/waymo.py:178
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/bedlam.py:156
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/co3d.py:186
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/mapfree.py:169
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/spring.py:178
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/datasets/unreal4k.py:184
↓ 1 callersMethod_get_views
(self, idx, resolution, rng)
omnivggt/datasets/base/base_stereo_view_dataset.py:64
↓ 1 callersMethod_get_views
(self, index, num, resolution, rng)
omnivggt/heads/datasets/dl3dv.py:234
↓ 1 callersFunction_is_named_tuple
(x)
omnivggt/utils/general.py:135
↓ 1 callersFunction_make_scratch
(in_shape: List[int], out_shape: int, groups: int = 1, expand: bool = False)
omnivggt/heads/dpt_head.py:326
↓ 1 callersMethod_process_frame_attention
Process frame attention blocks. We keep tokens in shape (B*S, P, C).
omnivggt/models/aggregator.py:282
↓ 1 callersMethod_read_depthmap
(self, depthpath, max_depth=None)
omnivggt/datasets/co3d.py:173
↓ 1 callersFunction_replace
Advanced string replacement. Given a text: - replace all elements in src by the corresponding element in tgt - remove all elements in rm
omnivggt/datasets/utils/misc.py:344
↓ 1 callersMethod_rotate_features
Performs feature rotation by splitting and recombining feature dimensions. Args: x: Input tensor to rotate. Returns:
omnivggt/layers/rope.py:120
↓ 1 callersMethod_set_resolutions
(self, resolutions)
omnivggt/datasets/base/base_stereo_view_dataset.py:125
↓ 1 callersFunction_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0.
omnivggt/utils/rotation.py:112
↓ 1 callersFunctionactivate_head
Process network output to extract 3D points and confidence values. Args: out: Network output tensor (B, C, H, W) activation:
omnivggt/heads/head_act.py:61
↓ 1 callersFunctionactivate_pose
Activate pose parameters with specified activation functions. Args: pred_pose_enc: Tensor containing encoded pose parameters [transl
omnivggt/heads/head_act.py:12
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
omnivggt/layers/block.py:197
↓ 1 callersFunctionapply_scene_alignment
Aligns the 3D scene based on the extrinsics of the first camera. Args: scene_3d (trimesh.Scene): The 3D scene to be aligned.
visual_util.py:320
↓ 1 callersFunctionapply_sky_segmentation
Apply sky segmentation to confidence scores. Args: conf (np.ndarray): Confidence scores with shape (S, H, W) image_folder (s
visual_util.py:625
↓ 1 callersFunctionapply_transform_individual
(input_)
omnivggt/utils/po_utils/improc.py:23
↓ 1 callersFunctionattach_callback
(frustum: viser.CameraFrustumHandle, frame: viser.FrameHandle)
inference.py:172
↓ 1 callersFunctionbest_plotmode
(traj)
omnivggt/utils/vo_eval.py:249
↓ 1 callersFunctionbuild_cosine_warmup_scheduler
Build a learning rate scheduler with linear warmup and cosine decay. Args: optimizer: Optimizer instance warmup_steps: N
train_utils.py:70
↓ 1 callersFunctionbuild_dataset
Build data loader for training or testing. Args: dataset: Dataset configuration string batch_size: Batch size nu
train_utils.py:36
↓ 1 callersFunctionbuild_loss_criterion
Build multi-task loss criterion. Args: cfg: Configuration object Returns: MultitaskLoss instance
train_utils.py:313
↓ 1 callersFunctionbuild_optimizer
Build optimizer with parameter groups for different learning rates. Args: model: Model instance cfg: Configuration objec
train_utils.py:218
↓ 1 callersFunctioncamera_loss_single
Computes translation, rotation, and focal loss for a batch of pose encodings. Args: pred_pose_enc: (N, D) predicted pose encodin
omnivggt/loss.py:153
↓ 1 callersFunctioncamera_matrix_of_crop
(input_camera_matrix, input_resolution, output_resolution, scaling=1, offset_factor=0.5, offset=None)
omnivggt/datasets/utils/cropping.py:147
↓ 1 callersFunctioncolmap_to_opencv_intrinsics
Modify camera intrinsics to follow a different convention. Coordinates of the center of the top-left pixels are by default: - (0.5, 0.5)
omnivggt/utils/geometry.py:321
↓ 1 callersFunctioncolorize
(d)
omnivggt/utils/po_utils/improc.py:314
↓ 1 callersFunctioncompute_camera_faces
Computes the faces for the camera mesh. Args: cone_shape (trimesh.Trimesh): The shape of the camera cone. Returns: np.n
visual_util.py:386
↓ 1 callersFunctioncompute_camera_loss
( pred_dict, # predictions dict, contains pose encodings batch_data, # ground
omnivggt/loss.py:77
↓ 1 callersFunctioncompute_depth_loss
Compute depth loss. Args: predictions: Dict containing 'depth' and 'depth_conf' batch: Dict containing ground truth 'dep
omnivggt/loss.py:235
↓ 1 callersFunctioncompute_point_loss
Compute point loss. Args: predictions: Dict containing 'world_points' and 'world_points_conf' batch: Dict containing gro
omnivggt/loss.py:195
↓ 1 callersFunctionconvert_occ_to_height
(occ, reduce_axis=3)
omnivggt/utils/po_utils/improc.py:171
↓ 1 callersFunctioncreate_uv_grid
Create a normalized UV grid of shape (width, height, 2). The grid spans horizontally and vertically according to an aspect ratio, ensuri
omnivggt/heads/utils.py:65
↓ 1 callersFunctiondepth_to_cam_coords_points
Convert a depth map to camera coordinates. Args: depth_map (np.ndarray): Depth map of shape (H, W). intrinsic (np.ndarray):
omnivggt/utils/geometry.py:236
↓ 1 callersFunctiondepth_to_cam_coords_points
Unprojects a depth map into camera coordinates, returning (H, W, 3). Args: depth_map (np.ndarray): Depth map of shape (H
omnivggt/datasets/utils/misc.py:597
↓ 1 callersFunctiondepthmap_to_camera_coordinates
Args: - depthmap (HxW array): - camera_intrinsics: a 3x3 matrix Returns: pointmap of absolute coordinates (HxWx3 arra
omnivggt/utils/geometry.py:39
← previousnext →101–200 of 660, ranked by callers