MCPcopy Create free account

hub / github.com/SJTU-Thinklab-Det/r3det-pytorch / functions

Functions313 in github.com/SJTU-Thinklab-Det/r3det-pytorch

↓ 9 callersMethoddot
r3det/ops/rnms/src/rcpu/rnms_cpu.cpp:17
↓ 8 callersFunctionmake_cuda_ext
(name, module, sources, sources_cuda=[])
setup.py:26
↓ 7 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
setup.py:50
↓ 6 callersMethodcross
r3det/ops/rnms/src/rcpu/rnms_cpu.cpp:21
↓ 6 callersMethodcross
r3det/ops/polygon_geo/src/polygon_geo_cpu.cpp:20
↓ 6 callersMethoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: bboxes (torch.Tensor): Basic boxes. Shape (B, N, 5) or (N, 5) pre
r3det/core/bbox/coder/delta_xywha_rbbox_coder.py:67
↓ 4 callersFunctioncal_line_length
Calculate the length of line. Args: point1 (List): [x,y] point2 (List): [x,y] Returns: length (float)
r3det/core/bbox/rtransforms.py:728
↓ 4 callersMethoddot
r3det/ops/polygon_geo/src/polygon_geo_cpu.cpp:16
↓ 4 callersMethodextract_feat
Directly extract features from the backbone+neck.
r3det/models/detectors/r3det.py:52
↓ 4 callersMethodinit_weights
Initialize weights of the head.
r3det/models/dense_heads/rotate_retina_head.py:84
↓ 4 callersFunctionnorm_angle
Limit the range of angles. Args: angle (ndarray): shape(n, ). angle_range (Str): angle representations. Returns: angl
r3det/core/bbox/rtransforms.py:789
↓ 4 callersFunctionobb2poly_np
Convert oriented bounding boxes to polygons. Args: obbs (ndarray): [x_ctr,y_ctr,w,h,angle] version (Str): angle representations.
r3det/core/bbox/rtransforms.py:130
↓ 4 callersFunctionobb2poly_v2
Convert oriented bounding boxes to polygons. Args: obbs (torch.Tensor): [x_ctr,y_ctr,w,h,angle] Returns: polys (torch.Tensor)
r3det/core/bbox/rtransforms.py:391
↓ 3 callersMethod_get_bboxes_single
Transform outputs for a single batch item into bbox predictions. Args: cls_score_list (list[Tensor]): Box scores for a single sca
r3det/models/dense_heads/rotate_anchor_head.py:590
↓ 3 callersFunctionarea
r3det/ops/polygon_geo/src/polygon_geo_cpu.cpp:190
↓ 3 callersFunctiondigit_version
(version_str)
r3det/__init__.py:11
↓ 3 callersMethodfilter_bboxes
Filter predicted bounding boxes at each position of the feature maps. Only one bounding boxes with highest score will be left at each
r3det/models/dense_heads/rotate_retina_head.py:118
↓ 3 callersFunctionpoly2obb_np
Convert polygons to oriented bounding boxes. Args: polys (ndarray): [x0,y0,x1,y1,x2,y2,x3,y3] version (Str): angle representation
r3det/core/bbox/rtransforms.py:70
↓ 3 callersMethodrefine_bboxes
This function will be used in S2ANet, whose num_anchors=1. Args: cls_scores (list[Tensor]): Box scores for each scale level
r3det/models/dense_heads/rotate_retina_head.py:182
↓ 2 callersMethod_save_image_gts_results
(self, dataset, results, mAPs, out_dir=None)
tools/analysis_tools/analyze_results.py:63
↓ 2 callersMethodcreate_rotation_matrix
Create rotation matrix.
r3det/datasets/pipelines/rtransforms.py:140
↓ 2 callersFunctiondist_torch
Calculate the distance between two points. Args: point1 (torch.Tensor): shape(n, 2). point2 (torch.Tensor): shape(n, 2). Retu
r3det/core/bbox/rtransforms.py:808
↓ 2 callersFunctioneval_map
Evaluate mAP of a dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indicates images,
r3det/datasets/dota1.py:324
↓ 2 callersMethodget_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
r3det/models/dense_heads/rotate_anchor_head.py:500
↓ 2 callersFunctionimshow_det_rbboxes
Draw bboxes and class labels (with scores) on an image. Args: img (str or ndarray): The image to be displayed. bboxes (ndarray):
r3det/core/visualization/image.py:10
↓ 2 callersMethodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
r3det/models/dense_heads/rotate_anchor_head.py:430
↓ 2 callersFunctionobb2poly
Convert obboxes to polygons. Args: obboxes (torch.Tensor): Oriented bboxes. Returns: polygons (torch.Tensor)
r3det/ops/box_iou_rotated/box_iou_rotated_wrapper.py:95
↓ 2 callersFunctionparse_require_file
(fpath)
setup.py:102
↓ 2 callersFunctionpolygon2points
r3det/ops/polygon_geo/src/polygon_geo_cpu.cpp:123
↓ 2 callersMethodrandom_choice
Random select some elements from the gallery. If `gallery` is a Tensor, the returned indices will be a Tensor; If `gallery` is a ndar
r3det/core/bbox/samplers/rotate_random_sampler.py:31
↓ 2 callersFunctionrbbox2points
r3det/ops/rnms/src/rcpu/rnms_cpu.cpp:130
↓ 2 callersFunctionrbbox2result
Convert detection results to a list of numpy arrays. Args: bboxes (torch.Tensor): shape (n, 6) labels (torch.Tensor): shape (n, )
r3det/core/bbox/rtransforms.py:10
↓ 2 callersFunctionshoelace
Compute the areas of polygons. Args: pts (torch.Tensor) Returns: areas (torch.Tensor)
r3det/ops/box_iou_rotated/box_iou_rotated_wrapper.py:116
↓ 2 callersFunctionskip_pipeline_steps
(config)
tools/misc/browse_dataset.py:50
↓ 2 callersFunctionvertex_in_polygon
r3det/ops/polygon_geo/src/polygon_geo_cpu.cpp:147
↓ 2 callersFunctionvertex_in_rbbox
r3det/ops/rnms/src/rcpu/rnms_cpu.cpp:145
↓ 1 callersMethodInterSectWith
r3det/ops/rnms/src/rcpu/rnms_cpu.cpp:72
↓ 1 callersMethodInterSectWith
r3det/ops/polygon_geo/src/polygon_geo_cpu.cpp:71
↓ 1 callersMethod__init__
(self, spatial_scale, points=1)
r3det/ops/fr/feature_refine_module.py:49
↓ 1 callersMethod__init__
(self, img_scale=None, multiscale_mode='range', ratio_range
r3det/datasets/pipelines/rtransforms.py:20
↓ 1 callersMethod_init_layers
Initialize layers of feature refine module.
r3det/ops/fr/feature_refine_module.py:81
↓ 1 callersMethod_init_layers
Initialize layers of the head.
r3det/models/dense_heads/rotate_anchor_head.py:95
↓ 1 callersFunction_load_dota_txt
(txtfile)
tools/split/img_split.py:388
↓ 1 callersMethod_results2submission
Generate the submission of full images. Params: results (list): Testing results of the dataset. out_folder (str, opti
r3det/datasets/dota1.py:250
↓ 1 callersMethod_sample_neg
Randomly sample some negative samples.
r3det/core/bbox/samplers/rotate_random_sampler.py:67
↓ 1 callersMethod_sample_pos
Randomly sample some positive samples.
r3det/core/bbox/samplers/rotate_random_sampler.py:57
↓ 1 callersFunctionadd_parser
(parser)
tools/split/img_split.py:27
↓ 1 callersFunctionadd_plot_parser
(subparsers)
tools/analysis_tools/analyze_logs.py:100
↓ 1 callersFunctionadd_time_parser
(subparsers)
tools/analysis_tools/analyze_logs.py:128
↓ 1 callersFunctionaligned_obb_overlaps
Compute overlaps of polygons. Args: bboxes1 (torch.Tensor): shape (m, 5) bboxes2 (torch.Tensor): shape (n, 5) mode (str,
r3det/ops/box_iou_rotated/box_iou_rotated_wrapper.py:67
↓ 1 callersMethodapply_coords
coords should be a N * 2 array-like, containing N couples of (x, y) points
r3det/datasets/pipelines/rtransforms.py:130
↓ 1 callersMethodapply_image
img should be a numpy array, formatted as Height * Width * Nchannels
r3det/datasets/pipelines/rtransforms.py:121
↓ 1 callersFunctionarea
r3det/ops/rnms/src/rcpu/rnms_cpu.cpp:186
↓ 1 callersFunctionbatched_rnms
Performs non-maximum suppression in a batched fashion. Modified from https://github.com/pytorch/vision/blob /505cd6957711af790211896d32b40291
r3det/ops/rnms/rnms_wrapper.py:34
↓ 1 callersFunctionbbox2delta_v1
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h, a of proposals w.r.t ground truth bboxes to get regre
r3det/core/bbox/coder/delta_xywha_rbbox_coder.py:105
↓ 1 callersFunctionbbox2delta_v1
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h, a of proposals w.r.t ground truth bboxes to get regre
r3det/core/bbox/coder/delta_xywha_hbbox_coder.py:113
↓ 1 callersFunctionbbox2delta_v2
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h, a of proposals w.r.t ground truth bboxes to get regre
r3det/core/bbox/coder/delta_xywha_rbbox_coder.py:215
↓ 1 callersFunctionbbox2delta_v2
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h, a of proposals w.r.t ground truth bboxes to get regre
r3det/core/bbox/coder/delta_xywha_hbbox_coder.py:239
↓ 1 callersFunctionbbox2delta_v3
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h, a of proposals w.r.t ground truth bboxes to get regre
r3det/core/bbox/coder/delta_xywha_rbbox_coder.py:315
↓ 1 callersFunctionbbox2delta_v3
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h, a of proposals w.r.t ground truth bboxes to get regre
r3det/core/bbox/coder/delta_xywha_hbbox_coder.py:365
↓ 1 callersFunctionbbox_overlaps_iof
(bboxes1, bboxes2, eps=1e-6)
tools/split/img_split.py:189
↓ 1 callersFunctionbox_iou_rotated
r3det/ops/box_iou_rotated/src/box_iou_rotated_ext.cpp:17
↓ 1 callersFunctionbox_iou_rotated_cpu
r3det/ops/box_iou_rotated/src/box_iou_rotated_cpu.cpp:23
↓ 1 callersFunctionconvex_areas
Calculate the convex areas of polygons according to pts and masks. Args: pts (torch.Tensor) masks (torch.Tensor) Returns:
r3det/ops/box_iou_rotated/box_iou_rotated_wrapper.py:130
↓ 1 callersFunctionconvex_sort
convex sort function.
r3det/ops/convex/convex_wrapper.py:25
↓ 1 callersFunctionconvex_sort_cpu
r3det/ops/convex/src/convex_cpu.cpp:96
↓ 1 callersFunctioncrop_and_save_img
(info, windows, window_anns, img_dir, no_padding, padding_value, save_dir, anno_dir, img
tools/split/img_split.py:244
↓ 1 callersFunctiondelta2bbox_v1
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to sh
r3det/core/bbox/coder/delta_xywha_rbbox_coder.py:143
↓ 1 callersFunctiondelta2bbox_v1
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to sh
r3det/core/bbox/coder/delta_xywha_hbbox_coder.py:161
↓ 1 callersFunctiondelta2bbox_v2
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to sh
r3det/core/bbox/coder/delta_xywha_rbbox_coder.py:256
↓ 1 callersFunctiondelta2bbox_v2
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to sh
r3det/core/bbox/coder/delta_xywha_hbbox_coder.py:287
↓ 1 callersFunctiondelta2bbox_v3
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to sh
r3det/core/bbox/coder/delta_xywha_rbbox_coder.py:364
↓ 1 callersFunctiondelta2bbox_v3
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to sh
r3det/core/bbox/coder/delta_xywha_hbbox_coder.py:417
↓ 1 callersMethodencode
Get box regression transformation deltas that can be used to transform the ``bboxes`` into the ``gt_bboxes``. Args: bboxes
r3det/core/bbox/coder/delta_xywha_rbbox_coder.py:44
↓ 1 callersMethodevaluate
Evaluate the dataset. Args: results (list): Testing results of the dataset. metric (str | list[str]): Metrics to be e
r3det/datasets/dota1.py:162
↓ 1 callersMethodevaluate_and_show
Evaluate and show results. Args: dataset (Dataset): A PyTorch dataset. results (list): Det results from test results
tools/analysis_tools/analyze_results.py:89
↓ 1 callersMethodfilter_border
Filter the box whose center point is outside or whose side length is less than 5.
r3det/datasets/pipelines/rtransforms.py:157
↓ 1 callersMethodformat_results
Format the results to submission text (standard format for DOTA evaluation). Args: results (list): Testing results of the
r3det/datasets/dota1.py:294
↓ 1 callersMethodforward
Forward function.
r3det/ops/fr/feature_refine_module.py:54
↓ 1 callersFunctiongen_packages_items
()
setup.py:110
↓ 1 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_met
r3det/models/dense_heads/rotate_anchor_head.py:142
↓ 1 callersFunctionget_best_begin_point
Get the best begin points of polygons. Args: coordinate (ndarray): shape(n, 9). Returns: reorder coordinate (ndarray): shape(
r3det/core/bbox/rtransforms.py:776
↓ 1 callersFunctionget_cls_results
Get det results and gt information of a certain class. Args: det_results (list[list]): Same as `eval_map()`. annotations (list[di
r3det/datasets/dota1.py:600
↓ 1 callersFunctionget_sliding_window
(info, sizes, gaps, img_rate_thr)
tools/split/img_split.py:142
↓ 1 callersMethodget_targets
Compute regression and classification targets for anchors in multiple images. Args: anchor_list (list[list[Tensor]]): Mul
r3det/models/dense_heads/rotate_anchor_head.py:279
↓ 1 callersFunctionget_version
()
setup.py:19
↓ 1 callersFunctionget_window_obj
(info, windows, iof_thr)
tools/split/img_split.py:224
↓ 1 callersFunctionhbb2obb_v1
Convert horizontal bounding boxes to oriented bounding boxes. Args: hbbs (torch.Tensor): [x_lt,y_lt,x_rb,y_rb] Returns: obbs
r3det/core/bbox/rtransforms.py:540
↓ 1 callersFunctionhbb2obb_v2
Convert horizontal bounding boxes to oriented bounding boxes. Args: hbbs (torch.Tensor): [x_lt,y_lt,x_rb,y_rb] Returns: obbs
r3det/core/bbox/rtransforms.py:557
↓ 1 callersFunctionhbb2obb_v3
Convert horizontal bounding boxes to oriented bounding boxes. Args: hbbs (torch.Tensor): [x_lt,y_lt,x_rb,y_rb] Returns: obbs
r3det/core/bbox/rtransforms.py:576
↓ 1 callersMethodinit_weights
Initialize weights of feature refine module.
r3det/ops/fr/feature_refine_module.py:102
↓ 1 callersFunctionload_dota
(img_dir, ann_dir=None, nproc=10)
tools/split/img_split.py:351
↓ 1 callersFunctionload_json_logs
(json_logs)
tools/analysis_tools/analyze_logs.py:154
↓ 1 callersFunctionmain
()
tools/train.py:88
↓ 1 callersFunctionmain
()
tools/test.py:108
↓ 1 callersFunctionmain
()
tools/model_converters/publish_model.py:37
↓ 1 callersFunctionmain
()
tools/analysis_tools/benchmark.py:168
↓ 1 callersFunctionmain
()
tools/analysis_tools/analyze_results.py:176
↓ 1 callersFunctionmain
()
tools/analysis_tools/analyze_logs.py:174
↓ 1 callersFunctionmain
()
tools/analysis_tools/get_flops.py:44
next →1–100 of 313, ranked by callers