MCPcopy Create free account

hub / github.com/JiaquanYe/MASTER-mmocr / functions

Functions2,851 in github.com/JiaquanYe/MASTER-mmocr

Methodnum_levels
int: number of feature levels that the generator will be applied
mmdetection-2.11.0/mmdet/core/anchor/anchor_generator.py:118
Methodnum_levels
int: number of feature levels that the generator will be applied
mmdetection-2.11.0/mmdet/core/anchor/anchor_generator.py:618
Methodnum_levels
(self)
mmdetection-2.11.0/mmdet/models/dense_heads/yolo_head.py:117
Methodnum_preds
int: the number of predictions in this assignment
mmdetection-2.11.0/mmdet/core/bbox/assigners/assign_result.py:51
Functionone2many_match_ic13
One-to-Many match gt and detections with icdar2013 standards. Args: gt_id (int): gt index. recall_mat (ndarray): `gt_num x det_nu
mmocr/core/evaluation/utils.py:258
Functionone2one_match_ic13
One-to-One match gt and det with icdar2013 standards. Args: gt_id (int): The ground truth id index. det_id (int): The detection r
mmocr/core/evaluation/utils.py:211
Methodout_channels
(self)
mmocr/models/textrecog/backbones/very_deep_vgg.py:64
Methodpaa_reassign
Fit loss to GMM distribution and separate positive, ignore, negative samples again with GMM model. Args: pos_losses (Tens
mmdetection-2.11.0/mmdet/models/dense_heads/paa_head.py:257
Methodpad
Pad masks to the given size of (h, w). Args: out_shape (tuple[int]): Target (h, w) of padded mask. pad_val (int): The
mmdetection-2.11.0/mmdet/core/mask/structures.py:51
Functionparse_xml
(args)
mmdetection-2.11.0/tools/dataset_converters/pascal_voc.py:13
Functionplot_curve
(log_dicts, args)
mmdetection-2.11.0/tools/analysis_tools/analyze_logs.py:33
Functionplot_iou_recall
Plot IoU-Recalls curve. Args: recalls(ndarray or list): shape (k,) iou_thrs(ndarray or list): same shape as `recalls`
mmdetection-2.11.0/mmdet/core/evaluation/recall.py:167
Functionplot_num_recall
Plot Proposal_num-Recalls curve. Args: recalls(ndarray or list): shape (k,) proposal_nums(ndarray or list): same shape as `recall
mmdetection-2.11.0/mmdet/core/evaluation/recall.py:142
Methodpostprocess
(self, data)
mmdetection-2.11.0/tools/deployment/mmdet_handler.py:46
Methodprepare_train_img
Get training data and annotations from pipeline. Args: index (int): Index of data. Returns: dict: Training d
mmocr/datasets/kie_dataset.py:107
Methodpreprocess
(self, data)
mmdetection-2.11.0/tools/deployment/mmdet_handler.py:30
Functionpy_sigmoid_focal_loss
PyTorch version of `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Args: pred (torch.Tensor): The prediction with shape (N, C), C is th
mmdetection-2.11.0/mmdet/models/losses/focal_loss.py:11
Methodrandom
Args: rng (None | int | numpy.random.RandomState): seed or state. kwargs (keyword arguments): - num_p
mmdetection-2.11.0/mmdet/core/bbox/samplers/sampling_result.py:93
Methodrandom
Create random AssignResult for tests or debugging. Args: num_preds: number of predicted boxes num_gts: number of true
mmdetection-2.11.0/mmdet/core/bbox/assigners/assign_result.py:97
Methodrandom
Generate random polygon masks for demo / testing purposes. Adapted from [1]_ References: .. [1] https://gitlab.kitware.c
mmdetection-2.11.0/mmdet/core/mask/structures.py:891
Methodrefine_bboxes
Refine bboxes during training. Args: rois (Tensor): Shape (n*bs, 5), where n is image number per GPU, and bs is t
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/sabl_head.py:503
Methodrescale
Rescale masks as large as possible while keeping the aspect ratio. For details can refer to `mmcv.imrescale`. Args: scale
mmdetection-2.11.0/mmdet/core/mask/structures.py:15
Methodresize
Resize masks to the given out_shape. Args: out_shape: Target (h, w) of resized mask. interpolation (str): See :func:`
mmdetection-2.11.0/mmdet/core/mask/structures.py:28
Methodreweight_loss_single
Reweight loss values at each level. Reassign loss values at each level by masking those where the pre-calculated loss is too large. T
mmdetection-2.11.0/mmdet/models/dense_heads/fsaf_head.py:371
Methodrfp_forward
Forward function for RFP.
mmdetection-2.11.0/mmdet/models/backbones/detectors_resnet.py:288
Functionroi2bbox
Convert rois to bounding box format. Args: rois (torch.Tensor): RoIs with the shape (n, 5) where the first column indicates b
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:80
Methodrotate
Rotate the masks. Args: out_shape (tuple[int]): Shape for output mask, format (h, w). angle (int | float): Rotation a
mmdetection-2.11.0/mmdet/core/mask/structures.py:170
Methodrotate
See :func:`BaseInstanceMasks.rotate`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:802
Methodsample
Directly returns the positive and negative indices of samples. Args: assign_result (:obj:`AssignResult`): Assigned results
mmdetection-2.11.0/mmdet/core/bbox/samplers/pseudo_sampler.py:23
Functionsave_bboxes_quadrangles
Save results of detected bounding boxes and quadrangles to txt file. Args: bboxes_with_scores (ndarray): Detected bboxes of shape (n,5).
tools/test_imgs.py:44
Functionselect_bboxes_via_score
Select bboxes with scores >= score_thr. Args: bboxes_list (list[ndarray]): List of bboxes. Each element is ndarray of shape (
mmocr/core/evaluation/utils.py:466
Methodset_epoch
(self, epoch)
mmdetection-2.11.0/mmdet/datasets/samplers/group_sampler.py:147
Methodsetup_class
(cls)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_loading.py:14
Methodshear
Shear the masks. Args: out_shape (tuple[int]): Shape for output mask, format (h, w). magnitude (int | float): The mag
mmdetection-2.11.0/mmdet/core/mask/structures.py:148
Methodshear
See :func:`BaseInstanceMasks.shear`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:770
Functionshow_img_boundary
Show image and instance boundaires. Args: img (ndarray): The input image. boundary (list[float or int]): The input boundary.
mmocr/core/visualize.py:70
Functionshow_pred_gt
Show detection and ground truth for one image. Args: preds (list[list[float]]): The detection boundary list. gts (list[list[float
mmocr/core/visualize.py:90
Methodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (Tensor or tuple): The results
mmdetection-2.11.0/mmdet/models/detectors/base.py:270
Methodshow_result
Show prediction results of the detector. Args: data (str or np.ndarray): Image filename or loaded image. result (Tens
mmdetection-2.11.0/mmdet/models/detectors/cascade_rcnn.py:27
Methodshow_result
Draw `result` on `img`. Args: img (str or tensor): The image to be displayed. result (dict): The results to draw on `
mmocr/models/textrecog/recognizer/base.py:194
Methodshow_result
Draw `result` over `img`. Args: img (str or Tensor): The image to be displayed. result (dict): The results to draw ov
mmocr/models/textdet/detectors/text_detector_mixin.py:39
Functionsigmoid_focal_loss
r"""A warpper of cuda version `Focal Loss <https://arxiv.org/abs/1708.02002>`_. Args: pred (torch.Tensor): The prediction with shape
mmdetection-2.11.0/mmdet/models/losses/focal_loss.py:59
Methodsimple_test
Test without augmentation. Args: x (list[Tensor]): list of multi-level img features. proposal_boxes (Tensor): Decoded
mmdetection-2.11.0/mmdet/models/roi_heads/sparse_roi_head.py:219
Methodsimple_test
Test without augmentation as follows: 1. Compute prediction bbox and label per branch. 2. Merge predictions of each branch according
mmdetection-2.11.0/mmdet/models/roi_heads/trident_roi_head.py:45
Methodsimple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/grid_roi_head.py:127
Methodsimple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/standard_roi_head.py:238
Methodsimple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/scnet_roi_head.py:339
Methodsimple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/base_roi_head.py:89
Methodsimple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/htc_roi_head.py:338
Methodsimple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/cascade_roi_head.py:290
Methodsimple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/detectors/two_stage.py:187
Methodsimple_test
Test function without test time augmentation.
mmdetection-2.11.0/mmdet/models/detectors/yolact.py:98
Methodsimple_test
Test function without test time augmentation. Args: imgs (list[torch.Tensor]): List of multiple images img_metas (lis
mmdetection-2.11.0/mmdet/models/detectors/sparse_rcnn.py:66
Methodsimple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/detectors/trident_faster_rcnn.py:31
Methodsimple_test
Test function without test time augmentation. Args: imgs (list[torch.Tensor]): List of multiple images img_metas (lis
mmdetection-2.11.0/mmdet/models/detectors/detr.py:20
Methodsimple_test
Test function without test time augmentation. Args: imgs (list[torch.Tensor]): List of multiple images img_metas (lis
mmdetection-2.11.0/mmdet/models/detectors/single_stage.py:98
Methodsimple_test
(self, img, img_metas, **kwargs)
mmocr/models/ner/classifiers/ner_classifier.py:51
Methodsimple_test
Test function with test time augmentation. Args: imgs (torch.Tensor): Image input tensor. img_metas (list[dict]): Lis
mmocr/models/textrecog/recognizer/master.py:78
Methodsimple_test
(self, img, img_metas, proposals=None, rescale=False)
mmocr/models/textdet/detectors/ocr_mask_rcnn.py:34
Methodsimple_test
(self, img, img_metas, rescale=False)
mmocr/models/textdet/detectors/single_stage_text_detector.py:40
Methodsimple_test
(self, img, img_metas, rescale=False)
mmocr/models/textdet/detectors/fcenet.py:27
Methodsimple_test
(self, img, img_metas, rescale=False)
mmocr/models/textdet/detectors/drrg.py:47
Methodsimple_test_mask
Obtain mask prediction without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/point_rend_roi_head.py:134
Methodsimple_test_mask
Obtain mask prediction without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/mask_scoring_roi_head.py:58
Methodsimple_test_rpn
Forward function in testing stage.
mmdetection-2.11.0/mmdet/models/dense_heads/embedding_rpn_head.py:98
Methodsimple_test_rpn
Simple forward test function.
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:757
Functionsplit_combined_polys
Split the combined 1-D polys into masks. A mask is represented as a list of polys, and a poly is represented as a 1-D array. In dataset, all
mmdetection-2.11.0/mmdet/core/mask/utils.py:6
Methodstep
(self, closure=None)
mmocr/core/optimizer/ranger2020.py:100
Methodstr2tensor
Convert text-string into tensor. Args: strings (list[str]): ['hello', 'world'] Returns: dict (str: Te
mmocr/models/textrecog/convertors/master.py:76
Methodtensor2idx
Convert output tensor to text-index Args: outputs (tensor): model outputs with size: N * T * C img_metas (lis
mmocr/models/textrecog/convertors/master.py:114
Functiontest_accuracy
()
mmdetection-2.11.0/tests/test_metrics/test_losses.py:112
Functiontest_adjust_brightness
(nb_rand_test=100)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_img_augment.py:108
Functiontest_adjust_color
()
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_img_augment.py:42
Functiontest_adjust_contrast
(nb_rand_test=100)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_img_augment.py:153
Functiontest_affine_jitter
()
tests/test_dataset/test_transforms.py:150
Functiontest_albu_transform
()
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_transform.py:425
Functiontest_allow_empty_images
(classes, expected_length)
mmdetection-2.11.0/tests/test_data/test_datasets/test_common.py:334
Functiontest_anchor_generator_with_tuples
()
mmdetection-2.11.0/tests/test_utils/test_anchor.py:113
Functiontest_anchor_head_loss
Tests anchor head loss when truth is empty and non-empty.
mmdetection-2.11.0/tests/test_models/test_dense_heads/test_anchor_head.py:7
Functiontest_approx_iou_assigner
()
mmdetection-2.11.0/tests/test_utils/test_assigner.py:196
Functiontest_approx_iou_assigner_with_empty_boxes
Test corner case where an network might predict no boxes.
mmdetection-2.11.0/tests/test_utils/test_assigner.py:244
Functiontest_approx_iou_assigner_with_empty_boxes_and_gt
Test corner case where an network might predict no boxes and no gt.
mmdetection-2.11.0/tests/test_utils/test_assigner.py:263
Functiontest_approx_iou_assigner_with_empty_gt
Test corner case where an image might have no true detections.
mmdetection-2.11.0/tests/test_utils/test_assigner.py:221
Functiontest_attn_label_convertor
()
tests/test_models/test_label_convertor/test_attn_label_convertor.py:18
Functiontest_aug_test_size
()
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:44
Functiontest_auto_fp16
()
mmdetection-2.11.0/tests/test_runtime/test_fp16.py:51
Functiontest_base_decoder
()
tests/test_models/test_ocr_decoder.py:21
Functiontest_base_encoder
()
tests/test_models/test_ocr_encoder.py:45
Functiontest_base_label_convertor
()
tests/test_models/test_label_convertor/test_ctc_label_convertor.py:75
Functiontest_base_preprocessor
()
tests/test_models/test_ocr_preprocessor.py:31
Functiontest_base_recognizer
()
tests/test_models/test_recognizer.py:20
Functiontest_bbox_head_get_bboxes
(num_sample, num_batch)
mmdetection-2.11.0/tests/test_models/test_roi_heads/test_bbox_head.py:69
Functiontest_bbox_head_loss
Tests bbox head loss when truth is empty and non-empty.
mmdetection-2.11.0/tests/test_models/test_roi_heads/test_bbox_head.py:10
Functiontest_bbox_overlaps_2d
(eps=1e-7)
mmdetection-2.11.0/tests/test_metrics/test_box_overlap.py:8
Functiontest_bert_softmax
(cfg_file)
tests/test_models/test_ner_model.py:37
Functiontest_bitmap_mask_area
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:261
Functiontest_bitmap_mask_crop
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:192
Functiontest_bitmap_mask_crop_and_resize
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:218
Functiontest_bitmap_mask_expand
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:241
Functiontest_bitmap_mask_flip
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:132
← previousnext →2,401–2,500 of 2,851, ranked by callers