MCPcopy Create free account

hub / github.com/AIR-DISCOVER/Omni-PQ / functions

Functions370 in github.com/AIR-DISCOVER/Omni-PQ

↓ 11 callersMethodload_state_dict
Loads the schedulers state. Arguments: state_dict (dict): scheduler state. Should be an object returned from a ca
utils/lr_scheduler.py:52
↓ 9 callersMethod__init__
( self, in_size: int, out_size: int, *, activation
pointnet2/pytorch_utils.py:227
↓ 8 callersFunctionnn_distance
Input: pc1: (B,N,C) torch tensor pc2: (B,M,C) torch tensor l1smooth: bool, whether to use l1smooth loss delta: sc
utils/nn_distance.py:34
↓ 8 callersFunctionsmoothl1_loss
Smooth L1 loss. x = error = pred - gt or dist(pred,gt) 0.5 * |x|^2 if |x|<=d |x| - 0.5 * d if |x|>d
models/utils/losses.py:5
↓ 8 callersMethodstate_dict
Returns the state of the scheduler as a :class:`dict`. It contains an entry for every variable in self.__dict__ which is not the opti
utils/lr_scheduler.py:41
↓ 7 callersFunctionindex_points
Input: points: input points data, [B, N, C] idx: sample index data, [B, S, [K]] Return: new_points:, indexed points d
models/utils/pointnet_util.py:39
↓ 6 callersMethod__init__
( self, *, mlp: List[int], npoint: int = None, rad
pointnet2/pointnet2_modules.py:144
↓ 5 callersMethod__init__
(self, num_proposal)
models/utils/pointnet_util.py:53
↓ 5 callersFunctionparse_quad_predictions
Parse predictions to OBB parameters and suppress overlapping boxes Args: end_points: dict {point_clouds, center, heading
models/ap_helper_pq.py:323
↓ 5 callersFunctionprecision_recall
(TP, FP, FN)
utils/metric_util.py:95
↓ 5 callersFunctionsingle_scene_precision_recall
Compute P and R for predicted bounding boxes. Ignores classes! Args: labels: (N x bbox) ground-truth bounding boxes (6 dims) pred
utils/metric_util.py:57
↓ 5 callersMethodstep
Accumulate one batch of prediction and groundtruth. Args: batch_pred_map_cls: a list of lists [[(pred_cls, pred_box_para
models/ap_helper_pq.py:534
↓ 5 callersFunctionvisualize_pdf
(func: PDFunction, boundary, nstep=1000, color='green')
fit.py:53
↓ 4 callersMethod__init__
(self, d_model=256, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=2048
models/transformer.py:18
↓ 4 callersMethod__next__
(self)
double_loader.py:18
↓ 4 callersFunctioncalc_iou
Computes IoU of two axis aligned bboxes. Args: box_a, box_b: 6D of center and lengths Returns: iou
utils/metric_util.py:101
↓ 4 callersMethodcompute_correctness
(self,pred_corner,all_gt,is_embed=False)
models/ap_helper_pq.py:652
↓ 4 callersFunctionevaluate_one_epoch
(test_loader, DATASET_CONFIG, CONFIG_DICT, AP_IOU_THRESHOLDS, model, criterion, config, ema=False)
train.py:609
↓ 4 callersFunctionflip_axis_to_camera
Flip X-right,Y-forward,Z-up to X-right,Y-down,Z-forward Input and output are both (N,3) array
models/ap_helper_pq.py:26
↓ 4 callersFunctionget_3d_box
box_size is array(l,w,h), heading_angle is radius clockwise from pos x axis, center is xyz of box center output (8,3) array for 3D box cornde
utils/box_util.py:218
↓ 4 callersFunctionget_normal
(quad_vert,center)
scannet/scannet_planes.py:28
↓ 4 callersFunctionpoly_area
Ref: http://stackoverflow.com/questions/24467972/calculate-area-of-polygon-given-x-y-coordinates
utils/box_util.py:64
↓ 4 callersMethodreset
(self)
models/ap_helper_pq.py:572
↓ 4 callersFunctionsave_checkpoint
(args, epoch, model, optimizer, scheduler, save_cur=False, **kwargs)
train.py:181
↓ 4 callersFunctionsquare_distance
Calculate Euclid distance between each two points. src^T * dst = xn * xm + yn * ym + zn * zm; sum(src^2, dim=-1) = xn*xn + yn*yn + zn*zn;
models/utils/pointnet_util.py:22
↓ 4 callersMethodvisualize
(self, save=None)
fit.py:120
↓ 4 callersMethodwith_pos_embed
(self, tensor, pos_embed: Optional[Tensor])
models/transformer.py:185
↓ 3 callersMethod__init__
(self,hidden_dim,num_heading_bin,num_size_cluster,num_class,mean_size_arr)
models/pq_transformer.py:61
↓ 3 callersMethodclass2angle
Inverse function to angle2class. As ScanNet only has axis-alined boxes so angles are always 0.
scannet/model_util_scannet.py:48
↓ 3 callersMethodclass2size
Inverse function to size2class
scannet/model_util_scannet.py:60
↓ 3 callersMethodcompute_F1
find point radius < SAME_THRES
models/ap_helper_pq.py:695
↓ 3 callersMethodcompute_metrics
Use accumulated predictions and groundtruths to compute Average Precision.
models/ap_helper_pq.py:550
↓ 3 callersFunctionconvert_oriented_box_to_trimesh_fmt
(box, color=None)
utils/pc_util.py:423
↓ 3 callersFunctionconvex_hull_intersection
Compute area of two convex hull's intersection area. p1,p2 are a list of (x,y) tuples of hull vertices. return a list of (x,y) for th
utils/box_util.py:68
↓ 3 callersMethodfit
(self, step=10, visualize=False, quiet=False, save=None, opt=True)
fit.py:86
↓ 3 callersFunctioninside
(p)
utils/box_util.py:30
↓ 3 callersFunctionparse_quad_groundtruths
Parse groundtruth labels to OBB parameters. Args: end_points: dict {center_label, heading_class_label, heading_residual_
models/ap_helper_pq.py:461
↓ 3 callersFunctionrotate_xyz
Rotate a point cloud back. Args: xyz (torch.Tensor or np.ndarray): Point clouds augment_flip_YZ_XZ (_type_): _descrip
models/loss_helper_pq.py:504
↓ 3 callersMethodupdate
(self, *args)
fit.py:20
↓ 2 callersMethod__init__
(self, use_xyz=True, ret_grouped_xyz=False)
pointnet2/pointnet2_utils.py:387
↓ 2 callersMethod__iter__
(self)
double_loader.py:12
↓ 2 callersMethod__len__
(self)
double_loader.py:28
↓ 2 callersFunction_get_activation_fn
Return an activation function given a string
models/transformer.py:251
↓ 2 callersFunction_get_clones
(module, N)
models/transformer.py:231
↓ 2 callersMethodbackward
(ctx, a=None, b=None)
pointnet2/pointnet2_utils.py:145
↓ 2 callersFunctionbbox_corner_dist_measure
compute distance between box corners to replace iou Args: crnr1, crnr2: Nx3 points of box corners in camera axis (y points down)
utils/pc_util.py:324
↓ 2 callersFunctionbox3d_vol
corners: (8,3) no assumption on axis direction
utils/box_util.py:80
↓ 2 callersFunctioncomputeIntersection
()
utils/box_util.py:33
↓ 2 callersFunctioncompute_quad_loss
Compute 3D bounding box and semantic classification loss.
models/loss_helper_pq.py:258
↓ 2 callersMethodcontain_point
(self,pointlist,point)
models/ap_helper_pq.py:667
↓ 2 callersMethodem_step
(self, arr, prob)
fit.py:26
↓ 2 callersMethoderror
(self, steps=50000)
fit.py:114
↓ 2 callersFunctioneval_det_cls
Generic functions to compute precision/recall for object detection for a single class. Input: pred: map of {img_id: [(bbo
utils/eval_det.py:77
↓ 2 callersFunctioneval_det_multiprocessing
Generic functions to compute precision/recall for object detection for multiple classes. Input: pred_all: map of {img_id:
utils/eval_det.py:211
↓ 2 callersFunctionexport
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)
scannet/load_scannet_data.py:58
↓ 2 callersFunctionfarthest_point_sample
Input: xyz: pointcloud data, [B, N, 3] npoint: number of samples Return: centroids: sampled pointcloud index, [B, npo
models/utils/pointnet_util.py:71
↓ 2 callersFunctionget_2d_box
(box_size,center)
models/loss_helper_pq.py:307
↓ 2 callersFunctionget_center
(verts)
scannet/scannet_planes.py:97
↓ 2 callersFunctionget_color
(p)
models/dump_helper_quad.py:38
↓ 2 callersFunctionget_loss
Loss functions Args: end_points: dict { center, heading_scores, heading_residuals_normali
models/loss_helper_pq.py:412
↓ 2 callersFunctionget_model
(args, DATASET_CONFIG, ema=False)
eval.py:273
↓ 2 callersFunctionget_model
(args, DATASET_CONFIG, ema=False)
train.py:324
↓ 2 callersFunctionget_scheduler
(optimizer, n_iter_per_epoch, args)
utils/lr_scheduler.py:65
↓ 2 callersFunctionget_verts
(center,width,height,normal_vector)
models/ap_helper_pq.py:270
↓ 2 callersFunctionheading2rotmat
(heading_angle)
utils/pc_util.py:425
↓ 2 callersFunctionisFourPointsInSamePlane
(p0, p1, p2, p3,error)
scannet/scannet_planes.py:18
↓ 2 callersMethodjudge2
(self, arr, init=0.01)
fit.py:143
↓ 2 callersFunctionload_checkpoint
(args, model, optimizer, scheduler, **kwargs)
eval.py:148
↓ 2 callersFunctionload_checkpoint
(args, model, optimizer, scheduler, **kwargs)
train.py:153
↓ 2 callersFunctionmulti_head_attention_forward
r""" Args: query, key, value: map a query and a set of key-value pairs to an output. See "Attention Is All You Need" for more
models/utils/multi_head_attention.py:149
↓ 2 callersFunctionnms_2d_faster
(boxes, overlap_threshold, old_type=False)
utils/nms.py:44
↓ 2 callersFunctionnms_3d_faster
(boxes, overlap_threshold, old_type=False)
utils/nms.py:77
↓ 2 callersFunctionopt_n_threads
pointnet2/_ext_src/include/cuda_utils.h:20
↓ 2 callersMethodparam2obb
(self, center, heading_class, heading_residual, size_class, size_residual)
scannet/model_util_scannet.py:64
↓ 2 callersFunctionparse_predictions
Parse predictions to OBB parameters and suppress overlapping boxes Args: end_points: dict {point_clouds, center, heading
models/ap_helper_pq.py:75
↓ 2 callersFunctionplot_polys
(plist,scale=500.0)
utils/box_util.py:279
↓ 2 callersFunctionpoint_cloud_to_bbox
Extract the axis aligned box from a pcl or batch of pcls Args: points: Nx3 points or BxNx3 output is 6 dim: xyz pos of center and
utils/pc_util.py:347
↓ 2 callersFunctionpolygon_clip
Clip a polygon with another polygon. Ref: https://rosettacode.org/wiki/Sutherland-Hodgman_polygon_clipping#Python Args: subjectPolygon:
utils/box_util.py:16
↓ 2 callersFunctionprojection2d
(point,center,normal_vector,size)
models/loss_helper_pq.py:328
↓ 2 callersFunctionquery_ball_point
Input: radius: local region radius nsample: max sample number in local region xyz: all points, [B, N, 3] new_xyz:
models/utils/pointnet_util.py:94
↓ 2 callersFunctionrandom_sampling
Input is NxC, output is num_samplexC
utils/pc_util.py:36
↓ 2 callersFunctionrectangle
input: p1,p2,p3,p4 return: normal vector, size, quad center, direction
scannet/scannet_planes.py:60
↓ 2 callersFunctionrotate_aligned_boxes
(input_boxes, rot_mat)
scannet/model_util_scannet.py:73
↓ 2 callersFunctionsetup_logger
Initialize the detectron2 logger and set its verbosity level to "INFO". Args: output (str): a file name or a directory to save log.
utils/logger.py:31
↓ 2 callersFunctionsoftmax
Numpy function for softmax
models/ap_helper_pq.py:62
↓ 2 callersFunctiontransform
(scan_name,mesh_vertices)
scannet/scannet_planes.py:102
↓ 2 callersFunctionwrite_oriented_bbox
Export oriented (around Z axis) scene bbox to meshes Args: scene_bbox: (N x 7 numpy array): xyz pos of center and 3 lengths (dx,dy,dz)
utils/pc_util.py:449
↓ 1 callersMethod__getitem__
Returns a dict with following keys: point_clouds: (N,3+C) center_label: (MAX_NUM_OBJ,3) for GT box center XYZ
scannet/scannet_detection_dataset.py:86
↓ 1 callersMethod__init__
(self, distribution, arr, init_weight=0.5)
fit.py:72
↓ 1 callersMethod_break_up_pc
(self, pc)
models/backbone_module.py:77
↓ 1 callersFunction_cached_log_stream
(filename)
utils/logger.py:93
↓ 1 callersMethod_reset_parameters
(self)
models/transformer.py:40
↓ 1 callersMethod_reset_parameters
(self)
models/utils/multi_head_attention.py:77
↓ 1 callersFunctionball_query
pointnet2/_ext_src/src/ball_query.cpp:16
↓ 1 callersFunctionbatch_export
()
scannet/batch_load_scannet_data.py:56
↓ 1 callersFunctionbox3d_iou
Compute 3D bounding box IoU. Input: corners1: numpy array (8,3), assume up direction is negative Y corners2: numpy array (8,3),
utils/box_util.py:92
↓ 1 callersFunctioncalc_distance_vertically
(_pc_scene, predicted_quads)
models/utils/distance_util.py:111
↓ 1 callersFunctioncompute_box_and_sem_cls_loss
Compute 3D bounding box and semantic classification loss.
models/loss_helper_pq.py:92
↓ 1 callersFunctioncompute_center_consistency_loss
(end_points, ema_end_points, prefix="last_")
models/utils/mean_teacher_consistency_util.py:21
↓ 1 callersFunctioncompute_center_consistency_loss_quad
(end_points, ema_end_points, prefix="last_")
models/utils/mean_teacher_consistency_util.py:60
next →1–100 of 370, ranked by callers