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
Method
_prune_optimizer
(self, mask)
scene/gaussian_model.py:345
↓ 1 callers
Method
_rotate_normal
(normal, R)
ext/spt/transforms/geometry.py:109
↓ 1 callers
Method
_scale_normal
(normal, scale)
ext/spt/transforms/geometry.py:183
↓ 1 callers
Function
_ssim
(img1, img2, window, window_size, channel, size_average=True)
utils/loss_utils.py:53
↓ 1 callers
Method
add_dpg_list
(self, camera_list, step=10)
gui/main.py:1115
↓ 1 callers
Method
assign_label
assign instance labels for all points in the scene :param points: (N, 3), points in world coordinate :param thres_connect: t
merge_proj.py:218
↓ 1 callers
Method
assign_seg_label_torch
优化后的超点区域生长算法
merge_proj.py:295
↓ 1 callers
Function
atomic_to_histogram
Convert point-level positive integer data to histograms of segment-level labels, based on idx. :param item: 1D or 2D torch.Tensor :param
ext/spt/utils/histogram.py:39
↓ 1 callers
Function
average_pose
New pose using average position, z-axis, and up vector of input poses.
utils/render_utils.py:51
↓ 1 callers
Function
build_rotation
(r)
gui/gs_renderer.py:86
↓ 1 callers
Function
build_scaling_rotation
(s, r)
utils/general_utils.py:101
↓ 1 callers
Function
calcu_similar
:param label0: (lr-1,), label distribuion of one seg :param labels1: (neigh,lr-1), label distribution of neighbors of the seg above
utils/sai3d_utils.py:452
↓ 1 callers
Function
camera_to_JSON
(id, camera : Camera)
utils/camera_utils.py:82
↓ 1 callers
Function
cast_numpyfy
Convert torch.Tensor to numpy while respecting some constraints on output dtype. Integer tensors will be cast to the smallest possible integer
ext/spt/utils/tensor.py:174
↓ 1 callers
Function
cast_to_optimal_integer_type
Cast an integer tensor to the smallest possible integer dtype preserving its precision.
ext/spt/utils/tensor.py:153
↓ 1 callers
Method
cat_select
Does part of what `Data.select()` does but in an ugly way. This is mostly intended for the `DataLoader` to be able to load `NAG` and s
ext/spt/data/nag.py:390
↓ 1 callers
Method
cat_tensors_to_optimizer
(self, tensors_dict)
scene/gaussian_model.py:380
↓ 1 callers
Method
clone
Shallow copy of self. This may cause issues for certain types of downstream operations, but it saves time and memory. In practice, it
ext/spt/data/csr.py:188
↓ 1 callers
Function
close_loggers
Makes sure all loggers closed properly (prevents logging failure during multirun).
ext/spt/utils/utils.py:201
↓ 1 callers
Function
cmap
Apply Turbo colormap to a normalized value tensor. For cuda acceleration, the colormap is preloaded as a tensor. Args: value (to
utils/image_utils.py:173
↓ 1 callers
Function
colormap
(map, cmap="turbo")
utils/image_utils.py:39
↓ 1 callers
Method
compute_main_xy_direction
(data)
ext/spt/transforms/sampling.py:441
↓ 1 callers
Function
compute_panoptic_metrics
Helper function to compute the semantic, instance, panoptic segmentation metrics of a model on a given dataset, for given instance graph and p
ext/spt/utils/instance.py:855
↓ 1 callers
Function
compute_semantic_metrics
Helper function to compute the semantic segmentation metrics of a model on a given dataset.
ext/spt/utils/semantic.py:19
↓ 1 callers
Method
compute_similarity
(self, semantic_feature)
gui/main.py:66
↓ 1 callers
Method
construct_list_of_attributes
(self)
scene/gaussian_model.py:238
↓ 1 callers
Function
create
(image_list, data_list, save_folder)
scripts/image_encoding.py:116
↓ 1 callers
Function
create_videos
Creates videos out of the images saved to disk.
utils/render_utils.py:203
↓ 1 callers
Function
create_window
(window_size, channel)
utils/loss_utils.py:37
↓ 1 callers
Function
cross_product_matrix
Compute the cross-product matrix of a vector k. Credit: https://github.com/torch-points3d/torch-points3d
ext/spt/utils/geometry.py:9
↓ 1 callers
Function
date_time_string
Returns a string holding the current date and time. Useful for creating an output file or directory.
ext/spt/utils/io.py:18
↓ 1 callers
Method
debug
Runs a series of sanity checks on the attributes of self.
ext/spt/utils/output_semantic.py:23
↓ 1 callers
Method
debug
Sanity checks.
ext/spt/data/data.py:216
↓ 1 callers
Method
debug
Sanity checks.
ext/spt/data/nag.py:432
↓ 1 callers
Function
dense_to_csr
Convert a dense matrix to its CSR counterpart.
ext/spt/utils/sparse.py:44
↓ 1 callers
Method
densify_and_clone
(self, grads, grad_threshold, scene_extent)
scene/gaussian_model.py:451
↓ 1 callers
Method
densify_and_split
(self, grads, grad_threshold, scene_extent, N=2)
scene/gaussian_model.py:424
↓ 1 callers
Function
depths_to_points
(view, depthmap)
utils/point_utils.py:9
↓ 1 callers
Function
dot
(x, y)
gui/cam_utils.py:87
↓ 1 callers
Function
edge_index_to_uid
Compute consecutive unique identifiers for the edges. This may be needed for scatter operations.
ext/spt/utils/edge.py:9
↓ 1 callers
Method
edit_retrieve
(self)
gui/main.py:431
↓ 1 callers
Method
encode_image
(self, input)
scripts/image_encoding.py:108
↓ 1 callers
Method
encode_text
(self, text)
gui/main.py:58
↓ 1 callers
Method
estimate_bounding_sphere
Estimate the bounding sphere given camera pose
utils/mesh_utils.py:125
↓ 1 callers
Method
estimate_centroid
Estimate the centroid position of each object, based on the position of the clusters. Based on the hypothesis that clusters are relat
ext/spt/data/instance.py:284
↓ 1 callers
Method
estimate_instance_centroid
Estimate the centroid position of each target instance object, based on the position of the clusters. Based on the hypothesis that cl
ext/spt/data/data.py:815
↓ 1 callers
Function
evaluate
(model_paths)
metrics.py:36
↓ 1 callers
Function
evaluate
(points)
utils/mcube_utils.py:58
↓ 1 callers
Function
everything_seg
(args)
merge_proj.py:516
↓ 1 callers
Function
export
points are XYZ RGB (RGB in 0-255), semantic label as nyu40 ids, instance label as 1-#instance, box as (cx,cy,cz,dx,dy,dz,semantic_label)
ext/spt/utils/scannet.py:112
↓ 1 callers
Function
export_ids
(filename, ids)
utils/sai3d_utils.py:956
↓ 1 callers
Function
extract_gaussian_features
(model_path, views, gaussians, pipeline, background, feature_level, scale_factor=1)
graph_weight.py:28
↓ 1 callers
Method
extract_mesh_bounded
Perform TSDF fusion given a fixed depth range, used in the paper. voxel_size: the voxel size of the volume sdf_trunc
utils/mesh_utils.py:140
↓ 1 callers
Method
extract_mesh_unbounded
Experimental features, extracting meshes from unbounded scenes, not fully test across datasets. return o3d.mesh
utils/mesh_utils.py:184
↓ 1 callers
Function
extras
Applies optional utilities before the task is started. Utilities: - Ignoring python warnings - Setting tags from command line - Rich
ext/spt/utils/utils.py:62
↓ 1 callers
Function
f
(x)
graph_weight.py:23
↓ 1 callers
Function
figure_html
(fig)
ext/spt/visualization/visualization.py:1051
↓ 1 callers
Function
filter
(keep: torch.Tensor, masks_result)
scripts/image_encoding.py:211
↓ 1 callers
Function
filter_by_local_z_min
Search for the lowest point in each cell of a horizontal XY grid. This can be used to filter out points far from the ground, with some limita
ext/spt/utils/ground.py:40
↓ 1 callers
Function
filter_by_verticality
Search for the points with low verticality. For verticality computation, see the `PointFeatures`. This can be used to filter out non-ground
ext/spt/utils/ground.py:69
↓ 1 callers
Function
filter_by_z_distance_of_global_min
Search for points within `threshold` Z-distance of the lowest point in the input cloud `xyz`. This can be used to filter out points far from
ext/spt/utils/ground.py:20
↓ 1 callers
Method
flush
(self)
utils/general_utils.py:125
↓ 1 callers
Method
from_data_list
Overwrite torch_geometric from_data_list to be able to handle Cluster and InstanceData objects batching.
ext/spt/data/data.py:868
↓ 1 callers
Method
from_list
(cls, csr_list: List['CSRData'])
ext/spt/data/csr.py:603
↓ 1 callers
Function
gaussian
(window_size, sigma)
utils/loss_utils.py:23
↓ 1 callers
Function
generate_ellipse_path
Generate an elliptical render path based on the given poses.
utils/render_utils.py:121
↓ 1 callers
Function
generate_path
(viewpoint_cameras, n_frames=480)
utils/render_utils.py:173
↓ 1 callers
Function
generate_single_random_segment_image
Generate an image with random ground truth and predicted instance and semantic segmentation data. To make the images realisitc, and to ensure
ext/spt/utils/instance.py:166
↓ 1 callers
Function
generate_video
(img_list, save_path)
utils/image_utils.py:153
↓ 1 callers
Function
getProjectionMatrix
(znear, zfar, fovX, fovY)
utils/graphics_utils.py:51
↓ 1 callers
Function
getProjectionMatrix
(znear, zfar, fovX, fovY)
gui/gs_renderer.py:126
↓ 1 callers
Function
get_center_and_diag
(cam_centers)
scene/dataset_readers.py:49
↓ 1 callers
Function
get_config_structure
Parse a config file structure in search for .yaml files
ext/spt/utils/configs.py:9
↓ 1 callers
Method
get_example
Overwrite torch_geometric get_example to be able to handle Cluster and InstanceData objects batching.
ext/spt/data/data.py:936
↓ 1 callers
Method
get_gs_by_mask
mask: N, boolean mask level: int, choose certain level to get the related gaussian
nag_data.py:54
↓ 1 callers
Method
get_neighbor_seg_similar_confidence_matrix
:param points_label: (N, M), labels of all points in all views :param points_seen: (N, M), seen flag of all points in all vi
merge_proj.py:369
↓ 1 callers
Function
get_network
(net_type: str)
lpipsPyTorch/modules/networks.py:12
↓ 1 callers
Function
get_positions
(theta)
utils/render_utils.py:141
↓ 1 callers
Method
get_seg_adjacency
:params similar_meric: the metric to calculate the similarity between two primitives :params points_label: (N, M), labels of all poin
merge_proj.py:344
↓ 1 callers
Method
get_seg_adjacency_from_similar_confidence_torch
(self, similar_mat, confidence_mat, chunk_size=15000)
merge_proj.py:402
↓ 1 callers
Method
get_seg_data_torch
(self, seg_ids=None, k_graph=8, point_
merge_proj.py:175
↓ 1 callers
Function
get_seg_img
(mask, image)
scripts/image_encoding.py:194
↓ 1 callers
Function
get_state_dict
(net_type: str = 'alex', version: str = '0.1')
lpipsPyTorch/modules/utils.py:11
↓ 1 callers
Function
identity_PCA
Reduce dimension of x based on PCA on the union of the n-simplex. This is a way of reducing the dimension of x while treating all input dimens
ext/spt/utils/color.py:142
↓ 1 callers
Method
import_pose
(self, pose)
gui/cam_utils.py:244
↓ 1 callers
Method
index_select_pointers
Index selection of pointers. Returns a new pointer tensor with updated pointers, along with an index tensor to be used to update any
ext/spt/data/csr.py:262
↓ 1 callers
Method
init_data
(self, args)
merge_proj.py:39
↓ 1 callers
Function
inliers_split
Optionally recursive inlier search. The `xyz_query` and `xyz_search`. Search for points with less than `k_min` neighbors within a radius of `r
ext/spt/utils/neighbors.py:207
↓ 1 callers
Method
insert_empty_groups
Method called when in-place reindexing groups. The group_indices are assumed to be sorted and group_indices[i] corresponds to the pos
ext/spt/data/csr.py:225
↓ 1 callers
Function
instance_cut_pursuit
The forward step will compute the partition on the instance graph, based on the node features, node logits, and edge affinities. The partition
ext/spt/utils/instance.py:545
↓ 1 callers
Method
instance_graph
Compute instance graph and per-edge affinity scores. :param edge_index: Tensor of size [2, num_edges] Edges connecting the cluste
ext/spt/data/instance.py:351
↓ 1 callers
Function
instantiate_datamodule_transforms
Create a dictionary of torch_geometric composite transforms from a datamodule OmegaConf holding lists of transforms characterized by a `*trans
ext/spt/transforms/__init__.py:123
↓ 1 callers
Function
instantiate_transform
Create a transform from an OmegaConf dict such as: ```yaml transform: GridSampling3D params: size: 0.01 ```
ext/spt/transforms/__init__.py:47
↓ 1 callers
Function
instantiate_transforms
Create a torch_geometric composite transform from an OmegaConf list such as: ```yaml - transform: GridSampling3D params:
ext/spt/transforms/__init__.py:90
↓ 1 callers
Function
interpolate_transform_matrices
对4x4变换矩阵进行插值,通过提取和插值四元数和平移向量。 插值是在每两个位姿之间进行的,并将所有的插值结果汇总为一个综合的结果。 :param matrices: 包含4x4变换矩阵的列表 :param times: 对应于每个位姿的时间戳列表
utils/camera_utils.py:104
↓ 1 callers
Function
is_cuda_out_of_memory
(exception: BaseException)
ext/spt/utils/memory.py:28
↓ 1 callers
Function
is_cudnn_snafu
(exception: BaseException)
ext/spt/utils/memory.py:38
↓ 1 callers
Method
is_isolated
If self.has_edges, returns a boolean tensor of size self.num_nodes indicating which are absent from self.edge_index. Will raise an err
ext/spt/data/data.py:436
↓ 1 callers
Function
is_oom_error
(exception: BaseException)
ext/spt/utils/memory.py:23
↓ 1 callers
Function
is_out_of_cpu_memory
(exception: BaseException)
ext/spt/utils/memory.py:48
← previous
next →
201–300 of 879, ranked by callers