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
↓ 1 callers
Method
_shear_masks
Shear the masks.
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:233
↓ 1 callers
Method
_shear_seg
Shear the segmentation maps.
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:249
↓ 1 callers
Method
_slice_pos_feats
Get features from pos rois.
mmdetection-2.11.0/mmdet/models/roi_heads/scnet_roi_head.py:101
↓ 1 callers
Method
_test_aug
Around padding the original image without cropping. The padding mode and value are from ``test_pad_mode``. Args: results
mmdetection-2.11.0/mmdet/datasets/pipelines/transforms.py:1681
↓ 1 callers
Method
_train_aug
Random crop and around padding the original image. Args: results (dict): Image infomations in the augment pipeline. Retu
mmdetection-2.11.0/mmdet/datasets/pipelines/transforms.py:1613
↓ 1 callers
Function
_translate_bbox
(bboxes, offset, direction, max_h, max_w)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_translate.py:215
↓ 1 callers
Method
_translate_bboxes
Shift bboxes horizontally or vertically, according to offset.
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:624
↓ 1 callers
Method
_translate_img
Translate the image. Args: results (dict): Result dict from loading pipeline. offset (int | float): The offset for tr
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:610
↓ 1 callers
Method
_translate_masks
Translate masks horizontally or vertically.
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:642
↓ 1 callers
Method
_translate_seg
Translate segmentation maps horizontally or vertically.
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:653
↓ 1 callers
Method
_upsample_x2
(self, x)
mmocr/models/textrecog/necks/fpn_ocr.py:52
↓ 1 callers
Method
add_link
(self, link_node)
mmocr/models/textdet/postprocess/wrapper.py:528
↓ 1 callers
Function
add_plot_parser
(subparsers)
mmdetection-2.11.0/tools/analysis_tools/analyze_logs.py:92
↓ 1 callers
Function
add_time_parser
(subparsers)
mmdetection-2.11.0/tools/analysis_tools/analyze_logs.py:120
↓ 1 callers
Method
adjust_key
Adjust key 'bbox' and 'bbox_mask' location in dictionary 'results'. :param results: :return:
mmocr/datasets/pipelines/table_transforms.py:316
↓ 1 callers
Method
adjust_width_group
Adjusts the compatibility of widths and groups. Args: widths (list[int]): Width of each stage. bottleneck_ratio (floa
mmdetection-2.11.0/mmdet/models/backbones/regnet.py:266
↓ 1 callers
Function
ae_loss_per_image
Associative Embedding Loss in one image. Associative Embedding Loss including two parts: pull loss and push loss. Pull loss makes embedding v
mmdetection-2.11.0/mmdet/models/losses/ae_loss.py:10
↓ 1 callers
Method
aforward_test
(self, *, img, img_metas, **kwargs)
mmdetection-2.11.0/mmdet/models/detectors/base.py:107
↓ 1 callers
Method
after_train_epoch
(self, runner)
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:142
↓ 1 callers
Method
aggregation_discrimination_loss
Compute the aggregation and discrimnative losses. Args: gt_texts (tensor): The ground truth text mask of size Nx1xHxW.
mmocr/models/textdet/losses/pan_loss.py:157
↓ 1 callers
Function
align_bbox_mask
This function is used to in insert [0,0,0,0] in the location, which corresponding structure label is non-bbox label(not <td> style structure
mmocr/datasets/utils/parser.py:143
↓ 1 callers
Function
analyze_results
(res_file, ann_file, res_types, out_dir,
mmdetection-2.11.0/tools/analysis_tools/coco_error_analysis.py:234
↓ 1 callers
Function
anchor
(name)
docs/stats.py:11
↓ 1 callers
Method
apredict
(self, img)
mmdetection-2.11.0/tests/test_runtime/test_async.py:53
↓ 1 callers
Method
assign_one_hot_gt_indices
Assign only one gt index to each prior box. Gts with large gt_priority are more likely to be assigned. Args: is_bbox_in_
mmdetection-2.11.0/mmdet/core/bbox/assigners/center_region_assigner.py:256
↓ 1 callers
Method
async_simple_test
(self, img, img_metas, **kwargs)
mmdetection-2.11.0/mmdet/models/detectors/base.py:84
↓ 1 callers
Method
async_simple_test_rpn
(self, x, img_metas)
mmdetection-2.11.0/mmdet/models/dense_heads/rpn_test_mixin.py:14
↓ 1 callers
Method
async_test_bboxes
Asynchronized test for box head without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/test_mixins.py:19
↓ 1 callers
Method
async_test_mask
Asynchronized test for mask head without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/test_mixins.py:205
↓ 1 callers
Method
attention_pool
Extract direction-specific features fx and fy with attention methanism.
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/sabl_head.py:213
↓ 1 callers
Method
aug_test
Test function with test time augmentation.
mmdetection-2.11.0/mmdet/models/detectors/base.py:92
↓ 1 callers
Method
aug_test
Test function with test time augmentation. Args: imgs (list[tensor]): Tensor should have shape NxCxHxW, which con
mmocr/models/textrecog/recognizer/base.py:48
↓ 1 callers
Method
aug_test
Test function as well as time augmentation. Args: imgs (list[tensor]): Tensor should have shape NxCxHxW, which co
mmocr/models/textrecog/recognizer/encode_decode_recognizer.py:161
↓ 1 callers
Method
aug_test
Test function with test time augmentation. Args: imgs (list[tensor]): Tensor should have shape NxCxHxW, which con
mmocr/models/textrecog/recognizer/seg_recognizer.py:140
↓ 1 callers
Method
aug_test_bboxes
Test det bboxes with test time augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/test_mixins.py:166
↓ 1 callers
Method
aug_test_mask
Test for mask head with test time augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/test_mixins.py:310
↓ 1 callers
Function
average_precision
Calculate average precision (for single or multiple scales). Args: recalls (ndarray): shape (num_scales, num_dets) or (num_dets, )
mmdetection-2.11.0/mmdet/core/evaluation/mean_ap.py:12
↓ 1 callers
Method
balance_bce_loss
(self, pred, gt, mask)
mmocr/models/textdet/losses/db_loss.py:81
↓ 1 callers
Function
balanced_l1_loss
Calculate balanced L1 loss. Please see the `Libra R-CNN <https://arxiv.org/pdf/1904.02701.pdf>`_ Args: pred (torch.Tensor): The pred
mmdetection-2.11.0/mmdet/models/losses/balanced_l1_loss.py:12
↓ 1 callers
Function
bbox2bucket
Generate buckets estimation and fine regression targets. Args: proposals (Tensor): Shape (n, 4) gt (Tensor): Shape (n, 4)
mmdetection-2.11.0/mmdet/core/bbox/coder/bucketing_bbox_coder.py:144
↓ 1 callers
Function
bbox2delta
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h of proposals w.r.t ground truth bboxes to get regression t
mmdetection-2.11.0/mmdet/core/bbox/coder/delta_xywh_bbox_coder.py:88
↓ 1 callers
Method
bbox_flip
Flip bboxes horizontally. Args: bboxes (numpy.ndarray): Bounding boxes, shape (..., 4*k) img_shape (tuple[int]): Imag
mmdetection-2.11.0/mmdet/datasets/pipelines/transforms.py:382
↓ 1 callers
Function
bboxes2tblr
Encode ground truth boxes to tblr coordinate. It first convert the gt coordinate to tblr format, (top, bottom, left, right), relative to pri
mmdetection-2.11.0/mmdet/core/bbox/coder/tblr_bbox_coder.py:76
↓ 1 callers
Function
bboxes_area
Compute the area of an array of bboxes. Args: bboxes (Tensor): The coordinates ox bboxes. Shape: (m, 4) Returns: Tensor: Are
mmdetection-2.11.0/mmdet/core/bbox/assigners/center_region_assigner.py:54
↓ 1 callers
Function
boundary_iou
Calculate the IOU between two boundaries. Args: src (list): Source boundary. target (list): Target boundary. Returns: i
mmocr/core/evaluation/utils.py:176
↓ 1 callers
Function
bounded_iou_loss
BIoULoss. This is an implementation of paper `Improving Object Localization with Fitness NMS and Bounded IoU Loss. <https://arxiv.org/abs
mmdetection-2.11.0/mmdet/models/losses/iou_loss.py:41
↓ 1 callers
Function
box_score_fast
(bitmap, _box)
mmocr/models/textdet/postprocess/wrapper.py:153
↓ 1 callers
Function
bucket2bbox
Apply bucketing estimation (cls preds) and fine regression (offset preds) to generate det bboxes. Args: proposals (Tensor): Boxes to
mmdetection-2.11.0/mmdet/core/bbox/coder/bucketing_bbox_coder.py:268
↓ 1 callers
Method
bucket_target
(self, pos_proposals_list, neg_proposals_list,
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/sabl_head.py:327
↓ 1 callers
Method
build
(self, args, root=True)
mmocr/datasets/pipelines/dbnet_transforms.py:16
↓ 1 callers
Method
build_P_prime
Generate Grid from batch_C_prime [batch_size x num_fiducial x 2]
mmocr/models/textrecog/preprocessor/tps_preprocessor.py:259
↓ 1 callers
Function
build_bbox_mask
(label)
mmocr/datasets/utils/parser.py:173
↓ 1 callers
Function
build_empty_bbox_mask
Generate a mask, 0 means empty bbox, 1 means non-empty bbox. :param bboxes: list[list] bboxes list :return: flag matrix.
mmocr/datasets/utils/parser.py:117
↓ 1 callers
Function
build_loader
Build anno file loader.
mmocr/datasets/builder.py:7
↓ 1 callers
Function
build_optimizer_constructor
(cfg)
mmocr/core/optimizer/builder.py:38
↓ 1 callers
Function
build_parser
Build anno file parser.
mmocr/datasets/builder.py:12
↓ 1 callers
Function
build_positional_encoding
Builder for Position Encoding.
mmdetection-2.11.0/mmdet/models/utils/builder.py:12
↓ 1 callers
Method
build_roi_layers
Build RoI operator to extract feature from each level feature map. Args: layer_cfg (dict): Dictionary to construct and config RoI
mmdetection-2.11.0/mmdet/models/roi_heads/roi_extractors/base_roi_extractor.py:32
↓ 1 callers
Function
build_shared_head
Build shared head.
mmdetection-2.11.0/mmdet/models/builder.py:52
↓ 1 callers
Method
cal_canvas_size
(self, ori_size, degree)
mmocr/datasets/pipelines/transforms.py:557
↓ 1 callers
Method
cal_fourier_signature
Calculate Fourier signature from input polygon. Args: polygon (ndarray): The input polygon. fourier_degree (int):
mmocr/datasets/pipelines/textdet_targets/fcenet_targets.py:199
↓ 1 callers
Function
cal_true_positive_char
Calculate correct character number in prediction. Args: pred (str): Prediction text. gt (str): Ground truth text. Returns:
mmocr/core/evaluation/ocr_metric.py:7
↓ 1 callers
Method
calc_sub_regions
Compute point specific representation regions. See Grid R-CNN Plus (https://arxiv.org/abs/1906.05688) for details.
mmdetection-2.11.0/mmdet/models/roi_heads/mask_heads/grid_head.py:189
↓ 1 callers
Method
calculate_pos_recall
Calculate positive recall with score threshold. Args: cls_scores (list[Tensor]): Classification scores at all fpn levels.
mmdetection-2.11.0/mmdet/models/dense_heads/fsaf_head.py:306
↓ 1 callers
Method
centerness_target
(self, anchors, bbox_targets)
mmdetection-2.11.0/mmdet/models/dense_heads/atss_head.py:298
↓ 1 callers
Method
centerness_target
Compute centerness targets. Args: pos_bbox_targets (Tensor): BBox targets of positive bboxes in shape (num_pos, 4
mmdetection-2.11.0/mmdet/models/dense_heads/fcos_head.py:613
↓ 1 callers
Method
centers_to_bboxes
Get bboxes according to center points. Only used in :class:`MaxIoUAssigner`.
mmdetection-2.11.0/mmdet/models/dense_heads/reppoints_head.py:335
↓ 1 callers
Function
centralize
(points_yx, normal_sin, normal_cos, radius, contou
mmocr/models/textdet/postprocess/wrapper.py:245
↓ 1 callers
Method
check_bbox_valid
(self, bboxes)
mmocr/datasets/pipelines/table_transforms.py:281
↓ 1 callers
Method
chunk_sizes
(dim, chunks)
mmocr/models/kie/heads/sdmgr_head.py:189
↓ 1 callers
Function
ciou_loss
r"""`Implementation of paper `Enhancing Geometric Factors into Model Learning and Inference for Object Detection and Instance Segmentation <ht
mmdetection-2.11.0/mmdet/models/losses/iou_loss.py:162
↓ 1 callers
Method
clockwise
Make sure the polygon reconstructed from Fourier coefficients c in the clockwise direction. Args: polygon (list[float]):
mmocr/datasets/pipelines/textdet_targets/fcenet_targets.py:180
↓ 1 callers
Method
cls_forward
(self, cls_x)
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/sabl_head.py:206
↓ 1 callers
Function
clusters2labels
Convert clusters of Node to text component labels. This code was partially adapted from https://github.com/GXYM/DRRG licensed under the MIT li
mmocr/models/textdet/postprocess/wrapper.py:620
↓ 1 callers
Function
coco_eval_with_return
(result_files, result_types, coco,
mmdetection-2.11.0/tools/analysis_tools/test_robustness.py:23
↓ 1 callers
Function
collect_annotations
Collect the annotation information. Args: files(list): The list of tuples (image_file, groundtruth_file) split(str): The split of
tools/data/textdet/totaltext_converter.py:65
↓ 1 callers
Function
collect_annotations
Collect the annotation information. Args: files(list): The list of tuples (image_file, groundtruth_file) dataset(str): The datase
tools/data/textdet/icdar_converter.py:51
↓ 1 callers
Function
collect_annotations
Collect the annotation information. Args: files(list): The list of tuples (image_file, groundtruth_file) split(str): The split of
tools/data/textdet/ctw1500_converter.py:62
↓ 1 callers
Function
collect_annotations
(files, nproc=1)
mmdetection-2.11.0/tools/dataset_converters/cityscapes.py:28
↓ 1 callers
Function
collect_files
Collect all images and their corresponding groundtruth files. Args: img_dir(str): The image directory gt_dir(str): The groundtrut
tools/data/textdet/totaltext_converter.py:15
↓ 1 callers
Function
collect_files
Collect all images and their corresponding groundtruth files. Args: img_dir(str): The image directory gt_dir(str): The groundtrut
tools/data/textdet/icdar_converter.py:14
↓ 1 callers
Function
collect_files
Collect all images and their corresponding groundtruth files. Args: img_dir(str): The image directory gt_dir(str): The groundtrut
tools/data/textdet/ctw1500_converter.py:15
↓ 1 callers
Function
collect_files
(img_dir, gt_dir)
mmdetection-2.11.0/tools/dataset_converters/cityscapes.py:11
↓ 1 callers
Function
collect_results_cpu
(result_part, size, tmpdir=None)
mmdetection-2.11.0/mmdet/apis/test.py:117
↓ 1 callers
Function
collect_results_gpu
(result_part, size)
mmdetection-2.11.0/mmdet/apis/test.py:160
↓ 1 callers
Function
compute_f1_all
Calculate precision, recall and F1-score for all categories. Args: pred_entities: The predicted entities from model. gt_entities:
mmocr/core/evaluation/ner_metric.py:44
↓ 1 callers
Function
compute_f1_score
Compute the F1-score of prediction. Args: preds (Tensor): The predicted probability NxC map with N and C being the sample num
mmocr/core/evaluation/kie_metric.py:4
↓ 1 callers
Method
compute_macro_f1
(self, results, ignores=[])
mmocr/datasets/kie_dataset.py:149
↓ 1 callers
Function
compute_recall_precision
Compute the recall and the precision matrices between gt and predicted polygons. Args: gt_polys (list[Polygon]): List of gt polygons.
mmocr/core/evaluation/hmean_ic13.py:7
↓ 1 callers
Method
compute_relation
Compute relation between every two boxes.
mmocr/datasets/kie_dataset.py:201
↓ 1 callers
Function
connected_components
Conventional connected components searching. This code was partially adapted from https://github.com/GXYM/DRRG licensed under the MIT license.
mmocr/models/textdet/postprocess/wrapper.py:583
↓ 1 callers
Function
conv1x1
1x1 convolution
mmocr/models/textrecog/backbones/resnet_extra.py:12
↓ 1 callers
Function
convert
Convert keys in checkpoints. There can be some breaking changes during the development of mmdetection, and this tool is used for upgrading ch
mmdetection-2.11.0/tools/model_converters/upgrade_model_version.py:114
↓ 1 callers
Function
convert
Convert keys in detectron pretrained ResNet models to pytorch style.
mmdetection-2.11.0/tools/model_converters/detectron2pytorch.py:34
↓ 1 callers
Function
convert
Convert keys in pycls pretrained RegNet models to mmdet style.
mmdetection-2.11.0/tools/model_converters/regnet2mmdet.py:54
↓ 1 callers
Function
convert_annotations
Convert the annotation into lmdb dataset. Args: root_path (str): The root path of dataset. gt_name (str): The ground truth filena
tools/data/textdet/synthtext_converter.py:99
↓ 1 callers
Function
convert_bbox
(bbox_str_list)
mmocr/utils/fileio.py:19
↓ 1 callers
Method
convert_entity2label
Convert labeled entities to ids. Args: label (dict): Labels of entities. text_len (int): The length of input text.
mmocr/models/ner/convertors/ner_convertor.py:102
↓ 1 callers
Function
convert_head
(model_key, model_weight, state_dict, converted_names)
mmdetection-2.11.0/tools/model_converters/regnet2mmdet.py:15
↓ 1 callers
Function
convert_reslayer
(model_key, model_weight, state_dict, converted_names)
mmdetection-2.11.0/tools/model_converters/regnet2mmdet.py:22
← previous
next →
701–800 of 2,851, ranked by callers