MCPcopy Index your code

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

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

↓ 38 callersMethoddecode
Circular Smooth Label Decoder. Args: angle_preds (Tensor): The csl encoding of angle offset for each scale level.
mmrotate/core/bbox/coder/angle_coder.py:99
↓ 29 callersFunctiondigit_version
Digit version.
mmrotate/__init__.py:11
↓ 24 callersFunctionbuild_loss
Build loss.
mmrotate/models/builder.py:40
↓ 16 callersMethodassign
Assign gt to bboxes. The assignment is done in following steps 1. compute iou between all bbox (bbox of all pyramid levels) and gt
mmrotate/core/bbox/assigners/sas_assigner.py:89
↓ 16 callersFunctionnorm_angle
Limit the range of angles. Args: angle (ndarray): shape(n, ). angle_range (Str): angle representations. Returns: ang
mmrotate/core/bbox/transforms.py:850
↓ 13 callersFunctionbuild_enn_divide_feature
build a enn regular feature map with the specified number of channels divided by N.
mmrotate/models/utils/enn.py:9
↓ 11 callersMethodencode
Circular Smooth Label Encoder. Args: angle_targets (Tensor): Angle offset for each scale level Has shape (num_anc
mmrotate/core/bbox/coder/angle_coder.py:40
↓ 11 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmrotate/core/bbox/samplers/rotate_random_sampler.py:79
↓ 10 callersFunctionbuild_dataset
(cfg, default_args=None)
mmrotate/datasets/builder.py:22
↓ 10 callersMethodloss
Loss function of ODMRefineHead.
mmrotate/models/dense_heads/odm_refine_head.py:156
↓ 9 callersFunctionbuild_assigner
Builder of box assigner.
mmrotate/core/bbox/builder.py:10
↓ 9 callersFunctionbuild_bbox_coder
Builder of box coder.
mmrotate/core/bbox/builder.py:20
↓ 9 callersFunctionbuild_head
Build head.
mmrotate/models/builder.py:35
↓ 9 callersFunctionmulticlass_nms_rotated
NMS for multi-class bboxes. Args: multi_bboxes (torch.Tensor): shape (n, #class*5) or (n, 5) multi_scores (torch.Tensor): shape (
mmrotate/core/post_processing/bbox_nms_rotated.py:6
↓ 8 callersMethod__init__
( self, channels: int, h_kernel_size: int = 11, v_kernel_size:
mmrotate/models/backbones/pkinet.py:28
↓ 8 callersFunctionbuild_enn_norm_layer
build an enn normalizion layer.
mmrotate/models/utils/enn.py:31
↓ 8 callersFunctionennReLU
enn ReLU.
mmrotate/models/utils/enn.py:116
↓ 8 callersFunctionobb2poly
Convert oriented bounding boxes to polygons. Args: obbs (torch.Tensor): [x_ctr,y_ctr,w,h,angle] version (Str): angle representati
mmrotate/core/bbox/transforms.py:158
↓ 7 callersFunctioncompat_loader_args
Deprecated sample_per_gpu in cfg.data.
mmrotate/utils/compat_config.py:54
↓ 7 callersFunctionennConv
enn convolution. Args: in_channels (List[int]): Number of input channels per scale. out_channels (int): Number of output channels
mmrotate/models/utils/enn.py:37
↓ 7 callersFunctionlevels_to_images
Concat multi-level feature maps by image. [feature_level0, feature_level1...] -> [feature_image0, feature_image1...] Convert the shape of eac
mmrotate/models/dense_heads/utils.py:47
↓ 7 callersFunctionobb2xyxy
Convert oriented bounding boxes to horizontal bounding boxes. Args: obbs (torch.Tensor): [x_ctr,y_ctr,w,h,angle] version (Str): a
mmrotate/core/bbox/transforms.py:200
↓ 7 callersFunctionpoly2obb_np
Convert polygons to oriented bounding boxes. Args: polys (ndarray): [x0,y0,x1,y1,x2,y2,x3,y3] version (Str): angle representation
mmrotate/core/bbox/transforms.py:116
↓ 7 callersFunctionrbbox2result
Convert detection results to a list of numpy arrays. Args: bboxes (torch.Tensor): shape (n, 6) labels (torch.Tensor): shape (n, )
mmrotate/core/bbox/transforms.py:54
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
mmrotate/models/backbones/stripnet.py:15
↓ 6 callersMethod_bbox_forward
Box head forward function used in both training and testing. Args: x (list[Tensor]): list of multi-level img features.
mmrotate/models/roi_heads/gv_ratio_roi_head.py:35
↓ 6 callersFunctionbuild_detector
Build detector.
mmrotate/models/builder.py:45
↓ 6 callersFunctionbuild_sampler
Builder of box sampler.
mmrotate/core/bbox/builder.py:15
↓ 6 callersMethodforward
Forward function.
mmrotate/models/necks/o_fpn.py:151
↓ 6 callersFunctionkld_loss
Kullback-Leibler Divergence loss. Args: pred (torch.Tensor): Predicted bboxes. target (torch.Tensor): Corresponding gt bboxes.
mmrotate/models/losses/gaussian_dist_loss.py:157
↓ 6 callersMethodnorm
Get normalizion layer's name.
mmrotate/models/necks/re_fpn.py:123
↓ 6 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmrotate/models/backbones/resnet.py:58
↓ 6 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
mmrotate/models/backbones/resnet.py:63
↓ 6 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
setup.py:24
↓ 6 callersFunctionpoly2obb
Convert polygons to oriented bounding boxes. Args: polys (torch.Tensor): [x0,y0,x1,y1,x2,y2,x3,y3] version (Str): angle represent
mmrotate/core/bbox/transforms.py:95
↓ 6 callersMethodrefine_bboxes
This function will be used in S2ANet, whose num_anchors=1.
mmrotate/models/dense_heads/rotated_fcos_head.py:636
↓ 6 callersFunctionsetup_multi_processes
Setup multi-processing environment variables.
mmrotate/utils/setup_env.py:10
↓ 5 callersMethod_get_bboxes_single
Transform outputs for a single batch item into bbox predictions. Args: cls_scores (list[Tensor]): Box scores of all scale level
mmrotate/models/dense_heads/rotated_rpn_head.py:429
↓ 5 callersFunctionautopad
(kernel_size: int, padding: int = None, dilation: int = 1)
mmrotate/models/utils/cnn.py:4
↓ 5 callersFunctioneval_rbbox_map
Evaluate mAP of a rotated dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indicates
mmrotate/core/evaluation/eval_map.py:126
↓ 5 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmrotate/models/detectors/r3det.py:52
↓ 5 callersFunctionobb2poly_np
Convert oriented bounding boxes to polygons. Args: obbs (ndarray): [x_ctr,y_ctr,w,h,angle] version (Str): angle representations.
mmrotate/core/bbox/transforms.py:179
↓ 5 callersFunctionpostprocess
Convert distance to loss. Args: distance (torch.Tensor) fun (str, optional): The function applied to distance. Defaul
mmrotate/models/losses/gaussian_dist_loss.py:64
↓ 5 callersFunctionrbbox2roi
Convert a list of bboxes to roi format. Args: bbox_list (list[Tensor]): a list of bboxes corresponding to a batch of images.
mmrotate/core/bbox/transforms.py:73
↓ 4 callersFunctionarea
(bboxes)
tests/test_data/test_pipelines/test_rtransforms.py:160
↓ 4 callersFunctionbuild_backbone
Build backbone.
mmrotate/models/builder.py:15
↓ 4 callersFunctionbuild_neck
Build neck.
mmrotate/models/builder.py:20
↓ 4 callersFunctioncal_line_length
Calculate the length of line. Args: point1 (List): [x,y] point2 (List): [x,y] Returns: length (float)
mmrotate/core/bbox/transforms.py:786
↓ 4 callersMethodcheck_size
Make sure that the shape of x is (T, n, 1, d). Args: x (torch.Tensor): input tensor. Returns: torch.Tensor:
mmrotate/core/bbox/utils/gmm.py:119
↓ 4 callersFunctionconstruct_toy_data
Construct toy data.
tests/test_data/test_pipelines/test_rtransforms.py:32
↓ 4 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmrotate/models/detectors/two_stage.py:65
↓ 4 callersMethodget_bboxes
Transform network output for a batch into bbox predictions. Args: rois (torch.Tensor): Boxes to be transformed. Has shape
mmrotate/models/roi_heads/bbox_heads/gv_bbox_head.py:472
↓ 4 callersMethodget_targets
Calculate the ground truth for all samples in a batch according to the sampling_results. Almost the same as the implementation in bbo
mmrotate/models/roi_heads/bbox_heads/gv_bbox_head.py:267
↓ 4 callersMethodloss
Loss function. Args: cls_score (torch.Tensor): Box scores, has shape (num_boxes, num_classes + 1). bb
mmrotate/models/roi_heads/bbox_heads/gv_bbox_head.py:341
↓ 4 callersFunctionmake_divisible
Make divisible function. This function rounds the channel number to the nearest value that can be divisible by the divisor. It is taken from
mmrotate/models/utils/cnn.py:13
↓ 4 callersMethodpreprocess
Convert the request input to a ndarray. Args : data (list): List of the data from the request input. Returns:
tools/deployment/mmrotate_handler.py:40
↓ 4 callersFunctionrbbox_overlaps
Calculate overlap between two set of bboxes. Args: bboxes1 (torch.Tensor): shape (B, m, 5) in <cx, cy, w, h, a> format or emp
mmrotate/core/bbox/iou_calculators/rotate_iou2d_calculator.py:53
↓ 4 callersFunctionrotated_anchor_inside_flags
Check whether the rotated anchors are inside the border. Args: flat_anchors (torch.Tensor): Flatten anchors, shape (n, 5). valid_
mmrotate/core/anchor/utils.py:2
↓ 3 callersMethod__init__
(self, img_scale=None, multiscale_mode='range', ratio_range
mmrotate/datasets/pipelines/transforms.py:28
↓ 3 callersMethod__init__
(self, block, num_blocks, in_channels, out
mmrotate/models/backbones/re_resnet.py:343
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs
mmrotate/models/roi_heads/bbox_heads/convfc_rbbox_head.py:127
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs
mmrotate/models/roi_heads/bbox_heads/strip_head.py:190
↓ 3 callersMethod_bbox_forward
Box head forward function used in both training and testing. Args: x (list[Tensor]): list of multi-level img features.
mmrotate/models/roi_heads/rotate_standard_roi_head.py:159
↓ 3 callersMethod_bbox_forward
Box head forward function used in both training and testing. Args: x (list[Tensor]): list of multi-level img features.
mmrotate/models/roi_heads/roi_trans_roi_head.py:116
↓ 3 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions n
tests/test_models/test_forward.py:169
↓ 3 callersMethodconvex_overlaps
Compute overlaps between polygons and points. Args: gt_rbboxes (torch.Tensor): Groundtruth polygons, shape (k, 8). po
mmrotate/core/bbox/assigners/max_convex_iou_assigner.py:204
↓ 3 callersMethodevaluate
Evaluate the dataset. Args: results (list): Testing results of the dataset. metric (str | list[str]): Metrics to be e
mmrotate/datasets/dior.py:186
↓ 3 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmrotate/models/detectors/single_stage.py:39
↓ 3 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmrotate/models/detectors/s2anet.py:53
↓ 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
mmrotate/models/dense_heads/rotated_retina_head.py:122
↓ 3 callersFunctionfind_latest_checkpoint
Find the latest checkpoint from the working directory. Args: path(str): The path to find checkpoints. suffix(str): File extension
mmrotate/utils/misc.py:7
↓ 3 callersMethodforward_plugin
(self, x, plugin_names)
mmrotate/models/backbones/resnet.py:243
↓ 3 callersMethodget_bboxes
Transform network output for a batch into labeled boxes. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmrotate/models/dense_heads/odm_refine_head.py:176
↓ 3 callersFunctionget_best_begin_point
Get the best begin points of polygons. Args: coordinate (ndarray): shape(n, 9). Returns: reorder coordinate (ndarray): shape
mmrotate/core/bbox/transforms.py:836
↓ 3 callersFunctionget_palette
Get palette from various inputs. Args: palette (list[tuple] | str | tuple | :obj:`Color`): palette inputs. num_classes (int): the
mmrotate/core/visualization/palette.py:6
↓ 3 callersMethodget_targets
Compute regression and classification targets for anchors in multiple images. Args: anchor_list (list[list[Tensor]]): Mul
mmrotate/models/dense_heads/rotated_rpn_head.py:152
↓ 3 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
mmrotate/models/backbones/resnet.py:220
↓ 3 callersFunctionobb2hbb
Convert oriented bounding boxes to horizontal bounding boxes. Args: obbs (torch.Tensor): [x_ctr,y_ctr,w,h,angle] version (Str): a
mmrotate/core/bbox/transforms.py:137
↓ 3 callersFunctionobb2poly_le135
Convert oriented bounding boxes to polygons. Args: obbs (torch.Tensor): [x_ctr,y_ctr,w,h,angle] Returns: polys (torch.Tensor
mmrotate/core/bbox/transforms.py:446
↓ 3 callersMethodsampling_points
Sample edge points for polygon. Args: polygons (torch.tensor): polygons with shape (N, 8) points_num (int): number of
mmrotate/models/dense_heads/oriented_reppoints_head.py:329
↓ 2 callersFunctionChamferDistance2D
Compute the Chamfer distance between two point sets. Args: point_set_1 (torch.tensor): point set 1 with shape (N_pointsets,
mmrotate/models/dense_heads/oriented_reppoints_head.py:21
↓ 2 callersMethod__init__
(self, num_shared_convs=0, num_shared_fcs=0, num_cls_convs=
mmrotate/models/roi_heads/bbox_heads/convfc_rbbox_head.py:38
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3,
mmrotate/models/detectors/utils.py:19
↓ 2 callersFunction_check_fields
Check data in fields from two results are same.
tests/test_data/test_pipelines/utils.py:5
↓ 2 callersMethod_freeze_stages
Freeze stages.
mmrotate/models/backbones/re_resnet.py:573
↓ 2 callersFunction_get_adaptive_scales
Get adaptive scales according to areas. The scale range is [0.5, 1.0]. When the area is less than ``'min_area'``, the scale is 0.5 while the
mmrotate/core/visualization/image.py:17
↓ 2 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
mmrotate/models/dense_heads/csl_rotated_retina_head.py:384
↓ 2 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
mmrotate/models/dense_heads/rotated_anchor_head.py:605
↓ 2 callersFunction_get_detector_cfg
Grab configs necessary to create a detector. These are deep copied to allow for safe modification of parameters without influencing other tes
tests/test_models/test_forward.py:35
↓ 2 callersMethod_init_params
Initializes the parameters of Gaussian mixture model. Args: mu_init (torch.Tensor, optional): mu of Gaussian. var_ini
mmrotate/core/bbox/utils/gmm.py:38
↓ 2 callersFunction_replace_r50_with_r18
Replace ResNet50 with ResNet18 in config.
tests/test_models/test_forward.py:46
↓ 2 callersMethodbackward
Backward function.
mmrotate/models/losses/convex_giou_loss.py:58
↓ 2 callersFunctionbuild_enn_feature
build a enn regular feature map with the specified number of channels.
mmrotate/models/utils/enn.py:19
↓ 2 callersFunctionbuild_enn_trivial_feature
build a enn trivial feature map with the specified number of channels.
mmrotate/models/utils/enn.py:25
↓ 2 callersFunctionbuild_prior_generator
(cfg, default_args=None)
mmrotate/core/anchor/builder.py:8
↓ 2 callersFunctionbuild_roi_extractor
Build roi extractor.
mmrotate/models/builder.py:25
↓ 2 callersMethodcenterness_target
Compute centerness targets. Args: pos_bbox_targets (Tensor): BBox targets of positive bboxes in shape (num_pos, 4
mmrotate/models/dense_heads/rotated_fcos_head.py:462
↓ 2 callersFunctioncollect_env
Collect environment information.
mmrotate/utils/collect_env.py:8
↓ 2 callersFunctioncompat_cfg
This function would modify some filed to keep the compatibility of config. For example, it will move some args which will be deprecated to th
mmrotate/utils/compat_config.py:8
↓ 2 callersFunctioncompat_imgs_per_gpu
(cfg)
mmrotate/utils/compat_config.py:37
next →1–100 of 746, ranked by callers