MCPcopy Create free account

hub / github.com/Atrovast/THGS / functions

Functions879 in github.com/Atrovast/THGS

↓ 1 callersFunctionis_permutation
Checks whether a 1D tensor of indices is a permutation.
ext/spt/utils/tensor.py:78
↓ 1 callersFunctionis_pyg_edge_format
Check whether edge_index follows pytorch geometric graph edge format: a [2, N] torch.LongTensor.
ext/spt/utils/graph.py:19
↓ 1 callersMethodjudge_connect_torch_opt
(self, adj, p1_id, p2_id, thres_connect,
merge_proj.py:420
↓ 1 callersFunctionknn_1_graph
Search k-NN for a 3D point cloud xyz and convert the output into torch_geometric's `edge_index`, `edge_attr` format. This search differs from
ext/spt/utils/neighbors.py:90
↓ 1 callersFunctionlength
(x, eps=1e-20)
gui/cam_utils.py:94
↓ 1 callersFunctionlerf
Using the top 7 prompt list to evaluate the mask of replica.
scripts/eval_seg.py:34
↓ 1 callersMethodload
Read an HDF5 file and return its content as a Data object. NB: if relevant, a Batch object will be returned. :param f: h5 file path
ext/spt/data/data.py:647
↓ 1 callersFunctionloadCam
(args, id, cam_info, resolution_scale)
utils/camera_utils.py:22
↓ 1 callersMethodload_model
(self)
utils/vlm_utils.py:21
↓ 1 callersMethodload_new_eval_data
(self, scene_path)
gui/main.py:200
↓ 1 callersMethodload_new_scene
(self, scene_path)
gui/main.py:205
↓ 1 callersFunctionload_ply
(path, pos_center=torch.tensor([0, 0, 0]), semantic=None, use_normal=False)
sp_partition.py:28
↓ 1 callersFunctionload_tensor_dict
Load a dictionary of torch.Tensor from an HDF5 file. :param f: h5 file path of h5py.File or h5py.Group or h5py.Dataset :param idx: int, list,
ext/spt/utils/io.py:145
↓ 1 callersFunctionlook_at
(campos, target, opengl=True)
gui/cam_utils.py:105
↓ 1 callersFunctionloss_with_sample_weights
(criterion, pred, y, weights)
ext/spt/utils/loss.py:7
↓ 1 callersFunctionlpips
r"""Function that measures Learned Perceptual Image Patch Similarity (LPIPS). Arguments: x, y (torch.Tensor): the input tensors to co
lpipsPyTorch/__init__.py:6
↓ 1 callersFunctionmain_3dovs
(scene_list, path_gt, path_pred)
scripts/eval_seg.py:116
↓ 1 callersFunctionmain_lerf
(scene_list, path_gt, path_pred)
scripts/eval_seg.py:72
↓ 1 callersFunctionmarching_cubes_with_contraction
( sdf, resolution=512, bounding_box_min=(-1.0, -1.0, -1.0), bounding_box_max=(1.0, 1.0, 1.0),
utils/mcube_utils.py:17
↓ 1 callersFunctionmask_nms
Perform mask non-maximum suppression (NMS) on a set of masks based on their scores. Args: masks (torch.Tensor): has shape (num_m
scripts/image_encoding.py:218
↓ 1 callersFunctionmasks_update
(*args, **kwargs)
scripts/image_encoding.py:284
↓ 1 callersMethodmerge_small_segs_torch
postprocess segmentation results by merging small regions into neighbor regions with high affinity :param seg_labels: (s,), resulting labels
merge_proj.py:448
↓ 1 callersFunctionmkdir_p
(folder_path)
utils/system_utils.py:16
↓ 1 callersFunctionmlp_model
Fit an MLP to a point cloud. Assuming the point cloud mostly contains ground points, this function will train an MLP to model the ground surfa
ext/spt/utils/ground.py:194
↓ 1 callersFunctionneighbor_interpolation_model
Model the ground based on a trimmed point cloud carrying ground points only. At inference, a point is associated with its nearest neighbors in
ext/spt/utils/ground.py:129
↓ 1 callersFunctionnormalize_activation
(x, eps=1e-10)
lpipsPyTorch/modules/utils.py:6
↓ 1 callersFunctionnum_to_natural
code credit: SAM3D
utils/sai3d_utils.py:68
↓ 1 callersFunctionnum_to_natural_torch
(group_ids, void_number=-1)
utils/sai3d_utils.py:99
↓ 1 callersFunctionnumba_randperm
Same as torch.randperm but leveraging numba on CPU. NB: slightly faster than `np.random.permutation(np.arange(n))`
ext/spt/utils/tensor.py:238
↓ 1 callersFunctionoutliers_split
Optionally recursive outlier search. The `xyz_query` and `xyz_search`. Search for points with less than `k_min` neighbors within a radius of `
ext/spt/utils/neighbors.py:224
↓ 1 callersFunctionoversample_partial_neighborhoods
Oversample partial neighborhoods with less than k points. Missing neighbors are indicated by the "-1" index. Remarks - Neighbors and di
ext/spt/utils/neighbors.py:306
↓ 1 callersFunctionpad_img
(img)
scripts/image_encoding.py:201
↓ 1 callersFunctionpartition
(data, filepath, transforms_dict, graph_cut=None, **kwargs)
sp_partition.py:85
↓ 1 callersFunctionpolygon_to_mask
(img_shape, points_list)
test_lerf.py:16
↓ 1 callersFunctionpost_process_mesh
Post-process a mesh to filter out floaters and disconnected parts
utils/mesh_utils.py:22
↓ 1 callersMethodpre_compute_relative_cameras
(self)
gui/main.py:349
↓ 1 callersFunctionpre_knn
(data, filepath, transforms_dict, **kwargs)
sp_partition.py:104
↓ 1 callersFunctionprint_config_tree
Prints content of DictConfig using Rich library and its tree structure. Args: cfg (DictConfig): Configuration composed by Hydra.
ext/spt/utils/rich_utils.py:18
↓ 1 callersFunctionprocess_scene_language_features
(dataset : ModelParams, opt : OptimizationParams, iteration : int, pipeline : PipelineParams, feature_level :
graph_weight.py:67
↓ 1 callersMethodproj_gaussian_features
(self, gaussians, views, feature_level, gau2sp)
merge_proj.py:57
↓ 1 callersMethodproj_gaussian_features_x
(self, gaussians, views, feature_level, gau2sp, pt_sp_label)
merge_proj.py:94
↓ 1 callersFunctionpsnr
(img1, img2)
utils/image_utils.py:24
↓ 1 callersFunctionread
()
gaussian_renderer/network_gui.py:56
↓ 1 callersFunctionreadColmapCameras
(cam_extrinsics, cam_intrinsics, images_folder, load_img=False, load_sem=True)
scene/dataset_readers.py:71
↓ 1 callersFunctionreadImages
(renders_dir, gt_dir)
metrics.py:24
↓ 1 callersFunctionread_aggregation
(filename)
ext/spt/utils/scannet.py:67
↓ 1 callersFunctionread_axis_align_matrix
(filename)
ext/spt/utils/scannet.py:86
↓ 1 callersFunctionread_extrinsics_binary
see: src/base/reconstruction.cc void Reconstruction::ReadImagesBinary(const std::string& path) void Reconstruction::WriteImagesBi
scene/colmap_loader.py:180
↓ 1 callersFunctionread_extrinsics_text
Taken from https://github.com/colmap/colmap/blob/dev/scripts/python/read_write_model.py
scene/colmap_loader.py:244
↓ 1 callersFunctionread_intrinsics_binary
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasBinary(const std::string& path) void Reconstruction::ReadCameras
scene/colmap_loader.py:215
↓ 1 callersFunctionread_intrinsics_text
Taken from https://github.com/colmap/colmap/blob/dev/scripts/python/read_write_model.py
scene/colmap_loader.py:156
↓ 1 callersFunctionread_label_mapping
(filename, label_from="raw_category", label_to="nyu40id")
ext/spt/utils/scannet.py:27
↓ 1 callersFunctionread_points3D_binary
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DBinary(const std::string& path) void Reconstruction::WritePoints
scene/colmap_loader.py:125
↓ 1 callersFunctionread_points3D_text
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DText(const std::string& path) void Reconstruction::WritePoints3D
scene/colmap_loader.py:83
↓ 1 callersFunctionread_pth
(points_list)
utils/sai3d_utils.py:714
↓ 1 callersFunctionread_segmentation
(filename)
ext/spt/utils/scannet.py:97
↓ 1 callersMethodregister_dpg
(self)
gui/main.py:512
↓ 1 callersFunctionrender
Render the scene. Background tensor (bg_color) must be on GPU!
gaussian_renderer/__init__.py:19
↓ 1 callersMethodrender_video
(self, save_path, num_step=1)
gui/main.py:1187
↓ 1 callersMethodreplace_tensor_to_optimizer
(self, tensor, name)
scene/gaussian_model.py:330
↓ 1 callersFunctionrepresents_int
if string s represents an int.
ext/spt/utils/scannet.py:18
↓ 1 callersFunctionresize_image
(img, Height, Width)
gui/main.py:37
↓ 1 callersFunctionrgb2hsv
Convert a 2D tensor of RGB colors int [0, 255] or float [0, 1] to HSV format. Credit: https://www.linuxtut.com/en/20819a90872275811439
ext/spt/utils/features.py:8
↓ 1 callersFunctionrgb2lab
Convert a tensor of RGB colors int[0, 255] or float [0, 1] to LAB colors. Reimplemented from: https://gist.github.com/manojpandey/f5ece71
ext/spt/utils/features.py:40
↓ 1 callersFunctionrodrigues_rotation_matrix
Given an axis and a rotation angle, compute the rotation matrix using the Rodrigues formula. Source : https://en.wikipedia.org/wiki/Rodrigues
ext/spt/utils/geometry.py:18
↓ 1 callersFunctionsam_encoder
(image)
scripts/image_encoding.py:299
↓ 1 callersFunctionsava_numpy
(save_path, data)
scripts/image_encoding.py:173
↓ 1 callersMethodsave
Save Data to HDF5 file. :param f: h5 file path of h5py.File or h5py.Group :param y_to_csr: bool Convert 'y' to CSR format
ext/spt/data/data.py:580
↓ 1 callersMethodsave
Save NAG to HDF5 file. :param path: :param y_to_csr: bool Convert 'y' to CSR format before saving. Only applies if
ext/spt/data/nag.py:256
↓ 1 callersMethodsave
Save CSRData to HDF5 file. :param f: h5 file path of h5py.File or h5py.Group :param fp_dtype: torch dtype Data type to wh
ext/spt/data/csr.py:411
↓ 1 callersFunctionsave_dense_to_csr
Compress a 2D tensor with CSR format and save it in an already-open HDF5. :param x: 2D torch.Tensor :param f: h5 file path of h5py.File o
ext/spt/utils/io.py:162
↓ 1 callersFunctionsave_file
Save file in rank zero mode (only on one process in multi-GPU setup).
ext/spt/utils/utils.py:93
↓ 1 callersFunctionsave_img_f32
Save an image (probably a depthmap) to disk as a float32 TIFF.
utils/render_utils.py:278
↓ 1 callersMethodsave_ply
(self, path)
scene/gaussian_model.py:254
↓ 1 callersMethodscale
(self, delta)
gui/cam_utils.py:235
↓ 1 callersFunctionscatter_mean_orientation
Scatter implementation for mean normal orientation computation. When dealing with normals, we care more about the orientation than the sense.
ext/spt/utils/scatter.py:214
↓ 1 callersFunctionsearchForMaxIteration
(folder)
utils/system_utils.py:26
↓ 1 callersMethodsearch_void
Search for clusters and objects with 'void' semantic labels. IMPORTANT: By convention, we assume `y ∈ [0, num_classes-1]` ARE ALL
ext/spt/data/instance.py:459
↓ 1 callersFunctionseed_everything
(seed_value)
scripts/image_encoding.py:334
↓ 1 callersMethodseed_everything
(self)
gui/main.py:269
↓ 1 callersMethodselect
Returns a new CSRData which indexes `self` using entries in `idx`. Supports torch and numpy fancy indexing. :parameter idx: i
ext/spt/data/csr.py:325
↓ 1 callersMethodset_clip_mask
(self)
gui/main.py:329
↓ 1 callersMethodset_pose
(self, c2w)
gui/cam_utils.py:182
↓ 1 callersMethodset_positives
(self, text_list)
scripts/image_encoding.py:88
↓ 1 callersMethodsetup_functions
(self)
scene/gaussian_model.py:26
↓ 1 callersFunctionsingle_plane_model
Model the ground as a single plane using RANSAC. Returns a callable taking an XYZ tensor as input and returning the pointwise elevation.
ext/spt/utils/ground.py:95
↓ 1 callersFunctionsparse_sort_along_direction
Lexicographic sort N-dimensional src points based on index first and the projection of the src values along a direction second.
ext/spt/utils/sparse.py:97
↓ 1 callersMethodsplit_by_main_xy_direction
(data, left=True, right=True)
ext/spt/transforms/sampling.py:421
↓ 1 callersFunctionssim
(img1, img2, window_size=11, size_average=True)
utils/loss_utils.py:43
↓ 1 callersFunctionstring_to_dtype
(string)
ext/spt/utils/tensor.py:128
↓ 1 callersFunctionstrip_lowerdiag
(L)
utils/general_utils.py:64
↓ 1 callersFunctionstrip_lowerdiag
(L)
gui/gs_renderer.py:51
↓ 1 callersFunctionsubedges
Compute the subedges making up each edge between segments. These are needed for superedge features computation. This approach relies on heuris
ext/spt/utils/graph.py:83
↓ 1 callersMethodtarget_label_histogram
Compute the target histogram for semantic segmentation. That is, for each cluster, the histogram of pointwise labels of its overlaps.
ext/spt/data/instance.py:624
↓ 1 callersFunctionto_cam_open3d
(viewpoint_stack)
utils/mesh_utils.py:45
↓ 1 callersMethodto_data_list
Reconstruct the list of `Data` objects that were passed to `Batch.from_data_list()`. This extends the behavior of PyG's `to_data_list
ext/spt/data/data.py:924
↓ 1 callersFunctiontrace_update
(mode)
ext/spt/visualization/visualization.py:948
↓ 1 callersFunctiontraining
(dataset, pipe)
test_lerf.py:23
↓ 1 callersFunctiontransform_poses_pca
Transforms poses so principal components lie on XYZ axes. Args: poses: a (N, 3, 4) array containing the cameras' camera to world transforms.
utils/render_utils.py:76
↓ 1 callersFunctionvisualize_3d
3D data interactive visualization. :param input: `Data` or `NAG` object :param keys: `List(str)` or `str` By default, the following a
ext/spt/visualization/visualization.py:17
← previousnext →301–400 of 879, ranked by callers