MCPcopy Create free account

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

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

Methodforward
x: (b,n,d) encoding: (2,b,n,d) mask: (b,h,n,n)
sgreg/gnn/spatial_attention.py:107
Methodforward
( self, x0: torch.Tensor, x1: torch.Tensor, mask: Optional[torch.Tensor] = None )
sgreg/gnn/spatial_attention.py:178
Methodforward
x: (b,n,d) pos: (b,n,3) edge: (b,2,e) mask: (b,n,n)
sgreg/gnn/spatial_attention.py:222
Methodforward
Initialize nodes with instance features.
sgreg/gnn/nodes_init_layer.py:44
Methodforward
r"""KPConv forward. Args: s_feats (Tensor): (N, C_in) q_points (Tensor): (M, 3) s_points (Tensor): (N, 3)
sgreg/kpconv/kpconv.py:79
Methodforward
(self, s_feats, q_points, s_points, neighbor_indices)
sgreg/kpconv/modules.py:14
Methodforward
(s_feats, neighbor_indices)
sgreg/kpconv/modules.py:23
Methodforward
(feats, lengths)
sgreg/kpconv/modules.py:29
Methodforward
(self, x)
sgreg/kpconv/modules.py:46
Methodforward
(self, x)
sgreg/kpconv/modules.py:78
Methodforward
(self, x)
sgreg/kpconv/modules.py:99
Methodforward
(self, s_feats, q_points, s_points, neighbor_indices)
sgreg/kpconv/modules.py:142
Methodforward
(self, s_feats, q_points, s_points, neighbor_indices)
sgreg/kpconv/modules.py:207
Methodforward
Input: - matching_ptr: (M,) - ref_matching_points: (M,K,3) - src_matching_points: (M,K,3) - m
sgreg/loss/loss.py:267
Methodforward
(self, match_output_dict, data_dict)
sgreg/loss/loss.py:321
Methodforward
(self, output_dict, data_dict)
sgreg/loss/eval.py:62
Methodfull
sgreg/extensions/extra/nanoflann/nanoflann.hpp:242
Functiongenerate_instance_color
(instances)
sgreg/utils/viz_tools.py:52
Functiongenerate_masks_with_special_tokens
Generate attention mask between each pair of special tokens (eg. [CLS],[SEP]) Args: input_ids (torch.Tensor): input ids. Shape: [bs, num_t
sgreg/bert/bertwarper.py:177
Functiongenerate_masks_with_special_tokens_and_transfer_map
Generate attention mask between each pair of special tokens Args: input_ids (torch.Tensor): input ids. Shape: [bs, num_token] spec
sgreg/bert/bertwarper.py:221
Functionget_correspondences_lines
(src_graph:dict,tar_graph:dict,matches,correspondences,translation=np.array([0,0,0]))
sgreg/dataset/generate_gt_association.py:303
Functionget_match_lines
(src_graph:dict,tar_graph:dict,matches,translation=np.array([0,0,0]),masks=None)
sgreg/dataset/generate_gt_association.py:278
Functionget_parser
()
sgreg/utils/config.py:5
Functiongnn_triplet_test_fn
(x,pos,anchor_indices,corner_indices,corner_masks)
sgreg/gnn/triplet_gnn.py:176
Functiongrid_subsampling
sgreg/extensions/cpu/grid_subsampling/grid_subsampling.cpp:5
Methodinit
sgreg/extensions/extra/nanoflann/nanoflann.hpp:237
Methodinit
Creates multiple empty trees to handle dynamic support */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1835
Methodinit_vind
Make sure the auxiliary list \a vind has the same size than the current * dataset, and re-generate if size has changed. */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1309
Functioninitialize
(seed=None, cudnn_deterministic=True, autograd_anomaly_detection=False)
sgreg/utils/torch.py:83
Functioninstance_f_points_batch
Input: - points_instances: (N, 1), fine points instances - instances: (M,), instance idx Output: - instance_f_points_
sgreg/ops/instance_partition.py:41
Methodinternal_init
sgreg/extensions/extra/nanoflann/nanoflann.hpp:612
Functioninverse_transform
r"""Inverse rigid transform. Args: transform (Tensor): (*, 4, 4) Return: inv_transform (Tensor): (*, 4, 4)
sgreg/ops/transformation.py:146
Functionis_last
(num, total_num, ratio=0.95)
sgreg/utils/torch.py:210
Functionis_recall
check if the registration is successful source: (N,3), T_est: (4,4), T_gt: (4,4)
sgreg/loss/eval.py:130
Methodkdtree_get_bbox
sgreg/extensions/extra/cloud/cloud.h:134
Methodkdtree_get_point_count
sgreg/extensions/extra/cloud/cloud.h:111
Methodkdtree_get_pt
Returns the dim'th component of the idx'th point in the class: Since this is inlined and the "dim" argument is typically an immediate value, the "if/e
sgreg/extensions/extra/cloud/cloud.h:118
MethodknnSearch
* Find the "num_closest" nearest neighbors to the \a query_point[0:dim-1]. * Their indices are stored inside the result object. \sa radiusSearch,
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1254
MethodknnSearch
* Find the "num_closest" nearest neighbors to the \a query_point[0:dim-1]. * Their indices are stored inside the result object. \sa radiusSearch,
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1616
MethodloadIndex
Loads a previous index from a binary file. * IMPORTANT NOTE: The set of data points is NOT stored in the file, so the * index object must be c
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1426
MethodloadIndex
Loads a previous index from a binary file. * IMPORTANT NOTE: The set of data points is NOT stored in the file, so the * index object must be c
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1772
Functionload_checkpoint
(path: str, model: torch.nn.Module, keyname: str = "pointnet2")
sgreg/utils/utils.py:131
Functionload_checkpoints_from_folder
(model, folder, epoch=-1)
sgreg/utils/torch.py:144
Functionload_pretrain_weight
(dir)
sgreg/utils/utils.py:157
Methodload_tree
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1034
Methodload_value
sgreg/extensions/extra/nanoflann/nanoflann.hpp:291
Functionmatch_asignment_script_fn
(desc0:torch.Tensor, desc1:torch.Tensor)
sgreg/match/match.py:89
MethodmiddleSplit_
sgreg/extensions/extra/nanoflann/nanoflann.hpp:909
Functionmodified_chamfer_distance
r"""Compute the modified chamfer distance. Args: raw_points (Tensor): (B, N_raw, 3) ref_points (Tensor): (B, N_ref, 3) sr
sgreg/registration/metrics.py:9
Functionoperator *
sgreg/extensions/extra/cloud/cloud.h:84
Functionoperator +
sgreg/extensions/extra/cloud/cloud.h:76
Functionoperator -
sgreg/extensions/extra/cloud/cloud.h:80
Functionoperator ==
sgreg/extensions/extra/cloud/cloud.h:96
Methodoperator []
sgreg/extensions/extra/cloud/cloud.h:30
Methodoperator()
sgreg/extensions/extra/nanoflann/nanoflann.hpp:211
Methodoperator=
Assignment operator definiton */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1536
Functionpi_const
sgreg/extensions/extra/nanoflann/nanoflann.hpp:79
MethodplaneSplit
* Subdivide the list of points by a plane perpendicular on axe corresponding * to the 'cutfeat' dimension at 'cutval' position. * * On ret
sgreg/extensions/extra/nanoflann/nanoflann.hpp:967
Functionpoint_to_instance_partition
Sample point_limit points for each instance Input, - points: (N, 3), fine-level points - points_instances: (N, 1), fine point
sgreg/ops/instance_partition.py:4
Methodprint_summary
(self)
sgreg/utils/utils.py:58
Functionprocess_scene_thread
(args)
sgreg/dataset/generate_gt_association.py:431
MethodradiusSearch
* 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:1641
MethodradiusSearchCustomCallback
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1297
MethodradiusSearchCustomCallback
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1659
Functionradius_neighbors
sgreg/extensions/cpu/radius_neighbors/radius_neighbors.cpp:5
Functionrealase_cuda
(input_dict)
sgreg/utils/torch.py:254
Functionregistration_collate_fn_stack_mode
r"""Collate function for registration in stack mode. Points are organized in the following order: [ref_1, ..., ref_B, src_1, ..., src_B]. The
sgreg/dataset/stack_mode.py:232
Functionrelease_cuda
r"""Release all tensors to item or numpy array.
sgreg/utils/torch.py:97
MethodremovePoint
Remove a point from the set (Lazy Deletion) */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1909
Functionreset_seed_worker_init_fn
r"""Reset seed for data loader worker.
sgreg/utils/torch.py:40
Functionrodrigues_alignment_matrix
r"""Compute the Rodrigues rotation matrix aligning source vectors to target vectors. Args: src_vectors (Tensor): source vectors (*, 3)
sgreg/ops/transformation.py:214
Functionrodrigues_rotation_matrix
r"""Compute Rodrigues Rotation Matrix. R = I + \sin{\theta} K + (1 - \cos{\theta}) K^2, where K is the skew-symmetric matrix of the axis vect
sgreg/ops/transformation.py:187
Functionrun_jl
From JiangLi's code https://github.com/llijiang/GuidedContrast/blob/main/model/semseg/semseg.py#L209
sgreg/loss/loss.py:16
Functionrun_rag_epoch
(data_loader, model, model_fn, save_dir)
sgreg/val.py:74
Functionsample_adaptive_k_instance_points
( instance_f_points_indices: torch.Tensor, max_point_index: int, K: int, sample_ratio: float =
sgreg/ops/instance_partition.py:164
Functionsample_all_instance_points
An instance contain invalid indices due to its number of points less than K. Fill the invalid indices by random sampling from the valid indic
sgreg/ops/instance_partition.py:109
Functionsample_k_instance_points
An instance contain invalid indices due to its limited number of points. For each instance, sample K points from the valid indices. If th
sgreg/ops/instance_partition.py:134
MethodsaveIndex
Stores the index in a binary file. * IMPORTANT NOTE: The set of data points is NOT stored in the file, so when * loading the index object it m
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1419
MethodsaveIndex
Stores the index in a binary file. * IMPORTANT NOTE: The set of data points is NOT stored in the file, so when * loading the index object it m
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1765
Functionsave_final_ckpt
r"""Saves the model checkpoint at a given epoch.
sgreg/utils/torch.py:304
Methodsave_tree
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1024
Methodsave_value
sgreg/extensions/extra/nanoflann/nanoflann.hpp:279
Functionscanpairs_2_scans
(scan_pairs)
sgreg/utils/utils.py:114
MethodsearchLevel
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1348
MethodsearchLevel
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1699
Functionsgreg_collate_fn_stack_mode
r"""Collate function for registration in stack mode. Points are organized in the following order: [ref_1, ..., ref_B, src_1, ..., src_B]. The
sgreg/dataset/stack_mode.py:309
Functionsimple_graph_matching_fn
(data_dict:dict, stack_score_list:list, min_score:float, k:int)
sgreg/match/match.py:62
Functionsingle_collate_fn_stack_mode
r"""Collate function for single point cloud in stack mode. Points are organized in the following order: [P_1, ..., P_B]. The correspondence i
sgreg/dataset/stack_mode.py:170
Methodsize
sgreg/extensions/extra/nanoflann/nanoflann.hpp:240
Methodsize
Returns number of points in dataset */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:813
Methodsq_norm
sgreg/extensions/extra/cloud/cloud.h:46
Functiontest_epoch
(data_loader, model, test_model_fn, save_dir='')
sgreg/val.py:13
Methodtoc
(self)
sgreg/utils/tictoc.py:10
Methodupdate
sgreg/extensions/cpu/grid_subsampling/grid_subsampling_cpu.h:32
Functionupdate_dict
(total_dict: dict, sub_dict: dict, name: str)
sgreg/utils/utils.py:73
MethodusedMemory
* Computes the inde memory usage * Returns: memory used by the index */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:830
Methodveclen
Returns the length of each point in the dataset */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:816
MethodworstDist
sgreg/extensions/extra/nanoflann/nanoflann.hpp:255
Methodworst_item
* Find the worst result (furtherest neighbor) without copying or sorting * Pre-conditions: size() > 0 */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:261
Functionwrite_scan_pairs
(scan_pairs, dir)
sgreg/utils/utils.py:122
← previousnext →301–400 of 402, ranked by callers