MCPcopy Create free account

hub / github.com/Atrovast/THGS / functions

Functions879 in github.com/Atrovast/THGS

↓ 2 callersMethod__init__
(self, level='1+', n_min=16, n_max=32)
ext/spt/transforms/sampling.py:928
↓ 2 callersFunction_minimalistic_horizontal_edge_features
Compute the features for horizontal edges, given the edge graph and the level-0 'subedges' making up each edge. The features computed here ar
ext/spt/transforms/graph.py:846
↓ 2 callersMethod_process_single_level
(data, n_min, n_max)
ext/spt/transforms/sampling.py:975
↓ 2 callersMethod_restrict_level
(nag, i_level, num_nodes, num_edges)
ext/spt/transforms/sampling.py:1100
↓ 2 callersMethod_sample_subgraphs
(self, nag, i_level, idx)
ext/spt/transforms/sampling.py:745
↓ 2 callersFunction_set_graph_construction_parameters
Searches for the last occurrence of `OnTheFlyInstanceGraph` among the `on_device_transform` of the dataset and modifies the graph construction
ext/spt/utils/instance.py:1073
↓ 2 callersFunctionavailable_cpu_count
Number of available virtual or physical CPUs on this system, i.e. user/real as output by time(1) when called with an optimally scaling usersp
ext/spt/utils/cpu.py:9
↓ 2 callersFunctionbase_vectors_3d
Compute orthonormal bases for a set of 3D vectors. The 1st base vector is the normalized input vector, while the 2nd and 3rd vectors are const
ext/spt/utils/geometry.py:33
↓ 2 callersFunctionbinary_mask_metrics
(pred_mask, gt_mask)
scripts/eval_seg.py:10
↓ 2 callersMethodbuild_nag_from_multilevel_labels
labels: List of Tensors, each shape = (N,), level-0 point to higher level cluster IDs e.g. [label_lvl0, label_lvl1, label_lvl2]
nag_data.py:72
↓ 2 callersMethodclean
(self)
utils/mesh_utils.py:91
↓ 2 callersFunctionclip_color
(cos_sim, bg_mask, height, width, thresh=0.7, res_finetuned=False, coloring=False, device='cuda')
utils/image_utils.py:192
↓ 2 callersFunctioncluster_radius_nn_graph
Compute the radius neighbors of clusters. Two clusters are considered neighbors if 2 of their points are distant of `gap` of less. The un
ext/spt/utils/neighbors.py:377
↓ 2 callersMethodcount
(self)
ext/spt/data/instance.py:124
↓ 2 callersMethodcpu
Move the NAG with all Data in it to CPU.
ext/spt/data/data.py:200
↓ 2 callersFunctioncsr_to_dense
Convert a CSR matrix to its dense counterpart of a given shape.
ext/spt/utils/sparse.py:54
↓ 2 callersMethoddensification_postfix
(self, new_xyz, new_features_dc, new_features_rest, new_semantics, new_opacities, new_scaling, new_rotation)
scene/gaussian_model.py:402
↓ 2 callersMethoddetach
Detach all tensors in the CSRData.
ext/spt/data/csr.py:123
↓ 2 callersMethoddevice
Returns the device on which the logits are stored, assuming all other output variables held by the object are also on the same device.
ext/spt/utils/output_semantic.py:38
↓ 2 callersFunctionedge_to_superedge
Convert point-level edges into superedges between clusters, based on point-to-cluster indexing 'super_index'. Optionally 'edge_attr' can be pa
ext/spt/utils/graph.py:40
↓ 2 callersFunctionedge_wise_points
Given a graph of point segments, compute the concatenation of points belonging to either source or target segments for each edge of the segmen
ext/spt/utils/edge.py:22
↓ 2 callersFunctionexpand
(source=True)
ext/spt/utils/edge.py:65
↓ 2 callersMethodextract_gaussian_features
(self, gaussians, views, feature_level)
merge_proj.py:147
↓ 2 callersFunctionf
(s)
ext/spt/utils/nn.py:76
↓ 2 callersFunctionfast_repeat
Same as torch.repeat_interleave but relies numpy on CPU. This saves a little bit of time when manipulating large tensors on CPU. ``` from
ext/spt/utils/tensor.py:312
↓ 2 callersFunctionfetchPly
(path)
scene/dataset_readers.py:124
↓ 2 callersFunctionfirst_component
(source=True)
ext/spt/utils/graph.py:336
↓ 2 callersFunctionfocus_point_fn
Calculate nearest point to all focal axes in poses.
utils/render_utils.py:68
↓ 2 callersFunctiongetNerfppNorm
(cam_info)
scene/dataset_readers.py:48
↓ 2 callersMethodgetTestCameras
(self, scale=1.0)
scene/__init__.py:93
↓ 2 callersFunctiongetWorld2View2
(R, t, translate=np.array([.0, .0, .0]), scale=1.0)
utils/graphics_utils.py:38
↓ 2 callersMethodget_base_class
Helps `self.from_list()` and `self.to_list()` identify which classes to use for batch collation and un-collation.
ext/spt/data/cluster.py:33
↓ 2 callersFunctionget_c2w_with_RT
(R,T)
gui/cam_utils.py:60
↓ 2 callersFunctionget_common_label
get the most common label from a group of labels (except for 0) assign a new label when there exist three or more major label in a seg
utils/sai3d_utils.py:898
↓ 2 callersFunctionget_expon_lr_func
Copied from Plenoxels Continuous learning rate decay function. Adapted from JaxNeRF The returned rate is lr_init when step=0 and lr_fina
utils/general_utils.py:29
↓ 2 callersMethodget_related_gaussian
sim: List of Tensors, each shape like superpoint topk: int, number of top similar points to consider level: int, choose certa
nag_data.py:21
↓ 2 callersFunctiongradient_map
(image)
utils/image_utils.py:28
↓ 2 callersFunctioninliers_outliers_splits
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:241
↓ 2 callersFunctionis_debug_enabled
r"""Returns :obj:`True`, if the debug mode is enabled.
ext/spt/debug.py:6
↓ 2 callersFunctionis_trimmed
Check if the graph is 'trimmed': same as coalescing with the additional constraint that (i, j) and (j, i) edges are duplicates. :param edge_i
ext/spt/utils/graph.py:427
↓ 2 callersFunctionlistify
Convert `obj` to nested lists.
ext/spt/utils/list.py:4
↓ 2 callersFunctionload_csr_to_dense
Read an HDF5 file of group produced using `dense_to_csr_hdf5` and return the dense tensor. An optional idx can be passed to only read correspo
ext/spt/utils/io.py:187
↓ 2 callersFunctionload_img
Load an image and cast to float32.
utils/render_utils.py:196
↓ 2 callersMethodload_ply
(self, path)
scene/gaussian_model.py:279
↓ 2 callersFunctionmin_max_normalize
Normalize an array of floats in a unit-hypercube of shared scale. Typically useful for visualizing float features with colors
ext/spt/utils/color.py:129
↓ 2 callersMethodoracle
Compute the oracle predictions for instance and panoptic segmentation. This is a proxy for the highest achievable performance with the
ext/spt/data/instance.py:686
↓ 2 callersMethodorbit
(self, dx, dy, dz=0)
gui/cam_utils.py:223
↓ 2 callersFunctionpurge
(dir, pattern)
scripts/setup_dependencies.py:58
↓ 2 callersFunctionpurge
(dir, pattern)
ext/spt/setup_dependencies.py:59
↓ 2 callersFunctionqvec2rotmat
(qvec)
scene/colmap_loader.py:43
↓ 2 callersFunctionreadCamerasFromTransforms
(path, transformsfile, white_background, extension=".png", load_sem=True)
scene/dataset_readers.py:196
↓ 2 callersFunctionread_mesh_vertices
read XYZ RGB for each vertex. Note: RGB values are in 0-255
ext/spt/utils/scannet.py:39
↓ 2 callersMethodrender_once
(self, width, height, camera=None, gaussain_scale_factor=None)
gui/main.py:1265
↓ 2 callersFunctionrender_point
Render the scene. Background tensor (bg_color) must be on GPU!
gaussian_renderer/__init__.py:164
↓ 2 callersFunctionsafe_state
(silent)
utils/general_utils.py:112
↓ 2 callersFunctionsave_img_u8
Save an image (probably RGB) in [0, 1] to disk as a uint8 PNG.
utils/render_utils.py:270
↓ 2 callersFunctionsave_tensor_dict
Save torch.Tensor to HDF5 file. :param d: dictionary of 2D torch.Tensors :param f: h5 file path of h5py.File or h5py.Group :param key: st
ext/spt/utils/io.py:121
↓ 2 callersFunctionscatter_mean_weighted
Helper for scatter_mean with weights
ext/spt/utils/scatter.py:14
↓ 2 callersFunctionscatter_nearest_neighbor
For each pair of segments indicated in edge_index, find the 2 closest points between the two segments. NB: this is an approximate, iterative
ext/spt/utils/scatter.py:93
↓ 2 callersFunctionscatter_pca
Scatter implementation for PCA. Returns eigenvalues and eigenvectors for each group in idx. If x has shape N1xD and idx covers indices in [0,
ext/spt/utils/scatter.py:38
↓ 2 callersFunctionselect_in_bbox
(source=True)
ext/spt/utils/graph.py:277
↓ 2 callersMethodsemantic_pred
Semantic predictions on the level-1 superpoint. Final semantic segmentation predictions are the argmax of the first-level partition l
ext/spt/utils/output_semantic.py:76
↓ 2 callersFunctionsend_json_data
(conn, data)
gaussian_renderer/network_gui.py:35
↓ 2 callersFunctionshow
Interactive data visualization. :param input: Data or NAG object :param path: str Path to save the visualization into a sharable HTML
ext/spt/visualization/visualization.py:1071
↓ 2 callersFunctionsort_by_first_component
(source=True)
ext/spt/utils/graph.py:364
↓ 2 callersFunctionsparse_sample
Compute indices to sample elements in a set of size `idx.shape`, based on which segment they belong to in `idx`. The sampling operation is ru
ext/spt/utils/sparse.py:132
↓ 2 callersFunctionstep
(source=True)
ext/spt/utils/scatter.py:168
↓ 2 callersFunctionstorePly
(path, xyz, rgb)
scene/dataset_readers.py:132
↓ 2 callersMethodtest_step
(self)
gui/main.py:454
↓ 2 callersFunctionto_anchor_base
(source=True)
ext/spt/utils/graph.py:218
↓ 2 callersFunctionto_byte_rgb
(rgb)
ext/spt/utils/color.py:20
↓ 2 callersMethodto_list
Return the Data list
ext/spt/data/nag.py:112
↓ 2 callersFunctionto_str
(val)
utils/linetimer.py:153
↓ 2 callersFunctiontorch_calcu_all_similar_optimized
labels1: (s1, lr-1) labels2: (s2, lr-1)
utils/sai3d_utils.py:284
↓ 2 callersFunctiontrace
Render the scene. Background tensor (bg_color) must be on GPU!
gaussian_renderer/__init__.py:312
↓ 2 callersMethodtraining_setup
(self, training_args)
scene/gaussian_model.py:157
↓ 2 callersFunctionunpad_poses
Remove the homogeneous bottom row from [..., 4, 4] pose matrices.
utils/render_utils.py:38
↓ 2 callersFunctionviewmatrix
Construct lookat view matrix.
utils/render_utils.py:59
↓ 2 callersFunctionxy_partition
Partition a point cloud based on a regular XY grid. Returns, for each point, the index of the grid cell it falls into. :param pos: Tensor
ext/spt/utils/partition.py:8
↓ 1 callersFunctionRGB2SH
(rgb)
utils/sh_utils.py:114
↓ 1 callersFunction_3dovs
Using the top 7 prompt list to evaluate the mask of replica.
scripts/eval_seg.py:81
↓ 1 callersMethod__init__
(self)
scene/semantic_model.py:5
↓ 1 callersMethod__init__
(self, data_list: List[Data])
ext/spt/data/nag.py:22
↓ 1 callersMethod__init__
Initialize the pointers and values. Values are passed as args and stored in a list. They are expected to all have the same size and s
ext/spt/data/csr.py:47
↓ 1 callersFunction_compute_cluster_features
( i_level, nag, n_max=32, n_min=5, keys=None, mean_keys=None,
ext/spt/transforms/graph.py:152
↓ 1 callersFunction_embed_clip_sam_tiles
(image, sam_encoder)
scripts/image_encoding.py:179
↓ 1 callersMethod_flip_normal
(normal, axis)
ext/spt/transforms/geometry.py:240
↓ 1 callersFunction_forward_multi_partition
Local helper to compute multiple instance partitions from the same input data, based on diverse partition parameter settings.
ext/spt/utils/instance.py:1117
↓ 1 callersMethod_func
(self, rgb)
ext/spt/transforms/point.py:419
↓ 1 callersFunction_group_data
Group data based on indices in cluster. The option ``mode`` controls how data gets aggregated within each cluster. By default, some special k
ext/spt/transforms/sampling.py:180
↓ 1 callersFunction_horizontal_graph_by_delaunay
( i_level, nag, n_max_edge=64, n_min=5, max_dist=-1, keys=None
ext/spt/transforms/graph.py:363
↓ 1 callersFunction_horizontal_graph_by_radius
Search neighboring segments with points distant from `gap`or less. :param nag: NAG Hierarchical structure :param k_min: int, List
ext/spt/transforms/graph.py:712
↓ 1 callersFunction_horizontal_graph_by_radius_for_single_level
:param nag: :param i_level: :param k_min: :param k_max: :param gap: :param trim: :param cycles: :param chunk_size:
ext/spt/transforms/graph.py:770
↓ 1 callersMethod_infer_collation
Populate `self._slice_dict` and `self._inc_dict` with inferred collation for missing keys. Unlike PyG, we want to handle attributes t
ext/spt/data/data.py:967
↓ 1 callersFunction_instance_cut_pursuit
Partition an instance graph using cut-pursuit. :param node_x: Tensor of shape [num_nodes, num_dim] Node features :param node_logits:
ext/spt/utils/instance.py:338
↓ 1 callersFunction_on_the_fly_horizontal_edge_features
Compute all edges and edge features for a horizontal graph, given a trimmed graph and some precomputed edge attributes.
ext/spt/transforms/graph.py:1000
↓ 1 callersFunction_on_the_fly_vertical_edge_features
Compute edge features for a vertical graph, given child and parent nodes.
ext/spt/transforms/graph.py:1200
↓ 1 callersMethod_process
(self, x: _IN_TYPE)
ext/spt/transforms/transforms.py:17
↓ 1 callersMethod_process_edge_features_for_single_level
( self, nag, i_level, se_ratio, se_min, cycles, margin, chunk_size)
ext/spt/transforms/graph.py:672
↓ 1 callersMethod_process_single_key
(self, data, key, to)
ext/spt/transforms/data.py:201
← previousnext →101–200 of 879, ranked by callers