MCPcopy Index your code

hub / github.com/YXB-NKU/Strip-R-CNN / functions

Functions746 in github.com/YXB-NKU/Strip-R-CNN

↓ 2 callersFunctioncompat_runner_args
(cfg)
mmrotate/utils/compat_config.py:22
↓ 2 callersMethodcreate_rotation_matrix
Create rotation matrix.
mmrotate/datasets/pipelines/transforms.py:176
↓ 2 callersFunctiondist_torch
Calculate the distance between two points. Args: point1 (torch.Tensor): shape(n, 2). point2 (torch.Tensor): shape(n, 2). Ret
mmrotate/core/bbox/transforms.py:870
↓ 2 callersFunctionennMaxPool
enn Max Pooling.
mmrotate/models/utils/enn.py:147
↓ 2 callersMethodestimate_log_prob
Estimate the log-likelihood probability that samples belong to the k-th Gaussian. Args: x (torch.Tensor): (T, n, d) or (T
mmrotate/core/bbox/utils/gmm.py:186
↓ 2 callersFunctionfair_to_dota
(in_path, out_path)
tools/data/fair/fair_to_dota.py:37
↓ 2 callersMethodfit
Fits Gaussian mixture model to the data. Args: x (torch.Tensor): input tensor. delta (float, optional): threshold.
mmrotate/core/bbox/utils/gmm.py:133
↓ 2 callersMethodformat_results
Format the results to submission text (standard format for DOTA evaluation). Args: results (list): Testing results of the
mmrotate/datasets/fair.py:327
↓ 2 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_met
mmrotate/models/dense_heads/odm_refine_head.py:126
↓ 2 callersFunctionget_expansion
Get the expansion of a residual block. The block expansion will be obtained by the following order: 1. If ``expansion`` is given, just retur
mmrotate/models/backbones/re_resnet.py:286
↓ 2 callersFunctionget_num_level_anchors_inside
Get number of every level anchors inside. Args: num_level_anchors (List[int]): List of number of every level's anchors. inside_fl
mmrotate/models/dense_heads/utils.py:80
↓ 2 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_meta
mmrotate/models/dense_heads/sam_reppoints_head.py:247
↓ 2 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_meta
mmrotate/models/dense_heads/rotated_reppoints_head.py:246
↓ 2 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_meta
mmrotate/models/dense_heads/oriented_reppoints_head.py:283
↓ 2 callersFunctionget_root_logger
Get root logger. Args: log_file (str, optional): File path of log. Defaults to None. log_level (int, optional): The level of logg
mmrotate/utils/logger.py:7
↓ 2 callersMethodget_targets
Compute corresponding GT box and classification targets for proposals. Args: proposals_list (list[list]): Multi level poi
mmrotate/models/dense_heads/sam_reppoints_head.py:432
↓ 2 callersMethodget_targets
Compute corresponding GT box and classification targets for proposals. Args: proposals_list (list[list]): Multi level poi
mmrotate/models/dense_heads/rotated_reppoints_head.py:369
↓ 2 callersMethodget_targets
Compute corresponding GT box and classification targets for proposals in initial stage. Args: proposals_list (list[list])
mmrotate/models/dense_heads/oriented_reppoints_head.py:732
↓ 2 callersFunctiongt2gaussian
Convert polygons to Gaussian distributions. Args: target (torch.Tensor): Polygons with shape (N, 8). Returns: dict[str, torc
mmrotate/core/bbox/transforms.py:916
↓ 2 callersFunctionimshow_det_rbboxes
Draw bboxes and class labels (with scores) on an image. Args: img (str | ndarray): The image to be displayed. bboxes (ndarray): B
mmrotate/core/visualization/image.py:77
↓ 2 callersMethodinit_weights
Initialize weights of the head.
mmrotate/models/necks/re_fpn.py:127
↓ 2 callersMethodoffset_to_pts
Change from point offset to point coordinate.
mmrotate/models/dense_heads/sam_reppoints_head.py:275
↓ 2 callersMethodoffset_to_pts
Change from point offset to point coordinate.
mmrotate/models/dense_heads/rotated_reppoints_head.py:271
↓ 2 callersMethodoffset_to_pts
Change from point offset to point coordinate.
mmrotate/models/dense_heads/oriented_reppoints_head.py:308
↓ 2 callersFunctionparse_require_file
(fpath)
setup.py:76
↓ 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
mmrotate/core/bbox/samplers/rotate_random_sampler.py:33
↓ 2 callersMethodregress_by_class
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: rois (torch.Tensor): shape (n, 4) or (n, 5) la
mmrotate/models/roi_heads/bbox_heads/gv_bbox_head.py:592
↓ 2 callersFunctionskip_pipeline_steps
(config)
tools/misc/browse_dataset.py:57
↓ 2 callersMethodtrain
Train function of ReResNet.
mmrotate/models/backbones/re_resnet.py:608
↓ 2 callersMethodupdate_mu
Updates mean to the provided value. Args: mu (torch.Tensor):
mmrotate/core/bbox/utils/gmm.py:309
↓ 2 callersMethodupdate_var
Updates variance to the provided value. Args: var (torch.Tensor): (T, k, d) or (T, k, d, d)
mmrotate/core/bbox/utils/gmm.py:325
↓ 2 callersFunctionxy_wh_r_2_xy_sigma
Convert oriented bounding box to 2-D Gaussian distribution. Args: xywhr (torch.Tensor): rbboxes with shape (N, 5). Returns:
mmrotate/models/losses/kf_iou_loss.py:9
↓ 1 callersFunctionAspectRatio
Compute the aspect ratio of all gts. Args: gt_rbboxes (torch.Tensor): Groundtruth polygons, shape (k, 8). Returns: ratios (t
mmrotate/core/bbox/assigners/sas_assigner.py:48
↓ 1 callersFunctionAspectRatio
Compute the aspect ratio of all gts. Args: gt_rbboxes (torch.Tensor): Groundtruth polygons, shape (k, 8). Returns: ratios (t
mmrotate/models/losses/convex_giou_loss.py:314
↓ 1 callersMethodAspectRatio
compute the aspect ratio of all gts. Args: gt_rbboxes (torch.Tensor): Groundtruth polygons, shape (k, 8). Returns:
mmrotate/core/bbox/assigners/atss_kld_assigner.py:259
↓ 1 callersMethodEM_step
From the log-probabilities, computes new parameters pi, mu, var (that maximize the log-likelihood). This is the maximization step of t
mmrotate/core/bbox/utils/gmm.py:243
↓ 1 callersMethod__init__
(self, angle_range='oc', **kwargs)
mmrotate/core/bbox/coder/gliding_vertex_coder.py:21
↓ 1 callersMethod__init__
(self, in_channels, out_channels, num_outs,
mmrotate/models/necks/re_fpn.py:178
↓ 1 callersMethod__init__
(self, inplanes, planes, stride=1, dilatio
mmrotate/models/backbones/resnet.py:14
↓ 1 callersMethod__init__
(self)
mmrotate/models/utils/cnn.py:43
↓ 1 callersMethod__init__
(self, fc_out_channels=1024, *args, **kwargs)
mmrotate/models/roi_heads/bbox_heads/strip_head.py:291
↓ 1 callersMethod__init__
(self, reduction='mean', loss_weight=1.0)
mmrotate/models/losses/convex_giou_loss.py:83
↓ 1 callersMethod_add_conv_strip_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs
mmrotate/models/roi_heads/bbox_heads/strip_head.py:146
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training. Args: x (list[Tensor]): list of multi-level img features.
mmrotate/models/roi_heads/rotate_standard_roi_head.py:181
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training. Args: x (list[Tensor]): list of multi-level img features.
mmrotate/models/roi_heads/oriented_standard_roi_head.py:97
↓ 1 callersMethod_bbox_forward_train
Run forward function and calculate loss for box head in training. Args: x (list[Tensor]): list of multi-level img features.
mmrotate/models/roi_heads/roi_trans_roi_head.py:137
↓ 1 callersFunction_create_dummy_results
Create dummy results.
tests/test_data/test_datasets/test_dota.py:13
↓ 1 callersFunction_create_dummy_results
Create dummy results.
tests/test_data/test_datasets/test_rotate.py:9
↓ 1 callersMethod_filter_box_candidates
Filter out small bboxes and outside bboxes after Mosaic.
mmrotate/datasets/pipelines/transforms.py:553
↓ 1 callersMethod_freeze_stages
(self)
mmrotate/models/backbones/pkinet.py:439
↓ 1 callersMethod_get_bboxes_single
Transform outputs for a single batch item into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for a single scale l
mmrotate/models/dense_heads/rotated_fcos_head.py:550
↓ 1 callersMethod_get_bboxes_single
Transform outputs of a single image into bbox predictions. Args: cls_score_list (list[Tensor]): Box scores from all scale
mmrotate/models/dense_heads/sam_reppoints_head.py:741
↓ 1 callersMethod_get_bboxes_single
Transform outputs of a single image into bbox predictions. Args: cls_score_list (list[Tensor]): Box scores from all scale
mmrotate/models/dense_heads/rotated_reppoints_head.py:1073
↓ 1 callersMethod_get_bboxes_single
Transform outputs of a single image into bbox predictions. Args: cls_score_list (list[Tensor]): Box scores from all scale
mmrotate/models/dense_heads/oriented_reppoints_head.py:1090
↓ 1 callersFunction_get_config_directory
Find the predefined detector config directory.
tests/test_models/test_forward.py:11
↓ 1 callersFunction_get_config_module
Load a configuration as a python module.
tests/test_models/test_forward.py:26
↓ 1 callersMethod_init_layers
Initialize layers of the head.
mmrotate/models/dense_heads/odm_refine_head.py:61
↓ 1 callersMethod_init_layers
Initialize layers of the head.
mmrotate/models/dense_heads/sam_reppoints_head.py:154
↓ 1 callersMethod_init_layers
Initialize layers of the head.
mmrotate/models/dense_heads/rotated_reppoints_head.py:156
↓ 1 callersMethod_init_layers
Initialize layers of the head.
mmrotate/models/dense_heads/rotated_anchor_head.py:107
↓ 1 callersMethod_init_layers
Initialize layers of the head.
mmrotate/models/dense_heads/oriented_reppoints_head.py:197
↓ 1 callersMethod_init_layers
Initialize layers of the head.
mmrotate/models/detectors/utils.py:110
↓ 1 callersMethod_init_layers
Initialize layers of feature refine module.
mmrotate/models/detectors/utils.py:160
↓ 1 callersFunction_load_dota_txt
Load DOTA's txt annotation. Args: txtfile (str): Filename of single txt annotation. Returns: dict: Annotation of single imag
tools/data/dota/split/img_split.py:495
↓ 1 callersFunction_load_dota_txt
Load DOTA's txt annotation. Args: txtfile (str): Filename of single txt annotation. Returns: dict: Annotation of single imag
tools/data/fair/img_split.py:497
↓ 1 callersMethod_make_stem_layer
Build stem layer.
mmrotate/models/backbones/re_resnet.py:561
↓ 1 callersMethod_results2submission
Generate the submission of full images. Args: id_list (list): Id of images. dets_list (list): Detection results of pe
mmrotate/datasets/fair.py:287
↓ 1 callersMethod_results2submission
Generate the submission of full images. Args: id_list (list): Id of images. dets_list (list): Detection results of pe
mmrotate/datasets/dota.py:257
↓ 1 callersMethod_results2submission
Generate the submission of full images. Args: id_list (list): Id of images. dets_list (list): Detection results of pe
mmrotate/datasets/dota_1_5.py:257
↓ 1 callersMethod_sample_neg
Randomly sample some negative samples.
mmrotate/core/bbox/samplers/rotate_random_sampler.py:69
↓ 1 callersMethod_sample_pos
Randomly sample some positive samples.
mmrotate/core/bbox/samplers/rotate_random_sampler.py:59
↓ 1 callersFunctionadd_mim_extension
Add extra files that are required to support MIM into the package. These files will be added by creating a symlink to the originals if the pa
setup.py:102
↓ 1 callersFunctionadd_parser
Add arguments.
tools/data/dota/split/img_split.py:30
↓ 1 callersFunctionadd_parser
Add arguments.
tools/data/fair/img_split.py:33
↓ 1 callersFunctionadd_plot_parser
Add plot parser.
tools/analysis_tools/analyze_logs.py:102
↓ 1 callersFunctionadd_time_parser
Add time parser.
tools/analysis_tools/analyze_logs.py:131
↓ 1 callersFunctionanalyze_per_img_dets
Analyze detection results on each image. Args: confusion_matrix (ndarray): The confusion matrix, has shape (num_classes + 1,
tools/analysis_tools/confusion_matrix.py:97
↓ 1 callersMethodapply_coords
coords should be a N * 2 array-like, containing N couples of (x, y) points
mmrotate/datasets/pipelines/transforms.py:166
↓ 1 callersMethodapply_image
img should be a numpy array, formatted as Height * Width * Nchannels
mmrotate/datasets/pipelines/transforms.py:157
↓ 1 callersMethodassign_wrt_overlaps
Assign w.r.t. the overlaps of bboxes with gts. Args: overlaps (torch.Tensor): Overlaps between k gt_bboxes and n bboxes,
mmrotate/core/bbox/assigners/max_convex_iou_assigner.py:124
↓ 1 callersFunctionaug_multiclass_nms_rotated
NMS for aug multi-class bboxes. Args: multi_bboxes (torch.Tensor): shape (n, #class*5) or (n, 5) multi_scores (torch.Tensor): sha
mmrotate/core/post_processing/bbox_nms_rotated.py:95
↓ 1 callersFunctionbbox2delta
We usually compute the deltas of x, y, w, h, a of proposals w.r.t ground truth bboxes to get regression target. This is the inverse function of
mmrotate/core/bbox/coder/delta_xywha_rbbox_coder.py:112
↓ 1 callersFunctionbbox2delta
We usually compute the deltas of x, y, w, h, a of proposals w.r.t ground truth bboxes to get regression target. This is the inverse function of
mmrotate/core/bbox/coder/delta_xywha_hbbox_coder.py:117
↓ 1 callersFunctionbbox2delta
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h, a, b of proposals w.r.t ground truth bboxes to get regres
mmrotate/core/bbox/coder/delta_midpointoffset_rbbox_coder.py:88
↓ 1 callersFunctionbbox_flip
Flip bboxes horizontally or vertically. Args: bboxes (Tensor): Shape (..., 5*k) img_shape (tuple): Image shape. direction
mmrotate/core/bbox/transforms.py:9
↓ 1 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale.
mmrotate/core/bbox/transforms.py:42
↓ 1 callersFunctionbbox_overlaps_iof
Compute bbox overlaps (iof). Args: bboxes1 (np.array): Horizontal bboxes1. bboxes2 (np.array): Horizontal bboxes2. eps (f
tools/data/dota/split/img_split.py:202
↓ 1 callersFunctionbbox_overlaps_iof
Compute bbox overlaps (iof). Args: bboxes1 (np.array): Horizontal bboxes1. bboxes2 (np.array): Horizontal bboxes2. eps (f
tools/data/fair/img_split.py:204
↓ 1 callersFunctionbuild_iou_calculator
Builder of IoU calculator.
mmrotate/core/bbox/iou_calculators/builder.py:8
↓ 1 callersFunctionbuild_shared_head
Build shared head.
mmrotate/models/builder.py:30
↓ 1 callersFunctioncalculate_confusion_matrix
Calculate the confusion matrix. Args: dataset (Dataset): Test or val dataset. results (list[ndarray]): A list of detection result
tools/analysis_tools/confusion_matrix.py:61
↓ 1 callersFunctionconvex_overlaps
Compute overlaps between polygons and points. Args: gt_rbboxes (torch.Tensor): Groundtruth polygons, shape (k, 8). points (torch.
mmrotate/core/bbox/assigners/sas_assigner.py:10
↓ 1 callersFunctionconvex_overlaps
Compute overlaps between polygons and points. Args: gt_rbboxes (torch.Tensor): Groundtruth polygons, shape (k, 8). points (torch.
mmrotate/models/dense_heads/utils.py:31
↓ 1 callersFunctioncrop_and_save_img
Args: info (dict): Image's information. windows (np.array): information of sliding windows. window_anns (list[dict]): Li
tools/data/dota/split/img_split.py:277
↓ 1 callersFunctioncrop_and_save_img
Args: info (dict): Image's information. windows (np.array): information of sliding windows. window_anns (list[dict]): Li
tools/data/fair/img_split.py:279
↓ 1 callersFunctiondelta2bbox
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
mmrotate/core/bbox/coder/delta_xywha_rbbox_coder.py:180
↓ 1 callersFunctiondelta2bbox
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
mmrotate/core/bbox/coder/delta_xywha_hbbox_coder.py:183
↓ 1 callersFunctiondelta2bbox
Apply deltas to shift/scale base boxes. Typically the rois are anchor or proposed bounding boxes and the deltas are network outputs used to s
mmrotate/core/bbox/coder/delta_midpointoffset_rbbox_coder.py:153
↓ 1 callersMethoddistance2obb
(self, points, distance, max_shape=None,
mmrotate/core/bbox/coder/distance_angle_point_coder.py:93
↓ 1 callersFunctiondota_to_fair
src_path: dota txt format result path. e.g. ../../../worl_dirs/results/orcnn_res50 tar_path: the file path to save the xml result ima
tools/data/fair/dota_to_fair.py:39
← previousnext →101–200 of 746, ranked by callers