Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JiaquanYe/MASTER-mmocr
/ functions
Functions
2,851 in github.com/JiaquanYe/MASTER-mmocr
⨍
Functions
2,851
◇
Types & classes
489
↳
Endpoints
22
Method
_get_targets_single
Generate matching bounding box prior and converted GT. Args: anchors (list[Tensor]): Multi-level anchors of the image.
mmdetection-2.11.0/mmdet/models/dense_heads/yolo_head.py:500
Method
_get_targets_single
Compute regression and classification targets for anchors in a single image. Args: flat_anchors (Tensor): Multi-level anc
mmdetection-2.11.0/mmdet/models/dense_heads/anchor_head.py:175
Method
_get_targets_single
Compute regression and classification targets for anchors in a single image. Most of the codes are the same with the base class
mmdetection-2.11.0/mmdet/models/dense_heads/fsaf_head.py:69
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/reppoints_head.py:107
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/retina_head.py:50
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/ga_retina_head.py:25
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/vfnet_head.py:144
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/retina_sepbn_head.py:32
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/yolact_head.py:80
Method
_init_layers
Init layers of a CascadeRPN stage.
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:140
Method
_init_layers
(self)
mmdetection-2.11.0/mmdet/models/dense_heads/fovea_head.py:65
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/ga_rpn_head.py:23
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/atss_head.py:50
Method
_init_layers
Initialize layers for CentripetalHead. Including two parts: CornerHead layers and CentripetalHead layers
mmdetection-2.11.0/mmdet/models/dense_heads/centripetal_head.py:125
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/gfl_head.py:109
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/rpn_head.py:27
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/fcos_head.py:93
Method
_init_layers
Initialize layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/nasfcos_head.py:20
Method
_init_weights
Initialize the weights.
mmocr/models/ner/utils/bert.py:122
Method
_inner_forward
(x)
mmdetection-2.11.0/mmdet/models/backbones/resnest.py:231
Method
_inner_forward
(x)
mmdetection-2.11.0/mmdet/models/backbones/detectors_resnet.py:69
Method
_inner_forward
(x)
mmdetection-2.11.0/mmdet/models/backbones/res2net.py:111
Method
_inner_forward
(x)
mmdetection-2.11.0/mmdet/models/backbones/trident_resnet.py:124
Method
_inner_forward
(x)
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:68
Method
_inner_forward
(x)
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:263
Method
_load
(self, ann_file)
mmocr/datasets/utils/loader.py:62
Method
_load
(self, ann_files_folder)
mmocr/datasets/utils/loader.py:74
Method
_load
(self, ann_file)
mmocr/datasets/utils/loader.py:82
Method
_load
(self, ann_file)
mmocr/datasets/utils/loader.py:133
Method
_load_from_state_dict
Override the method in the parent class to avoid changing para's name.
mmdetection-2.11.0/mmdet/models/dense_heads/vfnet_head.py:790
Method
_load_from_state_dict
Hack some keys of the model state dict so that can load checkpoints of previous version.
mmdetection-2.11.0/mmdet/models/dense_heads/anchor_free_head.py:143
Method
_load_from_state_dict
load checkpoints.
mmdetection-2.11.0/mmdet/models/dense_heads/transformer_head.py:180
Method
_mask_forward_test
Mask head forward function for testing.
mmdetection-2.11.0/mmdet/models/roi_heads/htc_roi_head.py:184
Method
_mask_forward_train
Run forward function and calculate loss for mask head and point head in training.
mmdetection-2.11.0/mmdet/models/roi_heads/point_rend_roi_head.py:35
Method
_mask_forward_train
Run forward function and calculate loss for Mask head in training.
mmdetection-2.11.0/mmdet/models/roi_heads/mask_scoring_roi_head.py:30
Function
_multihead_attention_forward
(self, x, key=None,
mmdetection-2.11.0/tests/test_models/test_utils/test_transformer.py:20
Method
_order_vertices
References: https://stackoverflow.com/questions/1709283/how-can-i-sort-a-coordinate-list-for-a-rectangle-counterclockwise
mmdetection-2.11.0/mmdet/core/mask/structures.py:984
Method
_parse_ann_info
Parse bbox and mask annotation. Args: img_info (dict): Image info of an image. ann_info (list[dict]): Annotation info
mmdetection-2.11.0/mmdet/datasets/cityscapes.py:53
Method
_parse_ann_info
Parse bbox and mask annotation. Args: ann_info (list[dict]): Annotation info of an image. Returns: dict: A d
mmocr/datasets/icdar_dataset.py:57
Method
_point_target_single
(self, flat_proposals, valid_flags,
mmdetection-2.11.0/mmdet/models/dense_heads/reppoints_head.py:374
Method
_region_targets_single
Get anchor targets based on region for single level.
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:174
Method
_resize_token_embeddings
(self, new_num_tokens)
mmocr/models/ner/utils/bert.py:75
Method
_run_test_method
(self, method)
mmdetection-2.11.0/tests/test_runtime/test_async.py:23
Method
_sample_neg
Sample negative boxes. Args: assign_result (:obj:`AssignResult`): Assigned results num_expected (int): Number of expe
mmdetection-2.11.0/mmdet/core/bbox/samplers/ohem_sampler.py:79
Method
_sample_neg
Sample negative samples.
mmdetection-2.11.0/mmdet/core/bbox/samplers/pseudo_sampler.py:19
Method
_sample_neg
Sample negative samples.
mmdetection-2.11.0/mmdet/core/bbox/samplers/combined_sampler.py:18
Method
_sample_neg
Sample negative boxes. Args: assign_result (:obj:`AssignResult`): The assigned results of boxes. num_expected (int):
mmdetection-2.11.0/mmdet/core/bbox/samplers/iou_balanced_neg_sampler.py:88
Method
_sample_neg
Randomly sample some negative samples.
mmdetection-2.11.0/mmdet/core/bbox/samplers/random_sampler.py:70
Method
_sample_pos
Sample positive boxes. Args: assign_result (:obj:`AssignResult`): Assigned results num_expected (int): Number of expe
mmdetection-2.11.0/mmdet/core/bbox/samplers/ohem_sampler.py:51
Method
_sample_pos
Sample positive samples.
mmdetection-2.11.0/mmdet/core/bbox/samplers/pseudo_sampler.py:15
Method
_sample_pos
Sample positive samples.
mmdetection-2.11.0/mmdet/core/bbox/samplers/combined_sampler.py:14
Method
_sample_pos
Randomly sample some positive samples.
mmdetection-2.11.0/mmdet/core/bbox/samplers/random_sampler.py:60
Method
_sample_pos
Sample positive boxes. Args: assign_result (:obj:`AssignResult`): The assigned results of boxes. num_expected (int):
mmdetection-2.11.0/mmdet/core/bbox/samplers/instance_balanced_pos_sampler.py:13
Method
_shape_offset
(anchors, stride, ks=3, dilation=1)
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:336
Method
after_train_epoch
(self, runner)
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:261
Method
after_train_iter
(self, runner)
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:151
Method
after_train_iter
(self, runner)
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:283
Function
allreduce_grads
Allreduce gradients. Args: params (list[torch.Parameters]): List of parameters of a model coalesce (bool, optional): Whether allr
mmdetection-2.11.0/mmdet/core/utils/dist_utils.py:32
Function
analyze_individual_category
(k, cocoDt, cocoGt,
mmdetection-2.11.0/tools/analysis_tools/coco_error_analysis.py:173
Method
areas
ndarray: areas of each instance.
mmdetection-2.11.0/mmdet/core/mask/structures.py:104
Method
areas
See :py:attr:`BaseInstanceMasks.areas`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:490
Method
areas
Compute areas of masks. This func is modified from `detectron2 <https://github.com/facebookresearch/detectron2/blob/ffff8acc35ea88ad1
mmdetection-2.11.0/mmdet/core/mask/structures.py:837
Method
assign
Assign gt to approxs. This method assign a gt bbox to each group of approxs (bboxes), each group of approxs is represent by a base ap
mmdetection-2.11.0/mmdet/core/bbox/assigners/approx_max_iou_assigner.py:59
Method
assign
Assign gt to bboxes. This method assigns gts to every bbox (proposal/anchor), each bbox \ will be assigned with -1, or a semi-positiv
mmdetection-2.11.0/mmdet/core/bbox/assigners/center_region_assigner.py:125
Method
assign
Computes one-to-one matching based on the weighted costs. This method assign each query prediction to a ground truth or background. T
mmdetection-2.11.0/mmdet/core/bbox/assigners/hungarian_assigner.py:52
Method
assign
Assign gt to bboxes. The process is very much like the max iou assigner, except that positive samples are constrained within the cell
mmdetection-2.11.0/mmdet/core/bbox/assigners/grid_assigner.py:42
Method
assign
Assign gt to points. This method assign a gt bbox to every points set, each points set will be assigned with the background_label (-
mmdetection-2.11.0/mmdet/core/bbox/assigners/point_assigner.py:23
Method
assign
Assign boxes to either a ground truth boxes or a negative boxes.
mmdetection-2.11.0/mmdet/core/bbox/assigners/base_assigner.py:8
Method
assign
Assign gt to anchors. This method assign a gt bbox to every bbox (proposal/anchor), each bbox will be assigned with -1, 0, or a posit
mmdetection-2.11.0/mmdet/core/bbox/assigners/region_assigner.py:57
Method
async_simple_test
Async test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/standard_roi_head.py:213
Method
async_simple_test
Asynchronized test function.
mmdetection-2.11.0/mmdet/models/roi_heads/base_roi_head.py:85
Method
async_simple_test
Async test without augmentation.
mmdetection-2.11.0/mmdet/models/detectors/two_stage.py:169
Method
aug_test
Test function with test time augmentation. Args: feats (list[Tensor]): the outer list indicates test-time augment
mmdetection-2.11.0/mmdet/models/dense_heads/yolo_head.py:561
Method
aug_test
Test function with test time augmentation. Args: feats (list[Tensor]): the outer list indicates test-time augment
mmdetection-2.11.0/mmdet/models/dense_heads/anchor_head.py:728
Method
aug_test
Test function with test time augmentation. Args: feats (list[Tensor]): the outer list indicates test-time augment
mmdetection-2.11.0/mmdet/models/dense_heads/anchor_free_head.py:324
Method
aug_test
(self, features, proposal_list, img_metas, rescale=False)
mmdetection-2.11.0/mmdet/models/roi_heads/sparse_roi_head.py:294
Method
aug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection-2.11.0/mmdet/models/roi_heads/standard_roi_head.py:270
Method
aug_test
(self, img_feats, proposal_list, img_metas, rescale=False)
mmdetection-2.11.0/mmdet/models/roi_heads/scnet_roi_head.py:471
Method
aug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection-2.11.0/mmdet/models/roi_heads/base_roi_head.py:98
Method
aug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection-2.11.0/mmdet/models/roi_heads/htc_roi_head.py:472
Method
aug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection-2.11.0/mmdet/models/roi_heads/cascade_roi_head.py:416
Method
aug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection-2.11.0/mmdet/models/detectors/two_stage.py:206
Method
aug_test
Test with augmentations.
mmdetection-2.11.0/mmdet/models/detectors/yolact.py:144
Method
aug_test
Test with augmentations. If rescale is False, then returned bboxes and masks will fit the scale of imgs[0].
mmdetection-2.11.0/mmdet/models/detectors/trident_faster_rcnn.py:45
Method
aug_test
Augment testing of CornerNet. Args: imgs (list[Tensor]): Augmented images. img_metas (list[list[dict]]): Meta informa
mmdetection-2.11.0/mmdet/models/detectors/cornernet.py:60
Method
aug_test
Test function with test time augmentation. Args: imgs (list[torch.Tensor]): List of multiple images img_metas (list[d
mmdetection-2.11.0/mmdet/models/detectors/rpn.py:116
Method
aug_test
Test function with test time augmentation. Args: imgs (list[Tensor]): the outer list indicates test-time augmenta
mmdetection-2.11.0/mmdet/models/detectors/single_stage.py:131
Method
aug_test
(self, imgs, img_metas, **kwargs)
mmocr/models/ner/classifiers/ner_classifier.py:48
Method
aug_test_bboxes
Test det bboxes with test time augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/trident_roi_head.py:82
Method
aug_test_mask
Test for mask head with test time augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/point_rend_roi_head.py:187
Method
aug_test_rpn
Augmented forward test function.
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:782
Function
bbox_map_eval
Evaluate mAP of single image det result. Args: det_result (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indi
mmdetection-2.11.0/tools/analysis_tools/analyze_results.py:13
Method
bboxes
torch.Tensor: concatenated positive and negative boxes
mmdetection-2.11.0/mmdet/core/bbox/samplers/sampling_result.py:52
Method
before_run
(self, runner)
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:108
Method
before_train_epoch
Evaluate the model only at the start of training.
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:115
Function
binary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1). label (torch.Tensor): The le
mmdetection-2.11.0/mmdet/models/losses/cross_entropy_loss.py:58
Function
box2polygon
Convert box to polygon. Args: box (ndarray or list): A ndarray or a list of shape (4) that indicates 2 points. Returns:
mmocr/core/evaluation/utils.py:96
Function
box_center_distance
(b1, b2)
mmocr/core/evaluation/utils.py:372
Function
box_diag
(box)
mmocr/core/evaluation/utils.py:378
Method
build_concat_cell
(with_input1_conv, with_input2_conv)
mmdetection-2.11.0/mmdet/models/necks/nasfcos_fpn.py:76
← previous
next →
1,801–1,900 of 2,851, ranked by callers