MCPcopy Create free account

hub / github.com/HKUST-Aerial-Robotics/SG-Reg / functions

Functions402 in github.com/HKUST-Aerial-Robotics/SG-Reg

↓ 2 callersMethodupdate
sgreg/extensions/cpu/grid_subsampling/grid_subsampling_cpu.h:17
↓ 1 callersMethod__init__
(self,dim:int,iterations:int,topk:int,threshold:float)
sgreg/match/match.py:228
↓ 1 callersMethod__init__
(self, bert_model)
sgreg/bert/bertwarper.py:15
↓ 1 callersMethod__init__
(self,positive_radius)
sgreg/loss/loss.py:243
↓ 1 callersFunctionall_reduce_tensor
r"""Average reduce a tensor across all workers.
sgreg/utils/torch.py:16
↓ 1 callersFunctionbuild_dataloader
( dataset, batch_size=1, num_workers=1, shuffle=None, collate_fn=None, pin_memory=Fals
sgreg/utils/torch.py:48
↓ 1 callersFunctioncalculate_nll_loss
(logmax_scores,gt)
sgreg/loss/loss.py:112
↓ 1 callersFunctioncalculate_nll_loss_v2
(logscores,ious,min_iou=0.05,alpha=2.0)
sgreg/loss/loss.py:160
↓ 1 callersFunctioncheckpoint_save
(model, optimizer, exp_path, exp_name,
sgreg/utils/torch.py:227
↓ 1 callersMethodcompute_correspondence_matrix
r""" Compute matching matrix and score matrix for each patch correspondence. Input: - score_mat (Tensor): (B, K, K), or (B, K+
sgreg/registration/local_global_registration.py:51
↓ 1 callersFunctioncompute_registration
(metric_dict:dict)
sgreg/loss/eval.py:152
↓ 1 callersFunctionconcat_instance_points
build instance-labeled points and instance list. Return: instance_list: (N+M,), instance_points: (P+Q, 3)
sgreg/backbone/shape_encoder.py:59
↓ 1 callersFunctioncontrastive_loss_fn
(data_dict:dict, src_stack_feats:torch.Tensor, ref_stack_feats
sgreg/loss/loss.py:9
↓ 1 callersMethodconvert_to_batch
r"""Convert stacked correspondences to batched points. The extracted dense correspondences from all patch correspondences are stacked. Howeve
sgreg/registration/local_global_registration.py:93
↓ 1 callersFunctioncopy_state_dict
(state_dict: OrderedDict, ignore_keys: list = [])
sgreg/utils/torch.py:213
↓ 1 callersFunctioncreate_3D_rotations
Create rotation matrices from a list of axes and angles. Code from wikipedia on quaternions :param axis: float32[N, 3] :param angle: floa
sgreg/kpconv/kernel_points.py:34
↓ 1 callersFunctioncreate_model
(conf, train=True)
sgreg/train.py:15
↓ 1 callersFunctionencode_batch_scenes_instances
(shape_backbone:nn.Module, batch_graph_pair:dict,
sgreg/backbone/shape_encoder.py:76
↓ 1 callersFunctionencode_batch_scenes_points
Read a batch of scene pairs. Encode all of their fine points and features.
sgreg/backbone/backbone.py:7
↓ 1 callersFunctioneval_instance_match_new
background (floors, carpets) are considered. - gt_matrix: (n,m) - pred: (a,2), [i,j] where i in [0,n), j in [0,m) - return: true_pos, fals
sgreg/loss/eval.py:94
↓ 1 callersFunctionfind_association
find gt association Return: - matche_results: [(src_idx, tar_idx, iou)] - correspondences: np.array, (Mp,4), [src_idx, tar_idx,
sgreg/dataset/generate_gt_association.py:142
↓ 1 callersMethodfind_k_assignment
(self,scores:torch.Tensor,threshold:float)
sgreg/match/match.py:190
↓ 1 callersMethodfree_all
Frees all allocated memory chunks */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:634
↓ 1 callersFunctiongenerate_random_graph_edge_indices
Generate edge indices for a random graph with N nodes, where each node is connected to K random nodes (excluding itself). Input: - N:
sgreg/gnn/triplet_gnn.py:412
↓ 1 callersFunctiongenerate_semantic_embeddings
(data_dict)
sgreg/dataset/prepare_semantics.py:25
↓ 1 callersFunctionget_parser_args
()
sgreg/visualize.py:162
↓ 1 callersMethodget_teaser_solver
(self, noise_bound)
sgreg/registration/hybrid_reg.py:207
↓ 1 callersFunctionget_transform_from_rotation_translation
r"""Compose transformation matrix from rotation matrix and translation vector. Args: rotation (Tensor): (*, 3, 3) translation (Te
sgreg/ops/transformation.py:125
↓ 1 callersFunctionglobal_avgpool
Global average pooling over batch. Args: x: [N, D] input features batch_lengths: [B] list of batch lengths Returns:
sgreg/kpconv/functional.py:70
↓ 1 callersFunctiongrid_subsample
Grid subsampling in stack mode. This function is implemented on CPU. Args: points (Tensor): stacked points. (N, 3) lengths (
sgreg/ops/grid_subsample.py:7
↓ 1 callersFunctiongrid_subsampling_cpu
sgreg/extensions/cpu/grid_subsampling/grid_subsampling_cpu.cpp:74
↓ 1 callersMethodinitialize_kernel_points
Initialize the kernel point positions in a sphere.
sgreg/kpconv/kpconv.py:74
↓ 1 callersFunctionis_multiple
(num, multiple)
sgreg/utils/torch.py:206
↓ 1 callersFunctionis_power2
(num)
sgreg/utils/torch.py:202
↓ 1 callersFunctionisotropic_transform_error
r"""Compute the isotropic Relative Rotation Error and Relative Translation Error. Args: gt_transforms (Tensor): ground truth transformati
sgreg/registration/metrics.py:85
↓ 1 callersFunctionkernel_point_optimization_debug
Creation of kernel point via optimization of potentials. :param radius: Radius of the kernels :param num_points: points composing kernels
sgreg/kpconv/kernel_points.py:247
↓ 1 callersFunctionknn_interpolate
r"""K-NN interpolate. WARNING: this function assumes the neighbors are ordered. Args: s_feats (Tensor): (M, C) q_points (Ten
sgreg/kpconv/functional.py:25
↓ 1 callersFunctionload_kernels
(radius, num_kpoints, dimension, fixed, lloyd=False)
sgreg/kpconv/kernel_points.py:389
↓ 1 callersFunctionload_matches
(file_dir, pred_node_pairs, src_points, ref_points, gt_mask)
sgreg/registration/test_ver0_register.py:11
↓ 1 callersMethodload_matches_data
instance_matches: (num_matches,3), [src_id,tar_id,iou] ious_map: dict, {'iou':iou_mat, 'src_names':src_names
sgreg/dataset/scene_pair_dataset.py:102
↓ 1 callersFunctionload_weights
r"""Load weights and check keys.
sgreg/utils/torch.py:126
↓ 1 callersMethodlocal_to_global_registration
Args: ref_knn_points (Tensor): (B, K, 3), (128, 64, 3) src_knn_points (Tensor): (B, K, 3) score_mat (Tens
sgreg/registration/local_global_registration.py:161
↓ 1 callersMethodlog_sinkhorn_normalization
(self, scores, log_mu, log_nu)
sgreg/match/learnable_sinkhorn.py:18
↓ 1 callersFunctionloss_fn
(loss_in_dict,data_dict,epoch)
sgreg/sg_reg.py:582
↓ 1 callersMethodmalloc
* Returns a pointer to a piece of new memory of the given size in bytes * allocated from the pool. */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:648
↓ 1 callersMethodmatch_node_layer
Graph match semantic nodes. Return dict: - output_dict[pred_nodes]: (M,3),[batch_id,src_idx,tar_idx],
sgreg/sg_reg.py:357
↓ 1 callersFunctionmax_point
sgreg/extensions/extra/cloud/cloud.cpp:4
↓ 1 callersFunctionmin_point
sgreg/extensions/extra/cloud/cloud.cpp:22
↓ 1 callersFunctionposition_embedding_test_fn
Input, - emb_indices: (N',K)
sgreg/gnn/triplet_gnn.py:154
↓ 1 callersFunctionprocess_scene_pair
( src_scene_dir:str, ref_scene_dir:str, match_f_di
sgreg/dataset/generate_gt_association.py:349
↓ 1 callersMethodquery
Query for the \a num_closest closest points to a given point (entered as * query_point[0:dim-1]). Note that this is a short-cut method for * ind
sgreg/extensions/extra/nanoflann/nanoflann.hpp:2002
↓ 1 callersMethodradiusSearch
* Find all the neighbors to \a query_point[0:dim-1] within a maximum radius. * The output is given as a vector of pairs, of which the first elemen
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1279
↓ 1 callersFunctionradius_neighbors_cpu
sgreg/extensions/cpu/radius_neighbors/radius_neighbors_cpu.cpp:4
↓ 1 callersFunctionread_dense_correspondences
(src_corr_dir:str, ref_corr_dir:str, score_file_
sgreg/utils/io.py:107
↓ 1 callersFunctionread_scans
(dir)
sgreg/utils/utils.py:79
↓ 1 callersFunctionrelative_rotation_error
r"""Isotropic Relative Rotation Error. RRE = acos((trace(R^T \cdot \bar{R}) - 1) / 2) Args: gt_rotations (Tensor): ground truth rota
sgreg/registration/metrics.py:48
↓ 1 callersFunctionrelative_translation_error
r"""Isotropic Relative Rotation Error. RTE = \lVert t - \bar{t} \rVert_2 Args: gt_translations (Tensor): ground truth translation ve
sgreg/registration/metrics.py:69
↓ 1 callersFunctionrender_node_bboxes
(entity_name:str, nodes:dict, show_labels:bool=True,
sgreg/visualize.py:64
↓ 1 callersFunctionrender_node_centers
Render the centers of nodes in the scene graph.
sgreg/visualize.py:33
↓ 1 callersFunctionrender_point_cloud
Render a point cloud with a specific color and point size.
sgreg/visualize.py:13
↓ 1 callersFunctionrender_registration
(entity_name:str, src_cloud:o3d.geometry.PointCloud, ref_cloud
sgreg/visualize.py:140
↓ 1 callersMethodreset_parameters
(self)
sgreg/kpconv/kpconv.py:67
↓ 1 callersFunctionrotate_half
(x: torch.Tensor)
sgreg/gnn/spatial_attention.py:16
↓ 1 callersFunctionrun
desc0, desc1: (m,d) return: (m,n)
sgreg/match/match.py:8
↓ 1 callersFunctionsample_pos_neg
(ious, positive_overlap)
sgreg/loss/loss.py:69
↓ 1 callersMethodset_model_pred
(self, model_pred: dict)
sgreg/registration/hybrid_reg.py:48
↓ 1 callersMethodsigmoid_log_double_softmax
create the log assignment matrix from logits and similarity
sgreg/match/match.py:155
↓ 1 callersFunctionsingle_grid_subsampling_cpu
sgreg/extensions/cpu/grid_subsampling/grid_subsampling_cpu.cpp:3
↓ 1 callersMethodsolve_by_teaser
(self, A_corr, B_corr, noise_bound)
sgreg/registration/hybrid_reg.py:170
↓ 1 callersFunctionspherical_Lloyd
Creation of kernel point via Lloyd algorithm. We use an approximation of the algorithm, and compute the Voronoi cell centers with discretizat
sgreg/kpconv/kernel_points.py:62
↓ 1 callersMethodsplit_feats_dict
Split the instance_feats_dict into ref_dict and src_dict.
sgreg/sg_reg.py:109
↓ 1 callersFunctionsummary_evaluation
Compute the metrics: - nodes_tp, nodes_fp, nodes_gt - recall, precision, rmse, scenes - (optional) gt_precision
sgreg/sg_reg.py:700
↓ 1 callersFunctiontrain_epoch
(data_loader, model, model_fn, optimizer, scheduler,epoch)
sgreg/train.py:72
↓ 1 callersFunctiontransform_scene_graph
(scene_graph:dict, transformation:np.ndarray)
sgreg/dataset/scene_graph.py:163
↓ 1 callersFunctionweighted_procrustes
r"""Compute rigid transformation from `src_points` to `ref_points` using weighted SVD. Modified from [PointDSC](https://github.com/XuyangBai/Poin
sgreg/registration/procrustes.py:6
↓ 1 callersFunctionwrite_pred_nodes
(dir:str, pred_src_instances:np.ndarray, pred_ref_instances:np.ndarr
sgreg/utils/io.py:5
↓ 1 callersFunctionwrite_registration_results
(registration_dict:dict, dir:str)
sgreg/utils/io.py:27
MethodFirst0Bit
finds position of least significant unset bit */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1825
FunctionGetCornerIndicesDS
Generate by DeepSeekV3
sgreg/gnn/triplet_gnn.py:105
FunctionGetCornerIndicesNew
(pos:torch.Tensor, edge_indices:torch.Tensor, K:int=20)
sgreg/gnn/triplet_gnn.py:85
MethodKDTreeEigenMatrixAdaptor
Constructor: takes a const ref to the matrix object with the data points
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1971
MethodKDTreeSingleIndexAdaptor
Deleted copy constructor*/
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1122
MethodKDTreeSingleIndexAdaptorParams
sgreg/extensions/extra/nanoflann/nanoflann.hpp:547
MethodKDTreeSingleIndexDynamicAdaptor
* KDTree constructor * * Refer to docs in README.md or online in * https://github.com/jlblancoc/nanoflann * * The KD-Tree point dimensi
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1860
MethodKDTreeSingleIndexDynamicAdaptor_
* KDTree constructor * * Refer to docs in README.md or online in * https://github.com/jlblancoc/nanoflann * * The KD-Tree point dimensi
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1519
MethodKNNResultSet
sgreg/extensions/extra/nanoflann/nanoflann.hpp:155
MethodL1_Adaptor
sgreg/extensions/extra/nanoflann/nanoflann.hpp:330
MethodL2_Adaptor
sgreg/extensions/extra/nanoflann/nanoflann.hpp:381
MethodL2_Simple_Adaptor
sgreg/extensions/extra/nanoflann/nanoflann.hpp:429
FunctionPYBIND11_MODULE
sgreg/extensions/pybind.cpp:6
MethodPointXYZ
sgreg/extensions/extra/cloud/cloud.h:18
MethodPooledAllocator
Default constructor. Initializes a new pool. */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:626
MethodRadiusResultSet
sgreg/extensions/extra/nanoflann/nanoflann.hpp:230
MethodSO2_Adaptor
sgreg/extensions/extra/nanoflann/nanoflann.hpp:461
MethodSO3_Adaptor
sgreg/extensions/extra/nanoflann/nanoflann.hpp:495
MethodSampledData
sgreg/extensions/cpu/grid_subsampling/grid_subsampling_cpu.h:12
MethodSampledInst
sgreg/extensions/cpu/grid_subsampling/grid_subsampling_cpu.h:28
MethodSearchParams
Note: The first argument (checks_IGNORED_) is ignored, but kept for * compatibility with the FLANN interface */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:557
Method__call__
(self, last_epoch)
sgreg/utils/torch.py:272
Method__call__
(self, last_step)
sgreg/utils/torch.py:285
← previousnext →101–200 of 402, ranked by callers