MCPcopy Create free account

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

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

↓ 33 callersMethodsize
sgreg/extensions/extra/nanoflann/nanoflann.hpp:166
↓ 15 callersMethodtoc
(self, key_name, verbose=False)
sgreg/utils/utils.py:47
↓ 13 callersMethodkdtree_get_pt
Returns the dim'th component of the idx'th point in the class:
sgreg/extensions/extra/nanoflann/nanoflann.hpp:2022
↓ 10 callersFunctionapply_transform
r"""Rigid transform to points and normals (optional). Given a point cloud P(3, N), normals V(3, N) and a transform matrix T in the form of
sgreg/ops/transformation.py:7
↓ 10 callersMethoddataset_get
Helper accessor to the dataset points:
sgreg/extensions/extra/nanoflann/nanoflann.hpp:821
↓ 7 callersMethodaccum_dist
sgreg/extensions/extra/nanoflann/nanoflann.hpp:363
↓ 6 callersFunctionfloor
sgreg/extensions/extra/cloud/cloud.h:100
↓ 6 callersFunctionindex_select
r"""Advanced index select. Returns a tensor `output` which indexes the `data` tensor along dimension `dim` using the entries in `index` which
sgreg/ops/index_select.py:4
↓ 6 callersMethodkdtree_get_point_count
Must return the number of data points
sgreg/extensions/extra/nanoflann/nanoflann.hpp:2017
↓ 5 callersMethod__init__
r"""Initialize a group normalization block. Args: num_groups: number of groups num_channels: feature dimension
sgreg/kpconv/modules.py:34
↓ 5 callersMethodfull
sgreg/extensions/extra/nanoflann/nanoflann.hpp:168
↓ 5 callersFunctionnearest_upsample
Pools features from the closest neighbors. WARNING: this function assumes the neighbors are ordered. Args: x: [n1, d] features matri
sgreg/kpconv/functional.py:6
↓ 5 callersFunctionread_scan_pairs
(dir)
sgreg/utils/utils.py:109
↓ 5 callersMethodworstDist
sgreg/extensions/extra/nanoflann/nanoflann.hpp:204
↓ 4 callersMethod__init__
(self, allow_flash: bool)
sgreg/gnn/spatial_attention.py:46
↓ 4 callersMethodbuildIndex
* Builds the index */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1190
↓ 4 callersMethodclear
sgreg/extensions/extra/nanoflann/nanoflann.hpp:238
↓ 4 callersMethodevaluate_fine
(self, output_dict, data_dict)
sgreg/loss/eval.py:38
↓ 4 callersMethodevaluate_registration
(self, output_dict, data_dict)
sgreg/loss/eval.py:48
↓ 4 callersMethodfindNeighbors
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1221
↓ 4 callersMethodinit
sgreg/extensions/extra/nanoflann/nanoflann.hpp:158
↓ 4 callersMethodmap_
(self, func: Callable, x0: torch.Tensor, x1: torch.Tensor)
sgreg/gnn/spatial_attention.py:175
↓ 4 callersFunctionprecompute_data_stack_mode
(points, insts, lengths, num_stages, voxel_size, radius, neighbor_limits)
sgreg/dataset/stack_mode.py:13
↓ 4 callersFunctionsummary_dict
(input_dict: dict, output_dict: dict)
sgreg/utils/utils.py:66
↓ 4 callersFunctionto_cuda
r"""Move all tensors to cuda.
sgreg/utils/torch.py:113
↓ 3 callersFunctionGetCornerIndices
Select all the corners for each anchor point. A corner should be formed by the anchor point and its two nearby points. Input: -
sgreg/gnn/triplet_gnn.py:11
↓ 3 callersMethod__init__
(self, in_channels, out_channels, aggregate_all_edges, heads=4, dropout=0.2)
sgreg/gnn/gnn.py:42
↓ 3 callersFunctioncreate_cfg
(cfg)
sgreg/utils/config.py:21
↓ 3 callersMethodcross
sgreg/extensions/extra/cloud/cloud.h:50
↓ 3 callersMethodevalMetric
sgreg/extensions/extra/nanoflann/nanoflann.hpp:332
↓ 3 callersMethodfreeIndex
Frees the previously-built index. Automatically called within * buildIndex(). */
sgreg/extensions/extra/nanoflann/nanoflann.hpp:744
↓ 3 callersFunctiongenerate_bert_fetures
(tokenizer, bert, labels:list, CUDA:bool)
sgreg/bert/bertwarper.py:272
↓ 3 callersFunctionget_rotation_translation_from_transform
r"""Decompose transformation matrix into rotation matrix and translation vector. Args: transform (Tensor): (*, 4, 4) Returns:
sgreg/ops/transformation.py:110
↓ 3 callersFunctionmodel_fn
(data_dict:dict, model:nn.Module, epoch:int, train:bool)
sgreg/sg_reg.py:532
↓ 3 callersFunctionpairwise_distance
r"""Pairwise distance of two (batched) point clouds. Args: x (Tensor): (*, N, C) or (*, C, N) y (Tensor): (*, M, C) or (*, C, M)
sgreg/ops/pairwise_distance.py:4
↓ 3 callersFunctionradius_search
r"""Computes neighbors for a batch of q_points and s_points, apply radius search (in stack mode). This function is implemented on CPU. Args:
sgreg/ops/radius_search.py:7
↓ 3 callersFunctionread_points
(dir:str)
sgreg/registration/offline_registration.py:13
↓ 3 callersFunctionskew_symmetric_matrix
r"""Compute Skew-symmetric Matrix. [v]_{\times} = 0 -z y z 0 -x -y x 0 Args: inputs (Ten
sgreg/ops/transformation.py:162
↓ 3 callersMethodupdate
(self, data_dict)
sgreg/utils/utils.py:15
↓ 3 callersFunctionval_data_loader
(cfg,distributed=False)
sgreg/dataset/dataset_factory.py:45
↓ 3 callersFunctionval_epoch
(data_loader, model, model_fn, save_dir='')
sgreg/train.py:157
↓ 2 callersFunctionSGNetDecorator
(conf,test=False)
sgreg/sg_reg.py:519
↓ 2 callersMethod__init__
(self, in_channels, angle_dist_dim, out_channels, reduce, enable_dist_embedding=False,triplet_mlp_method='conc
sgreg/gnn/triplet_gnn.py:267
↓ 2 callersMethodaddPoint
* Called during search to add an element matching the criteria. * @return true if the search should be continued, false if the results are * suf
sgreg/extensions/extra/nanoflann/nanoflann.hpp:175
↓ 2 callersFunctionapply_cached_rotary_emb
(encoding: torch.Tensor, x: torch.Tensor)
sgreg/gnn/spatial_attention.py:21
↓ 2 callersFunctionassign
sgreg/extensions/extra/nanoflann/nanoflann.hpp:123
↓ 2 callersMethodback_end
(self, A_corr, B_corr)
sgreg/registration/hybrid_reg.py:138
↓ 2 callersFunctionbuild_dataloader_stack_mode
( dataset, collate_fn, num_stages, voxel_size, search_radius, neighbor_limits, ver
sgreg/dataset/stack_mode.py:468
↓ 2 callersFunctioncalibrate_neighbors_stack_mode
(dataset, collate_fn, num_stages,
sgreg/dataset/stack_mode.py:431
↓ 2 callersMethodchamfer_score
(self, tf)
sgreg/registration/hybrid_reg.py:162
↓ 2 callersFunctioncheck_instance_points
Input, - idxs: (N,), instance index - instances: (X,), instance label of each point
sgreg/dataset/scene_pair_dataset.py:35
↓ 2 callersFunctioncheckpoint_restore
(model, exp_path, exp_name, epoch=0,
sgreg/utils/torch.py:158
↓ 2 callersMethodcomputeInitialDistances
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1005
↓ 2 callersFunctioncompute_cloud_overlap
(cloud_a:o3d.geometry.PointCloud,cloud_b:o3d.geometry.PointCloud,search_radius=0.2)
sgreg/dataset/generate_gt_association.py:88
↓ 2 callersFunctioncompute_correspondence_matrix
r""" Compute matching matrix and score matrix for each patch correspondence. Input: - score_mat (Tensor): (B, K, K), or (B, K+1, K+1) if i
sgreg/match/match.py:27
↓ 2 callersFunctioncompute_gt_weight
positive are 1. others are all zero.
sgreg/loss/loss.py:114
↓ 2 callersFunctioncompute_node_matching
(metric_dict:dict)
sgreg/loss/eval.py:144
↓ 2 callersMethodconstruct_deep_graph
instance_names: [0,3,5,...max_instance_idx], the index is not continuous idxs: [0,1,2,3...num_instances-1], the index is continuous
sgreg/dataset/scene_pair_dataset.py:237
↓ 2 callersFunctioncreate_all_edges
Create all edges for the graph topology. Input: - feats: (N1+N2+...+NB, in_channels) - batches: (B+1)
sgreg/gnn/gnn.py:11
↓ 2 callersMethoddivideTree
* Create a tree node that subdivides the list of vecs from vind[first] * to vind[last]. The routine is called recursively on each sublist. *
sgreg/extensions/extra/nanoflann/nanoflann.hpp:857
↓ 2 callersMethodextract_correspondences
(self, ref_knn_points, src_knn_points, score_mat, corr_mat)
sgreg/registration/local_global_registration.py:148
↓ 2 callersMethodfindNeighbors
sgreg/extensions/extra/nanoflann/nanoflann.hpp:1584
↓ 2 callersMethodfront_end
(self)
sgreg/registration/hybrid_reg.py:116
↓ 2 callersFunctiongenerate_edges
(name:str, graph:dict)
sgreg/dataset/generate_gt_association.py:14
↓ 2 callersFunctiongenerate_global_edges
(name:str,graph:dict)
sgreg/dataset/generate_gt_association.py:74
↓ 2 callersFunctionget_geometries
(graph:dict,translation=np.array([0,0,0]),rotate=np.eye(3),include_boxes=False,edge_type=None)
sgreg/dataset/generate_gt_association.py:237
↓ 2 callersMethodget_metrics
(self, precentage=True, recall_only=False)
sgreg/utils/utils.py:20
↓ 2 callersFunctionget_pretrained_language_model
(text_encoder_type)
sgreg/bert/get_tokenizer.py:21
↓ 2 callersFunctionget_tokenlizer
(text_encoder_type)
sgreg/bert/get_tokenizer.py:4
↓ 2 callersMethodkdtree_get_bbox
sgreg/extensions/extra/nanoflann/nanoflann.hpp:2031
↓ 2 callersMethodloadIndex_
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:1064
↓ 2 callersMethodload_box
(self,box:o3d.geometry.OrientedBoundingBox)
sgreg/dataset/scene_graph.py:21
↓ 2 callersFunctionload_processed_scene_graph
(scan_dir:str)
sgreg/dataset/scene_graph.py:94
↓ 2 callersFunctionload_raw_scene_graph
graph: {'nodes':{idx:Instance},'edges':{idx:idx}}
sgreg/dataset/scene_graph.py:24
↓ 2 callersMethodload_scene_graph
(self,scan_dir,aug_transform=False)
sgreg/dataset/scene_pair_dataset.py:152
↓ 2 callersFunctionload_submodule_state_dict
(model_state_dir, submodule_names=["backbone"])
sgreg/utils/utils.py:168
↓ 2 callersFunctionmask_valid_labels
(src_labels:list, ignore_labels:str)
sgreg/utils/utils.py:101
↓ 2 callersMethodmatch_point_layer
Input, - pred_nodes: (M,3),[scan_id,src_idx,tar_idx] Output dict, - output[matching_ptr]: (M,), matching ptr
sgreg/sg_reg.py:400
↓ 2 callersFunctionmaxpool
Max pooling from neighbors. Args: x: [n1, d] features matrix neighbor_indices: [n2, max_num] pooling indices Returns:
sgreg/kpconv/functional.py:54
↓ 2 callersFunctionprepare_hierarchy_points_feats
r"""Prepare hierarchy points and features for the scene graph. It is a module built in GeoTransformer. It downsample the points and features i
sgreg/dataset/stack_mode.py:105
↓ 2 callersFunctionread_corr_scores
(dir:str)
sgreg/utils/io.py:88
↓ 2 callersFunctionread_pred_nodes
(dir:str)
sgreg/utils/io.py:58
↓ 2 callersMethodrecompute_correspondence_scores
Compute outliers using the estimated transform. Update correspondence scores by removing outliers.
sgreg/registration/local_global_registration.py:137
↓ 2 callersFunctionregister_scenes
Input, - batch_points_s: (M,K,3), source points - batch_points_t: (M,K,3), target points - batch_match_ptr: (M,), bat
sgreg/sg_reg.py:623
↓ 2 callersFunctionrender_correspondences
(entity_name:str, src_points:np.ndarray, ref_points:np.n
sgreg/visualize.py:105
↓ 2 callersFunctionrender_semantic_scene_graph
(scene_name:str, scene_graph:dict, voxel_size:
sgreg/visualize.py:82
↓ 2 callersMethodreorganize_nodes
Input, - scan_x_src: (N,D) - K: int
sgreg/gnn/gnn.py:148
↓ 2 callersFunctionresize
sgreg/extensions/extra/nanoflann/nanoflann.hpp:103
↓ 2 callersFunctionrun
Input, - pos_feats1: (N, D), torch.Tensor - pos_feats2: (N, D), torch.Tensor - neg_feats: (M, D), torch.
sgreg/loss/loss.py:30
↓ 2 callersFunctionsample_instance_from_points
Sample K points for each instance. If the number of points is less than K, fill the rest with invalid value. Input: - points_ins
sgreg/ops/instance_partition.py:73
↓ 2 callersMethodsaveIndex_
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:1050
↓ 2 callersFunctionsave_errors
(scans,errors,dir)
sgreg/registration/test_registration.py:19
↓ 2 callersFunctionsave_nodes_edges
(graph:dict,output_dir:str)
sgreg/dataset/generate_gt_association.py:322
↓ 2 callersFunctionsemantic_sampling
(graph:dict, max_count:int=5, min_size:int=200)
sgreg/dataset/generate_gt_association.py:105
↓ 2 callersMethodsolve
(self)
sgreg/registration/hybrid_reg.py:96
↓ 2 callersFunctionstack_scene_graph_list
(graph_dicts)
sgreg/dataset/stack_mode.py:82
↓ 2 callersMethodtic
(self, key_name)
sgreg/utils/utils.py:41
↓ 2 callersMethodtic
(self)
sgreg/utils/tictoc.py:7
↓ 2 callersFunctiontrain_data_loader
(cfg,distributed=False)
sgreg/dataset/dataset_factory.py:15
↓ 2 callersFunctiontransform_scene_graph
(graph:dict,transormation=np.eye(4))
sgreg/dataset/generate_gt_association.py:223
next →1–100 of 402, ranked by callers