MCPcopy Create free account

hub / github.com/Anttwo/MILo / functions

Functions505 in github.com/Anttwo/MILo

↓ 35 callersMethodclone
(self, selected_pts_mask)
milo/scene/gaussian_model.py:1305
↓ 24 callersMethodgetTrainCameras
(self, scale=1.0)
milo/scene/__init__.py:89
↓ 21 callersMethodgetTrainCameras_warn_up
(self, iteration, warn_until_iter, scale=1.0, scale2=2.0)
milo/scene/__init__.py:95
↓ 18 callersMethodextract
(self, args)
milo/arguments/__init__.py:40
↓ 15 callersFunctioninit_cdf_mask
(importance, thres=1.0)
milo/scene/gaussian_model.py:34
↓ 15 callersMethodprune_points
(self, mask)
milo/scene/gaussian_model.py:780
↓ 13 callersFunctionread_next_bytes
Read and unpack the next bytes from a binary file. :param fid: :param num_bytes: Sum of combination of {2, 4, 8}, e.g. 2, 6, 16, 30, etc.
milo/scene/colmap_loader.py:72
↓ 13 callersMethodsave
(self, iteration)
milo/scene/__init__.py:85
↓ 13 callersMethodwrite
(self, x)
milo/utils/general_utils.py:118
↓ 12 callersFunctionfused_ssim
(img1, img2, padding="same", train=True)
submodules/fused-ssim/fused_ssim/__init__.py:34
↓ 11 callersMethodcompute_3D_filter
(self, cameras)
milo/scene/gaussian_model.py:315
↓ 11 callersMethoddevice
(self)
milo/regularization/sdf/depth_fusion.py:261
↓ 10 callersMethodbackward
(ctx, opt_grad)
submodules/fused-ssim/fused_ssim/__init__.py:24
↓ 10 callersFunctioneval_sh
Evaluate spherical harmonics at unit directions using hardcoded SH polynomials. Works with torch/np/jnp. ... Can be 0 or more batch d
milo/utils/sh_utils.py:57
↓ 10 callersFunctionrender_simp
Render the scene. Background tensor (bg_color) must be on GPU!
milo/gaussian_renderer/__init__.py:205
↓ 9 callersFunctionbuild_rotation
(r)
milo/utils/general_utils.py:78
↓ 9 callersMethodget_covariance
(self, scaling_modifier = 1)
milo/scene/gaussian_model.py:372
↓ 9 callersFunctiontransform_points_world_to_view
Transform points from world space to view space. Args: points (torch.Tensor): Should have shape (n_cameras, N, 3). cameras (List[
milo/utils/geometry_utils.py:32
↓ 8 callersFunctioninverse_sigmoid
(x)
milo/utils/general_utils.py:18
↓ 8 callersFunctionnormalize
Normalize a vector.
milo/utils/video_utils.py:36
↓ 7 callersFunctionfocal2fov
(focal, pixels)
milo/utils/graphics_utils.py:79
↓ 7 callersFunctionget_cameras_spatial_extent
(cameras:List[Camera])
milo/utils/camera_utils.py:96
↓ 7 callersFunctionmarching_tetrahedra
r"""Convert discrete signed distance fields encoded on tetrahedral grids to triangle meshes using marching tetrahedra algorithm as described in `
milo/utils/tetmesh.py:141
↓ 7 callersMethodstep
(self, visibility, N)
submodules/diff-gaussian-rasterization_ms/diff_gaussian_rasterization_ms/__init__.py:502
↓ 6 callersMethoddensification_postfix
( self, new_xyz, new_features_dc, new_features_rest, new_opacities, new_scaling, new_rotation,
milo/scene/gaussian_model.py:832
↓ 6 callersMethodintegrate
Integrate a new observation into the TSDF. Args: img (torch.Tensor): Image. Has shape (H, W, 3) or (3, H, W).
milo/regularization/sdf/depth_fusion.py:264
↓ 6 callersFunctionis_in_view_frustum
_summary_ Args: points (torch.Tensor): Tensor with shape (N, 3) cameras (List[Camera]): _description_
milo/utils/geometry_utils.py:177
↓ 5 callersFunctionSH2RGB
(sh)
milo/utils/sh_utils.py:117
↓ 5 callersFunctioncameraList_from_camInfos
(cam_infos, resolution_scale, args)
milo/utils/camera_utils.py:65
↓ 5 callersFunctionflatten_voronoi_features
(voronoi_features:torch.Tensor, n_voronoi_per_gaussians:int=9)
milo/utils/geometry_utils.py:230
↓ 5 callersFunctionfov2focal
(fov, pixels)
milo/utils/graphics_utils.py:73
↓ 5 callersFunctionget_combined_args
(parser : ArgumentParser)
milo/arguments/__init__.py:98
↓ 5 callersMethodload_ply
(self, path)
milo/scene/gaussian_model.py:667
↓ 5 callersFunctionread_trajectory
(filename)
milo/eval/tnt/cull_mesh.py:321
↓ 5 callersMethodtraining_setup
(self, training_args)
milo/scene/gaussian_model.py:539
↓ 4 callersMethod__init__
(self)
milo/lpipsPyTorch/modules/networks.py:89
↓ 4 callersMethodbackward
(ctx, opt_grad)
milo/utils/loss_utils.py:32
↓ 4 callersFunctionbuild_scaling_rotation
(s, r)
milo/utils/general_utils.py:101
↓ 4 callersFunctioncrop_and_downsample
( pcd, crop_volume, down_sample_method="voxel", voxel_size=0.01, trans
milo/eval/tnt/registration.py:113
↓ 4 callersMethodinit_culling
(self, num_views)
milo/scene/gaussian_model.py:1063
↓ 4 callersFunctionl1_loss
(network_output, gt)
milo/utils/loss_utils.py:39
↓ 4 callersFunctionpositional_encoding
(positions, freqs)
milo/eval/mesh_nvs/tensorf_utils.py:6
↓ 4 callersMethodrender_depth
(self, means3D, means2D, opacities, culling, dc = None, shs = None, colors_precomp = None, scales = None, rota
submodules/diff-gaussian-rasterization_ms/diff_gaussian_rasterization_ms/__init__.py:457
↓ 4 callersMethodreturn_field_values
(self)
milo/regularization/sdf/depth_fusion.py:391
↓ 4 callersFunctionsafe_state
(silent)
milo/utils/general_utils.py:112
↓ 4 callersMethodsample_surface_gaussians
(self, scene, render_simp, iteration, args, pipe, background, n_samples, sampling_mask=None)
milo/scene/gaussian_model.py:1488
↓ 4 callersMethodset_occupancy_mode
(self, mode: str)
milo/scene/gaussian_model.py:244
↓ 4 callersFunctiontransform_points
Transforms points X by the affine transform (L, T). A matrix M with shape (..., d+1, d+1) can also be provided, in which case L and T are ext
milo/blender/blender_utils.py:66
↓ 3 callersFunctionPILtoTorch
(pil_image, resolution)
milo/utils/general_utils.py:21
↓ 3 callersFunctionRGB2SH
(rgb)
milo/utils/sh_utils.py:114
↓ 3 callersMethod__init__
( self, verts:torch.Tensor, faces:torch.Tensor, verts_colors:torch.Tensor=N
milo/scene/mesh.py:52
↓ 3 callersMethod__init__
(self,TVLoss_weight=1)
milo/eval/mesh_nvs/tensorf_utils.py:301
↓ 3 callersMethod__init__
(self, parser: ArgumentParser, name : str, fill_none = False)
milo/arguments/__init__.py:20
↓ 3 callersFunctionauto_orient_and_center_poses
Orients and centers the poses. We provide two methods for orientation: pca and up. pca: Orient the poses so that the principal component of the p
milo/eval/tnt/help_func.py:33
↓ 3 callersFunctionconvert_occupancy_to_sdf
( occupancy:torch.Tensor, )
milo/regularization/sdf/learnable.py:238
↓ 3 callersFunctionconvert_trajectory_to_pointcloud
(traj)
milo/eval/tnt/trajectory_io.py:16
↓ 3 callersFunctioncpu_deep_copy_tuple
(input_tuple)
submodules/diff-gaussian-rasterization/diff_gaussian_rasterization/__init__.py:17
↓ 3 callersFunctioncpu_deep_copy_tuple
(input_tuple)
submodules/diff-gaussian-rasterization_gof/diff_gaussian_rasterization_gof/__init__.py:17
↓ 3 callersFunctiondepth_to_normal
(view, depth1, depth2=None)
milo/utils/geometry_utils.py:171
↓ 3 callersFunctionextract_gaussian_pivots
Extract pivots from Gaussians, in a differentiable manner. Each Gaussian will spawn 9 pivots. A list of indices can be provided to generate pi
milo/functional/pivots.py:178
↓ 3 callersMethodgetTestCameras
(self, scale=1.0)
milo/scene/__init__.py:92
↓ 3 callersMethodget_tetra_points
( self, let_gradients_flow:bool=False, **kwargs )
milo/scene/gaussian_model.py:528
↓ 3 callersFunctionrender_imp
Render the scene. Background tensor (bg_color) must be on GPU!
milo/gaussian_renderer/__init__.py:110
↓ 3 callersMethodrender_simp
(self, means3D, means2D, opacities, culling, dc = None, shs = None, colors_precomp = None, scales = None, rota
submodules/diff-gaussian-rasterization_ms/diff_gaussian_rasterization_ms/__init__.py:416
↓ 3 callersMethodset_requires_grad
(self, state: bool)
milo/lpipsPyTorch/modules/networks.py:46
↓ 3 callersFunctionssim
(img1, img2, window_size=11, size_average=True)
submodules/fused-ssim/tests/test.py:24
↓ 2 callersFunctionL1_loss_appearance
(image, gt_image, gaussians, view_idx, return_transformed_image=False)
milo/utils/loss_utils.py:92
↓ 2 callersMethod__init__
(self, n_voxels=3000**3, device='cuda', use_mlp=False, app_dim=27, app_n_comp=16, **kargs)
milo/eval/mesh_nvs/mesh_nvs_utils.py:165
↓ 2 callersMethod_get_tetra_points
Get the tetra points of the Gaussian model. Args: downsample_ratio (float, optional): The ratio to downsample the tetra
milo/scene/gaussian_model.py:410
↓ 2 callersMethod_tensor_size
(self,t)
milo/eval/mesh_nvs/tensorf_utils.py:316
↓ 2 callersFunctionbind_gaussians_to_mesh
( means:torch.Tensor, initial_mesh:Meshes, n_verts_per_gaussian:int=8, bind_to_triangles:bool=
milo/blender/editing.py:23
↓ 2 callersMethodcapture
(self)
milo/scene/gaussian_model.py:117
↓ 2 callersMethodclean
(self)
milo/utils/regular_tsdf_utils.py:98
↓ 2 callersFunctioncompute_depth_order_regularization
Computes the depth order regularization loss. Args: iteration: Current training iteration. rendered_depth: Tensor containing
milo/regularization/regularizer/depth_order.py:60
↓ 2 callersFunctioncompute_initial_sdf_with_binary_search
Compute initial SDF values with binary search and linearization. Args: voronoi_points (torch.Tensor): The voronoi points. (N_vor
milo/regularization/sdf/learnable.py:164
↓ 2 callersFunctioncompute_mesh_regularization
Computes the mesh regularization loss and updates the mesh state. Args: iteration: Current training iteration. render_pkg: D
milo/regularization/regularizer/mesh.py:84
↓ 2 callersFunctionconvert_path_to_linux
(path:str)
milo/blender/milo_addon.py:64
↓ 2 callersFunctionconvert_sdf_to_occupancy
( sdf:torch.Tensor, )
milo/regularization/sdf/learnable.py:232
↓ 2 callersFunctioncpu_deep_copy_tuple
(input_tuple)
submodules/diff-gaussian-rasterization_ms/diff_gaussian_rasterization_ms/__init__.py:17
↓ 2 callersFunctioncreate_render_package
( query_props, gs_metadata, start_frame, end_frame, just_render_current_screen=False, )
milo/blender/milo_addon.py:150
↓ 2 callersMethodculling_with_importance_pruning
(self, scene, render_simp, iteration, args, pipe, background)
milo/scene/gaussian_model.py:1449
↓ 2 callersMethoddensify_and_clone
(self, grads, grad_threshold, scene_extent)
milo/scene/gaussian_model.py:894
↓ 2 callersFunctionevaluate_mesh_colors
Evaluate vertex colors using Depth Fusion. Vertices that are not visible won't be assigned a color. Args: views (List[Camera]): List
milo/regularization/sdf/depth_fusion.py:566
↓ 2 callersFunctionevaluate_mesh_colors_all_vertices
Evaluate vertex colors for all vertices of the mesh, including the ones that are not visible. Useful for avoiding artifacts when rendering the mes
milo/regularization/sdf/depth_fusion.py:639
↓ 2 callersFunctionevaluate_mesh_occupancy
Evaluate the TSDF values at the given points using Depth Fusion. Args: points (torch.Tensor): Points at which to compute the TSDF. Has sh
milo/regularization/sdf/depth_fusion.py:503
↓ 2 callersFunctionfetchPly
(path)
milo/scene/dataset_readers.py:107
↓ 2 callersFunctionfind_affine_transform
Finds affine transform (L, T) such that Y = X @ L + T Args: X (torch.Tensor): Has shape (..., N, d) Y (torch.Tensor): Has shape (
milo/blender/blender_utils.py:39
↓ 2 callersFunctionfov2focal
(fov, pixels)
milo/eval/dtu/evaluate_dtu_mesh.py:86
↓ 2 callersFunctiongetNerfppNorm
(cam_info)
milo/scene/dataset_readers.py:45
↓ 2 callersFunctiongetWorld2View2
(R, t, translate=np.array([.0, .0, .0]), scale=1.0)
milo/utils/graphics_utils.py:38
↓ 2 callersFunctionget_gaussian_normals_from_view
(view, gaussians, in_view_space=True)
milo/utils/geometry_utils.py:9
↓ 2 callersFunctionget_gs_metadata
(metadata_name:str)
milo/blender/milo_addon.py:41
↓ 2 callersFunctionget_knn_index
Return the k nearest neighbor indices of points in points2. If points2 is None, return the k nearest neighbor indices of points in points.
milo/blender/blender_utils.py:6
↓ 2 callersFunctionget_mesh_vertex_metadata
(mesh)
milo/blender/milo_addon.py:27
↓ 2 callersFunctionget_parameters_from_model
Returns the parameters of Gaussians. Args: model (GaussianModel): The GaussianModel object. Returns: dict: A dictionary cont
milo/blender/loading.py:25
↓ 2 callersFunctioninitialize_depth_order_supervision
Initializes depth priors using DepthAnythingV2. Args: scene: The scene object containing training cameras. config: Configura
milo/regularization/regularizer/depth_order.py:10
↓ 2 callersFunctioninitialize_mesh_regularization
Initializes components required for mesh regularization. Args: scene: The scene object containing training cameras. config:
milo/regularization/regularizer/mesh.py:41
↓ 2 callersMethodintegrate
(self, points3D, means3D, means2D, opacities, shs = None, colors_precomp = None, scales = None, rotations = No
submodules/diff-gaussian-rasterization/diff_gaussian_rasterization/__init__.py:239
↓ 2 callersFunctionlog_training_progress
( args, iteration:int, log_interval:int, progress_bar, run, # Objects scene, gaussians, pipe, opt,
milo/utils/log_utils.py:161
↓ 2 callersFunctionlpips
r"""Function that measures Learned Perceptual Image Patch Similarity (LPIPS). Arguments: x, y (torch.Tensor): the input tensors to co
milo/lpipsPyTorch/__init__.py:26
next →1–100 of 505, ranked by callers