Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Atrovast/THGS
/ functions
Functions
879 in github.com/Atrovast/THGS
⨍
Functions
879
◇
Types & classes
117
↓ 1 callers
Function
is_permutation
Checks whether a 1D tensor of indices is a permutation.
ext/spt/utils/tensor.py:78
↓ 1 callers
Function
is_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 callers
Method
judge_connect_torch_opt
(self, adj, p1_id, p2_id, thres_connect,
merge_proj.py:420
↓ 1 callers
Function
knn_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 callers
Function
length
(x, eps=1e-20)
gui/cam_utils.py:94
↓ 1 callers
Function
lerf
Using the top 7 prompt list to evaluate the mask of replica.
scripts/eval_seg.py:34
↓ 1 callers
Method
load
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 callers
Function
loadCam
(args, id, cam_info, resolution_scale)
utils/camera_utils.py:22
↓ 1 callers
Method
load_model
(self)
utils/vlm_utils.py:21
↓ 1 callers
Method
load_new_eval_data
(self, scene_path)
gui/main.py:200
↓ 1 callers
Method
load_new_scene
(self, scene_path)
gui/main.py:205
↓ 1 callers
Function
load_ply
(path, pos_center=torch.tensor([0, 0, 0]), semantic=None, use_normal=False)
sp_partition.py:28
↓ 1 callers
Function
load_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 callers
Function
look_at
(campos, target, opengl=True)
gui/cam_utils.py:105
↓ 1 callers
Function
loss_with_sample_weights
(criterion, pred, y, weights)
ext/spt/utils/loss.py:7
↓ 1 callers
Function
lpips
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 callers
Function
main_3dovs
(scene_list, path_gt, path_pred)
scripts/eval_seg.py:116
↓ 1 callers
Function
main_lerf
(scene_list, path_gt, path_pred)
scripts/eval_seg.py:72
↓ 1 callers
Function
marching_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 callers
Function
mask_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 callers
Function
masks_update
(*args, **kwargs)
scripts/image_encoding.py:284
↓ 1 callers
Method
merge_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 callers
Function
mkdir_p
(folder_path)
utils/system_utils.py:16
↓ 1 callers
Function
mlp_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 callers
Function
neighbor_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 callers
Function
normalize_activation
(x, eps=1e-10)
lpipsPyTorch/modules/utils.py:6
↓ 1 callers
Function
num_to_natural
code credit: SAM3D
utils/sai3d_utils.py:68
↓ 1 callers
Function
num_to_natural_torch
(group_ids, void_number=-1)
utils/sai3d_utils.py:99
↓ 1 callers
Function
numba_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 callers
Function
outliers_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 callers
Function
oversample_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 callers
Function
pad_img
(img)
scripts/image_encoding.py:201
↓ 1 callers
Function
partition
(data, filepath, transforms_dict, graph_cut=None, **kwargs)
sp_partition.py:85
↓ 1 callers
Function
polygon_to_mask
(img_shape, points_list)
test_lerf.py:16
↓ 1 callers
Function
post_process_mesh
Post-process a mesh to filter out floaters and disconnected parts
utils/mesh_utils.py:22
↓ 1 callers
Method
pre_compute_relative_cameras
(self)
gui/main.py:349
↓ 1 callers
Function
pre_knn
(data, filepath, transforms_dict, **kwargs)
sp_partition.py:104
↓ 1 callers
Function
print_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 callers
Function
process_scene_language_features
(dataset : ModelParams, opt : OptimizationParams, iteration : int, pipeline : PipelineParams, feature_level :
graph_weight.py:67
↓ 1 callers
Method
proj_gaussian_features
(self, gaussians, views, feature_level, gau2sp)
merge_proj.py:57
↓ 1 callers
Method
proj_gaussian_features_x
(self, gaussians, views, feature_level, gau2sp, pt_sp_label)
merge_proj.py:94
↓ 1 callers
Function
psnr
(img1, img2)
utils/image_utils.py:24
↓ 1 callers
Function
read
()
gaussian_renderer/network_gui.py:56
↓ 1 callers
Function
readColmapCameras
(cam_extrinsics, cam_intrinsics, images_folder, load_img=False, load_sem=True)
scene/dataset_readers.py:71
↓ 1 callers
Function
readImages
(renders_dir, gt_dir)
metrics.py:24
↓ 1 callers
Function
read_aggregation
(filename)
ext/spt/utils/scannet.py:67
↓ 1 callers
Function
read_axis_align_matrix
(filename)
ext/spt/utils/scannet.py:86
↓ 1 callers
Function
read_extrinsics_binary
see: src/base/reconstruction.cc void Reconstruction::ReadImagesBinary(const std::string& path) void Reconstruction::WriteImagesBi
scene/colmap_loader.py:180
↓ 1 callers
Function
read_extrinsics_text
Taken from https://github.com/colmap/colmap/blob/dev/scripts/python/read_write_model.py
scene/colmap_loader.py:244
↓ 1 callers
Function
read_intrinsics_binary
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasBinary(const std::string& path) void Reconstruction::ReadCameras
scene/colmap_loader.py:215
↓ 1 callers
Function
read_intrinsics_text
Taken from https://github.com/colmap/colmap/blob/dev/scripts/python/read_write_model.py
scene/colmap_loader.py:156
↓ 1 callers
Function
read_label_mapping
(filename, label_from="raw_category", label_to="nyu40id")
ext/spt/utils/scannet.py:27
↓ 1 callers
Function
read_points3D_binary
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DBinary(const std::string& path) void Reconstruction::WritePoints
scene/colmap_loader.py:125
↓ 1 callers
Function
read_points3D_text
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DText(const std::string& path) void Reconstruction::WritePoints3D
scene/colmap_loader.py:83
↓ 1 callers
Function
read_pth
(points_list)
utils/sai3d_utils.py:714
↓ 1 callers
Function
read_segmentation
(filename)
ext/spt/utils/scannet.py:97
↓ 1 callers
Method
register_dpg
(self)
gui/main.py:512
↓ 1 callers
Function
render
Render the scene. Background tensor (bg_color) must be on GPU!
gaussian_renderer/__init__.py:19
↓ 1 callers
Method
render_video
(self, save_path, num_step=1)
gui/main.py:1187
↓ 1 callers
Method
replace_tensor_to_optimizer
(self, tensor, name)
scene/gaussian_model.py:330
↓ 1 callers
Function
represents_int
if string s represents an int.
ext/spt/utils/scannet.py:18
↓ 1 callers
Function
resize_image
(img, Height, Width)
gui/main.py:37
↓ 1 callers
Function
rgb2hsv
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 callers
Function
rgb2lab
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 callers
Function
rodrigues_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 callers
Function
sam_encoder
(image)
scripts/image_encoding.py:299
↓ 1 callers
Function
sava_numpy
(save_path, data)
scripts/image_encoding.py:173
↓ 1 callers
Method
save
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 callers
Method
save
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 callers
Method
save
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 callers
Function
save_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 callers
Function
save_file
Save file in rank zero mode (only on one process in multi-GPU setup).
ext/spt/utils/utils.py:93
↓ 1 callers
Function
save_img_f32
Save an image (probably a depthmap) to disk as a float32 TIFF.
utils/render_utils.py:278
↓ 1 callers
Method
save_ply
(self, path)
scene/gaussian_model.py:254
↓ 1 callers
Method
scale
(self, delta)
gui/cam_utils.py:235
↓ 1 callers
Function
scatter_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 callers
Function
searchForMaxIteration
(folder)
utils/system_utils.py:26
↓ 1 callers
Method
search_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 callers
Function
seed_everything
(seed_value)
scripts/image_encoding.py:334
↓ 1 callers
Method
seed_everything
(self)
gui/main.py:269
↓ 1 callers
Method
select
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 callers
Method
set_clip_mask
(self)
gui/main.py:329
↓ 1 callers
Method
set_pose
(self, c2w)
gui/cam_utils.py:182
↓ 1 callers
Method
set_positives
(self, text_list)
scripts/image_encoding.py:88
↓ 1 callers
Method
setup_functions
(self)
scene/gaussian_model.py:26
↓ 1 callers
Function
single_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 callers
Function
sparse_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 callers
Method
split_by_main_xy_direction
(data, left=True, right=True)
ext/spt/transforms/sampling.py:421
↓ 1 callers
Function
ssim
(img1, img2, window_size=11, size_average=True)
utils/loss_utils.py:43
↓ 1 callers
Function
string_to_dtype
(string)
ext/spt/utils/tensor.py:128
↓ 1 callers
Function
strip_lowerdiag
(L)
utils/general_utils.py:64
↓ 1 callers
Function
strip_lowerdiag
(L)
gui/gs_renderer.py:51
↓ 1 callers
Function
subedges
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 callers
Method
target_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 callers
Function
to_cam_open3d
(viewpoint_stack)
utils/mesh_utils.py:45
↓ 1 callers
Method
to_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 callers
Function
trace_update
(mode)
ext/spt/visualization/visualization.py:948
↓ 1 callers
Function
training
(dataset, pipe)
test_lerf.py:23
↓ 1 callers
Function
transform_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 callers
Function
visualize_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
← previous
next →
301–400 of 879, ranked by callers