MCPcopy Create free account

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

Functions660 in github.com/Livioni/OmniVGGT-official

↓ 266 callersFunctionprint
(*args, **kwargs)
omnivggt/datasets/utils/misc.py:185
↓ 92 callersFunctionview_name
(view, batch_index=None)
omnivggt/datasets/base/base_stereo_view_dataset.py:206
↓ 51 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
omnivggt/utils/geometry.py:269
↓ 43 callersMethodto
Copy data to the specified device
omnivggt/utils/general.py:130
↓ 36 callersMethodmean
(self, min_size=1)
omnivggt/utils/po_utils/misc.py:52
↓ 24 callersMethodadd_pointcloud
(self, pts3d, color=(0,0,0), mask=None, denoise=False)
omnivggt/viz.py:139
↓ 24 callersFunctionrgb
(ftensor, true_shape=None)
omnivggt/utils/image.py:93
↓ 23 callersMethodadd_camera
(self, pose_c2w, focal=None, color=(0, 0, 0), image=None, imsize=None, cam_size=0.03)
omnivggt/viz.py:192
↓ 23 callersFunctiondepth_to_world_coords_points
Converts a depth map to world coordinates (HxWx3) given the camera extrinsic and intrinsic. Returns both the world coordinates and the interm
omnivggt/utils/geometry.py:183
↓ 23 callersFunctionis_good_type
returns (is_good, err_msg)
omnivggt/datasets/base/base_stereo_view_dataset.py:196
↓ 23 callersFunctiontranspose_to_landscape
(view)
omnivggt/datasets/base/base_stereo_view_dataset.py:214
↓ 22 callersFunctionauto_cam_size
(im_poses)
omnivggt/viz.py:117
↓ 22 callersFunctioncompute_ranking
(extrinsics, lambda_t=1.0, normalize=True, batched=True)
omnivggt/datasets/utils/image_ranking.py:118
↓ 22 callersMethodmax
(self)
omnivggt/datasets/utils/misc.py:76
↓ 22 callersMethodsave_glb
(self, path)
omnivggt/viz.py:218
↓ 21 callersMethod_crop_resize_if_necessary
This function: - first downsizes the image with LANCZOS inteprolation, which is better than bilinear interpolation in
omnivggt/datasets/dl3dv.py:179
↓ 20 callersFunctionimread_cv2
Open an image or a depthmap with opencv-python.
omnivggt/utils/image.py:80
↓ 19 callersFunctionthreshold_depth_map
Thresholds a depth map using percentile-based limits and optional maximum depth clamping. Steps: 1. If `max_depth > 0`, clamp all valu
omnivggt/datasets/utils/misc.py:488
↓ 18 callersMethodsize
(self)
omnivggt/datasets/utils/cropping.py:42
↓ 15 callersMethodresize
(self, *args, **kwargs)
omnivggt/datasets/utils/cropping.py:47
↓ 14 callersFunctioncheck_and_fix_inf_nan
Checks if 'input_tensor' contains inf or nan values and clamps extreme values. Args: input_tensor (torch.Tensor): The loss tenso
omnivggt/utils/general.py:27
↓ 11 callersFunctionto_numpy
(x)
omnivggt/utils/device.py:42
↓ 9 callersFunctionback2color
(i, blacken_zeros=False)
omnivggt/utils/po_utils/improc.py:163
↓ 9 callersMethodload_state_dict
(self, state_dict)
omnivggt/datasets/utils/misc.py:274
↓ 8 callersMethodsumm_rgb
(self, name, ims, blacken_zeros=False, frame_id=None, only_return=False, halfres=False)
omnivggt/utils/po_utils/improc.py:620
↓ 7 callersFunctionpreprocess_color
(x)
omnivggt/utils/po_utils/improc.py:47
↓ 7 callersMethodstate_dict
(self)
omnivggt/datasets/utils/misc.py:271
↓ 6 callersMethodempty
(self)
omnivggt/utils/po_utils/misc.py:98
↓ 6 callersFunctionslice_expand_and_flatten
Processes specialized tokens with shape (1, 2, X, C) for multi-frame processing: 1) Uses the first position (index=0) for the first frame onl
omnivggt/models/aggregator.py:343
↓ 5 callersMethodcrop
(self, *args, **kwargs)
omnivggt/datasets/utils/cropping.py:50
↓ 5 callersFunctioninvalid_to_nans
(arr, valid_mask, ndim=999)
omnivggt/utils/misc.py:125
↓ 5 callersFunctionmake_traj
(args)
omnivggt/utils/vo_eval.py:151
↓ 5 callersFunctionsplit_intrinsics
(K)
omnivggt/utils/po_utils/geom.py:41
↓ 5 callersMethodsumm_rgbs
(self, name, ims, frame_ids=None, blacken_zeros=False, only_return=False)
omnivggt/utils/po_utils/improc.py:594
↓ 4 callersFunction_make_fusion_block
(features: int, size: int = None, has_residual: bool = True, groups: int = 1)
omnivggt/heads/dpt_head.py:312
↓ 4 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/dl3dv.py:171
↓ 4 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/heads/datasets/dl3dv.py:170
↓ 4 callersFunctioncheck_valid_tensor
Check if a tensor contains NaN or Inf values and log a warning if found. Args: input_tensor: The tensor to check name: N
omnivggt/utils/normalization.py:14
↓ 4 callersMethodmedian
(self)
omnivggt/datasets/utils/misc.py:62
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
omnivggt/layers/vision_transformer.py:214
↓ 4 callersMethodto_pil
(self)
omnivggt/datasets/utils/cropping.py:38
↓ 4 callersMethodupdate
(self, val, n=1)
omnivggt/utils/general.py:276
↓ 3 callersMethod_forward_impl
Implementation of the forward pass through the DPT head. This method processes a specific chunk of frames from the sequence.
omnivggt/heads/dpt_head.py:185
↓ 3 callersMethod_process_global_attention
Process global attention blocks. We keep tokens in shape (B, S*P, C).
omnivggt/models/aggregator.py:312
↓ 3 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/blendedmvs.py:146
↓ 3 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/dynamic_replica.py:156
↓ 3 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/co3d.py:178
↓ 3 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/mapfree.py:161
↓ 3 callersMethodadd
(self, val)
omnivggt/utils/general.py:84
↓ 3 callersFunctionbase_pose_act
Apply basic activation function to pose parameters. Args: pose_enc: Tensor containing encoded pose parameters act_type: Acti
omnivggt/heads/head_act.py:38
↓ 3 callersFunctioncrop_img
(img, size, square_ok=False, nearest=False, crop=True)
omnivggt/utils/image.py:122
↓ 3 callersMethoddraw_circ_on_images_py
(self, rgbs, traj, vis, S=50, linewidth=1, show_dots=False, cmap=None, maxdist=None)
omnivggt/utils/po_utils/improc.py:1389
↓ 3 callersMethoddraw_circs_on_image_py
(self, rgb, xy, colors=None, linewidth=10, radius=3, show_dots=False, maxdist=None)
omnivggt/utils/po_utils/improc.py:1348
↓ 3 callersFunctiondraw_frame_id_on_vis
(vis, frame_id, scale=0.5, left=5, top=20)
omnivggt/utils/po_utils/improc.py:400
↓ 3 callersMethoddraw_traj_on_image_py
(self, rgb, traj, S=50, linewidth=1, show_dots=False, show_lines=True, cmap='coolwarm', val=None, maxdist=None
omnivggt/utils/po_utils/improc.py:1271
↓ 3 callersFunctionextri_intri_to_pose_encoding
Convert camera extrinsics and intrinsics to a compact pose encoding. This function transforms camera parameters into a unified pose encoding form
omnivggt/utils/pose_enc.py:11
↓ 3 callersFunctiongeotrf
Apply a geometric transformation to a list of 3-D points. H: 3x3 or 4x4 projection matrix (typically a Homography) p: numpy/torch/tuple of c
omnivggt/utils/geometry.py:460
↓ 3 callersFunctionget_feat_pca
(feat, valid=None)
omnivggt/utils/po_utils/improc.py:141
↓ 3 callersFunctionget_size_from_box2d
(box2d)
omnivggt/utils/po_utils/geom.py:313
↓ 3 callersFunctionget_world_size
()
omnivggt/datasets/utils/misc.py:204
↓ 3 callersFunctioninverse_log_transform
Apply inverse log transform: sign(y) * (exp(|y|) - 1) Args: y: Input tensor Returns: Transformed tensor
omnivggt/heads/head_act.py:115
↓ 3 callersFunctionis_dist_avail_and_initialized
()
omnivggt/datasets/utils/misc.py:196
↓ 3 callersFunctionsel
(x)
omnivggt/datasets/base/base_stereo_view_dataset.py:207
↓ 3 callersMethodsumm_gif
(self, name, tensor, blacken_zeros=False)
omnivggt/utils/po_utils/improc.py:474
↓ 3 callersMethodsumm_oned
(self, name, im, bev=False, fro=False, logvis=False, max_val=0, max_along_y=False, norm=True, frame_id=None, o
omnivggt/utils/po_utils/improc.py:747
↓ 3 callersFunctiontodevice
Transfer some variables to another device (i.e. GPU, CPU:torch, CPU:numpy). batch: list, tuple, dict of tensors or other things device: pyto
omnivggt/utils/device.py:11
↓ 2 callersMethod__init__
( self, dim: int, num_heads: int, mlp_ratio: float = 4.0, qkv_bias: bo
omnivggt/layers/block.py:28
↓ 2 callersMethod__init__
( self, dim_in: int, patch_size: int = 14, output_dim: int = 4, activa
omnivggt/heads/dpt_head.py:43
↓ 2 callersMethod_apply_1d_rope
Applies 1D rotary position embeddings along one dimension. Args: tokens: Input token features. positions: Position in
omnivggt/layers/rope.py:133
↓ 2 callersMethod_apply_pos_embed
Apply positional embedding to tensor x.
omnivggt/heads/dpt_head.py:262
↓ 2 callersFunction_convert
(input_, type_)
omnivggt/utils/po_utils/improc.py:16
↓ 2 callersMethod_dispatch
(self, func, *args, **kwargs)
omnivggt/datasets/utils/cropping.py:53
↓ 2 callersMethod_match_dtype
(self, x, reference)
omnivggt/models/omnivggt_aggregator.py:87
↓ 2 callersMethod_process_frame_attention
Process frame attention blocks. We keep tokens in shape (B*S, P, C).
omnivggt/models/omnivggt_aggregator.py:422
↓ 2 callersFunction_resize_pil_image
(img, long_edge_size, nearest=False)
omnivggt/utils/image.py:112
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/scannet.py:172
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/mvs_synth.py:170
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/vkitti.py:176
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/tartanair.py:160
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/uasol.py:170
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/arkitscenes_high.py:145
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/megadepth.py:169
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/kubric.py:167
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/mp3d.py:169
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/hypersim.py:179
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/scannetppv2.py:179
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/bedlam.py:148
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/spring.py:170
↓ 2 callersMethod_save_paths_to_json
(self, paths, filename)
omnivggt/datasets/unreal4k.py:176
↓ 2 callersFunctionadd_scene_cam
(scene, pose_c2w, edge_color, image=None, focal=None, imsize=None, screen_width=0.03, marke
omnivggt/viz.py:258
↓ 2 callersFunctioncat
(a, b)
omnivggt/viz.py:334
↓ 2 callersFunctioncat_3d
(vecs)
omnivggt/viz.py:25
↓ 2 callersFunctioncustom_interpolate
Custom interpolate to avoid INT_MAX issues in nn.functional.interpolate.
omnivggt/heads/dpt_head.py:472
↓ 2 callersFunctiondepthmap_to_absolute_camera_coordinates
Args: - depthmap (HxW array): - camera_intrinsics: a 3x3 matrix - camera_pose: a 4x3 or 4x4 cam2world matrix Returns:
omnivggt/utils/geometry.py:126
↓ 2 callersFunctiondownload_file_from_url
Downloads a file from a Hugging Face model repo, handling redirects.
visual_util.py:493
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, pos=No
omnivggt/layers/block.py:159
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
omnivggt/layers/block.py:236
↓ 2 callersFunctionfilter_by_quantile
Filter loss tensor by keeping only values below a certain quantile threshold. This helps remove outliers that could destabilize training
omnivggt/loss.py:564
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
omnivggt/layers/block.py:212
↓ 2 callersFunctionget_centroid_from_box2d
(box2d)
omnivggt/utils/po_utils/geom.py:278
next →1–100 of 660, ranked by callers