MCPcopy Create free account

hub / github.com/Na-Z/sess / functions

Functions289 in github.com/Na-Z/sess

↓ 10 callersFunctionlog_string
(out_str)
train_sess.py:82
↓ 10 callersFunctionlog_string
(out_str)
pretrain_votenet.py:107
↓ 9 callersMethod__init__
( self, in_size: int, out_size: int, *, activation
pointnet2/pytorch_utils.py:227
↓ 9 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
↓ 7 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.py:383
↓ 6 callersMethod__init__
( self, *, mlp: List[int], npoint: int = None, rad
pointnet2/pointnet2_modules.py:146
↓ 5 callersFunctionhuber_loss
Args: error: Torch tensor (d1,d2,...,dk) Returns: loss: Torch tensor (d1,d2,...,dk) x = error = pred - gt or dist(pred,g
utils/nn_distance.py:15
↓ 5 callersFunctionlog_string
(out_str)
eval.py:73
↓ 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
↓ 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 callersMethodclass2angle
Inverse function to angle2class
sunrgbd/model_util_sunrgbd.py:67
↓ 4 callersMethodclass2size
Inverse function to size2class
sunrgbd/model_util_sunrgbd.py:44
↓ 4 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:70
↓ 4 callersFunctionextract_sunrgbd_data
Extract scene point clouds and bounding boxes (centroids, box sizes, heading angles, semantic classes). Dumped point clouds and boxes are in
sunrgbd/sunrgbd_data.py:171
↓ 4 callersMethodlog_scalars
(self, scalars, step)
utils/tf_visualizer.py:33
↓ 4 callersFunctionpoly_area
Ref: http://stackoverflow.com/questions/24467972/calculate-area-of-polygon-given-x-y-coordinates
utils/box_util.py:66
↓ 3 callersMethodbackward
(ctx, a=None, b=None)
pointnet2/pointnet2_utils.py:143
↓ 3 callersMethodcompute_metrics
Use accumulated predictions and groundtruths to compute Average Precision.
models/ap_helper.py:399
↓ 3 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.py:26
↓ 3 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:293
↓ 3 callersMethodget_label_objects
(self, idx)
sunrgbd/sunrgbd_data.py:70
↓ 3 callersFunctioninside
(p)
utils/box_util.py:32
↓ 3 callersFunctionparse_groundtruths
Parse groundtruth labels to OBB parameters. Args: end_points: dict {center_label, heading_class_label, heading_residual_
models/ap_helper.py:250
↓ 3 callersFunctionparse_predictions
Parse predictions to OBB parameters and suppress overlapping boxes Args: end_points: dict {point_clouds, center, heading
models/ap_helper.py:93
↓ 3 callersMethodproject_upright_depth_to_image
Input: (N,3) Output: (N,2) UV and (N,) depth
sunrgbd/sunrgbd_utils.py:109
↓ 3 callersFunctionrandom_sampling
Input is NxC, output is num_samplexC
utils/pc_util.py:35
↓ 2 callersMethod__init__
(self, use_xyz=True, ret_grouped_xyz=False)
pointnet2/pointnet2_utils.py:383
↓ 2 callersMethodangle2class
Convert continuous angle to discrete class [optinal] also small regression number from class center angle to current angle.
sunrgbd/model_util_sunrgbd.py:49
↓ 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:323
↓ 2 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:102
↓ 2 callersFunctionbox3d_vol
corners: (8,3) no assumption on axis direction
utils/box_util.py:82
↓ 2 callersFunctionbox3d_vol_batch
corners: (n,8,3) no assumption on axis direction
utils/box_util.py:89
↓ 2 callersFunctioncomputeIntersection
()
utils/box_util.py:35
↓ 2 callersFunctionconvert_oriented_box_to_trimesh_fmt
(box)
utils/pc_util.py:407
↓ 2 callersFunctioncreate_model
(ema=False)
train_sess.py:146
↓ 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 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:60
↓ 2 callersFunctionextract_pc_in_box3d
pc: (N,3), box3d: (8,3)
sunrgbd/sunrgbd_utils.py:221
↓ 2 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
sunrgbd/sunrgbd_utils.py:25
↓ 2 callersFunctionflip_axis_to_depth
(pc)
sunrgbd/sunrgbd_utils.py:34
↓ 2 callersFunctionflip_axis_to_depth
(pc)
models/ap_helper.py:35
↓ 2 callersMethodget_calibration
(self, idx)
sunrgbd/sunrgbd_data.py:66
↓ 2 callersFunctionget_current_lr
(epoch)
train_sess.py:196
↓ 2 callersFunctionget_current_lr
(epoch)
pretrain_votenet.py:198
↓ 2 callersMethodget_depth
(self, idx)
sunrgbd/sunrgbd_data.py:62
↓ 2 callersMethodget_image
(self, idx)
sunrgbd/sunrgbd_data.py:58
↓ 2 callersFunctionheading2rotmat
(heading_angle)
utils/pc_util.py:398
↓ 2 callersFunctionnms_2d_faster
(boxes, overlap_threshold, old_type=False)
utils/nms.py:44
↓ 2 callersFunctionopt_n_threads
pointnet2/_ext_src/include/cuda_utils.h:20
↓ 2 callersMethodparam2obb
(self, center, heading_class, heading_residual, size_class, size_residual)
sunrgbd/model_util_sunrgbd.py:77
↓ 2 callersFunctionplot_polys
(plist,scale=500.0)
utils/box_util.py:431
↓ 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:346
↓ 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:18
↓ 2 callersFunctionrotate_aligned_boxes
(input_boxes, rot_mat)
scannet/model_util_scannet.py:69
↓ 2 callersFunctionrotz
Rotation about the z-axis.
sunrgbd/sunrgbd_utils.py:159
↓ 2 callersMethodsize2class
Convert 3D box size (l,w,h) to size class and size residual
sunrgbd/model_util_sunrgbd.py:38
↓ 2 callersFunctionsoftmax
Numpy function for softmax
models/ap_helper.py:41
↓ 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:81
↓ 1 callersMethod_break_up_pc
(self, pc)
models/backbone_module.py:74
↓ 1 callersFunctionadjust_learning_rate
(optimizer, epoch)
train_sess.py:203
↓ 1 callersFunctionadjust_learning_rate
(optimizer, epoch)
pretrain_votenet.py:205
↓ 1 callersFunctionball_query
pointnet2/_ext_src/src/ball_query.cpp:13
↓ 1 callersFunctionbatch_export
()
scannet/batch_load_scannet_data.py:79
↓ 1 callersMethodclass2angle
Inverse function to angle2class. As ScanNet only has axis-alined boxes so angles are always 0.
scannet/model_util_scannet.py:44
↓ 1 callersMethodclass2size
Inverse function to size2class
scannet/model_util_scannet.py:56
↓ 1 callersFunctioncompute_box_and_sem_cls_loss
Compute 3D bounding box and semantic classification loss. Args: end_points: dict (read-only) Returns: center_loss h
models/loss_helper.py:110
↓ 1 callersFunctioncompute_box_and_sem_cls_loss
Compute 3D bounding box and semantic classification loss. Args: end_points: dict (read-only) Returns: center_loss h
models/loss_helper_sess.py:117
↓ 1 callersFunctioncompute_center_consistency_loss
(end_points, ema_end_points)
models/loss_helper_sess.py:274
↓ 1 callersFunctioncompute_class_consistency_loss
(end_points, ema_end_points, map_ind)
models/loss_helper_sess.py:300
↓ 1 callersFunctioncompute_objectness_loss
Compute objectness loss for the proposals. Args: end_points: dict (read-only) Returns: objectness_loss: scalar Tensor
models/loss_helper.py:68
↓ 1 callersFunctioncompute_objectness_loss
Compute objectness loss for the proposals. Args: end_points: dict (read-only) Returns: objectness_loss: scalar Tensor
models/loss_helper_sess.py:73
↓ 1 callersFunctioncompute_size_consistency_loss
(end_points, ema_end_points, map_ind, config)
models/loss_helper_sess.py:316
↓ 1 callersFunctioncompute_vote_loss
Compute vote loss: Match predicted votes to GT votes. Args: end_points: dict (read-only) Returns: vote_loss: scalar Ten
models/loss_helper.py:21
↓ 1 callersFunctioncompute_vote_loss
Compute vote loss: Match predicted votes to GT votes. Args: end_points: dict (read-only) Returns: vote_loss: scalar Tensor
models/loss_helper_sess.py:23
↓ 1 callersFunctionconvert_box_to_trimesh_fmt
(box)
utils/pc_util.py:370
↓ 1 callersFunctiondata_viz
Examine and visualize SUN RGB-D data.
sunrgbd/sunrgbd_data.py:74
↓ 1 callersFunctiondecode_scores
(net, end_points, num_class, num_heading_bin, num_size_cluster, mean_size_arr)
models/proposal_module.py:20
↓ 1 callersFunctiondemo_nn_distance
()
utils/nn_distance.py:63
↓ 1 callersFunctiondump_results
Dump results. Args: end_points: dict {..., pred_mask} pred_mask is a binary mask array of size (batch_size, num_
models/dump_helper.py:24
↓ 1 callersFunctioneval
()
eval.py:188
↓ 1 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:210
↓ 1 callersFunctioneval_inductive
(labeled_ratio=0.1)
scripts/run_sess_sunrgbd.py:28
↓ 1 callersFunctioneval_inductive
(labeled_ratio=0.1)
scripts/run_sess_scannet.py:28
↓ 1 callersFunctioneval_transductive
(labeled_ratio=0.1)
scripts/run_sess_sunrgbd.py:43
↓ 1 callersFunctioneval_transductive
(labeled_ratio=0.1)
scripts/run_sess_scannet.py:43
↓ 1 callersFunctionevaluate_one_epoch
()
eval.py:136
↓ 1 callersFunctionevaluate_one_epoch
()
train_sess.py:296
↓ 1 callersFunctionevaluate_one_epoch
()
pretrain_votenet.py:260
↓ 1 callersFunctionexport_one_scan
(scan_name, output_filename_prefix)
scannet/batch_load_scannet_data.py:47
↓ 1 callersFunctionget_box3d_dim_statistics
Collect 3D bounding box statistics. Used for computing mean box sizes.
sunrgbd/sunrgbd_data.py:264
↓ 1 callersFunctionget_current_consistency_weight
(epoch)
train_sess.py:227
↓ 1 callersFunctionget_iou
Calculate the Intersection over Union (IoU) of two 2D bounding boxes. Parameters ---------- bb1 : dict Keys: {'x1', 'x2', 'y
utils/box_util.py:167
↓ 1 callersFunctionget_iou_main
(get_iou_func, args)
utils/eval_det.py:74
↓ 1 callersMethodget_labeled_samples
(self)
sunrgbd/sunrgbd_detection_dataset.py:82
↓ 1 callersMethodget_labeled_samples
(self)
scannet/scannet_detection_dataset.py:216
↓ 1 callersFunctionget_loss
Loss functions Args: end_points: dict { seed_xyz, seed_inds, vote_xyz, center,
models/loss_helper.py:186
↓ 1 callersFunctiongroundtruths2corners3d
Convert predictions to OBB parameters (eight corner points) Args: end_points: dict {center_label, heading_class_label, headin
models/ap_helper.py:212
↓ 1 callersMethodimage_summary
Log a list of images.
utils/tf_logger.py:26
↓ 1 callersFunctionin_hull
(p, hull)
sunrgbd/sunrgbd_utils.py:215
next →1–100 of 289, ranked by callers