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
num_levels
int: number of feature levels that the generator will be applied
mmdetection-2.11.0/mmdet/core/anchor/anchor_generator.py:118
Method
num_levels
int: number of feature levels that the generator will be applied
mmdetection-2.11.0/mmdet/core/anchor/anchor_generator.py:618
Method
num_levels
(self)
mmdetection-2.11.0/mmdet/models/dense_heads/yolo_head.py:117
Method
num_preds
int: the number of predictions in this assignment
mmdetection-2.11.0/mmdet/core/bbox/assigners/assign_result.py:51
Function
one2many_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
Function
one2one_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
Method
out_channels
(self)
mmocr/models/textrecog/backbones/very_deep_vgg.py:64
Method
paa_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
Method
pad
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
Function
parse_xml
(args)
mmdetection-2.11.0/tools/dataset_converters/pascal_voc.py:13
Function
plot_curve
(log_dicts, args)
mmdetection-2.11.0/tools/analysis_tools/analyze_logs.py:33
Function
plot_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
Function
plot_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
Method
postprocess
(self, data)
mmdetection-2.11.0/tools/deployment/mmdet_handler.py:46
Method
prepare_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
Method
preprocess
(self, data)
mmdetection-2.11.0/tools/deployment/mmdet_handler.py:30
Function
py_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
Method
random
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
Method
random
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
Method
random
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
Method
refine_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
Method
rescale
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
Method
resize
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
Method
reweight_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
Method
rfp_forward
Forward function for RFP.
mmdetection-2.11.0/mmdet/models/backbones/detectors_resnet.py:288
Function
roi2bbox
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
Method
rotate
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
Method
rotate
See :func:`BaseInstanceMasks.rotate`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:802
Method
sample
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
Function
save_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
Function
select_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
Method
set_epoch
(self, epoch)
mmdetection-2.11.0/mmdet/datasets/samplers/group_sampler.py:147
Method
setup_class
(cls)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_loading.py:14
Method
shear
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
Method
shear
See :func:`BaseInstanceMasks.shear`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:770
Function
show_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
Function
show_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
Method
show_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
Method
show_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
Method
show_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
Method
show_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
Function
sigmoid_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
Method
simple_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
Method
simple_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
Method
simple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/grid_roi_head.py:127
Method
simple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/standard_roi_head.py:238
Method
simple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/scnet_roi_head.py:339
Method
simple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/base_roi_head.py:89
Method
simple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/htc_roi_head.py:338
Method
simple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/cascade_roi_head.py:290
Method
simple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/detectors/two_stage.py:187
Method
simple_test
Test function without test time augmentation.
mmdetection-2.11.0/mmdet/models/detectors/yolact.py:98
Method
simple_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
Method
simple_test
Test without augmentation.
mmdetection-2.11.0/mmdet/models/detectors/trident_faster_rcnn.py:31
Method
simple_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
Method
simple_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
Method
simple_test
(self, img, img_metas, **kwargs)
mmocr/models/ner/classifiers/ner_classifier.py:51
Method
simple_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
Method
simple_test
(self, img, img_metas, proposals=None, rescale=False)
mmocr/models/textdet/detectors/ocr_mask_rcnn.py:34
Method
simple_test
(self, img, img_metas, rescale=False)
mmocr/models/textdet/detectors/single_stage_text_detector.py:40
Method
simple_test
(self, img, img_metas, rescale=False)
mmocr/models/textdet/detectors/fcenet.py:27
Method
simple_test
(self, img, img_metas, rescale=False)
mmocr/models/textdet/detectors/drrg.py:47
Method
simple_test_mask
Obtain mask prediction without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/point_rend_roi_head.py:134
Method
simple_test_mask
Obtain mask prediction without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/mask_scoring_roi_head.py:58
Method
simple_test_rpn
Forward function in testing stage.
mmdetection-2.11.0/mmdet/models/dense_heads/embedding_rpn_head.py:98
Method
simple_test_rpn
Simple forward test function.
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:757
Function
split_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
Method
step
(self, closure=None)
mmocr/core/optimizer/ranger2020.py:100
Method
str2tensor
Convert text-string into tensor. Args: strings (list[str]): ['hello', 'world'] Returns: dict (str: Te
mmocr/models/textrecog/convertors/master.py:76
Method
tensor2idx
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
Function
test_accuracy
()
mmdetection-2.11.0/tests/test_metrics/test_losses.py:112
Function
test_adjust_brightness
(nb_rand_test=100)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_img_augment.py:108
Function
test_adjust_color
()
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_img_augment.py:42
Function
test_adjust_contrast
(nb_rand_test=100)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_img_augment.py:153
Function
test_affine_jitter
()
tests/test_dataset/test_transforms.py:150
Function
test_albu_transform
()
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_transform.py:425
Function
test_allow_empty_images
(classes, expected_length)
mmdetection-2.11.0/tests/test_data/test_datasets/test_common.py:334
Function
test_anchor_generator_with_tuples
()
mmdetection-2.11.0/tests/test_utils/test_anchor.py:113
Function
test_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
Function
test_approx_iou_assigner
()
mmdetection-2.11.0/tests/test_utils/test_assigner.py:196
Function
test_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
Function
test_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
Function
test_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
Function
test_attn_label_convertor
()
tests/test_models/test_label_convertor/test_attn_label_convertor.py:18
Function
test_aug_test_size
()
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:44
Function
test_auto_fp16
()
mmdetection-2.11.0/tests/test_runtime/test_fp16.py:51
Function
test_base_decoder
()
tests/test_models/test_ocr_decoder.py:21
Function
test_base_encoder
()
tests/test_models/test_ocr_encoder.py:45
Function
test_base_label_convertor
()
tests/test_models/test_label_convertor/test_ctc_label_convertor.py:75
Function
test_base_preprocessor
()
tests/test_models/test_ocr_preprocessor.py:31
Function
test_base_recognizer
()
tests/test_models/test_recognizer.py:20
Function
test_bbox_head_get_bboxes
(num_sample, num_batch)
mmdetection-2.11.0/tests/test_models/test_roi_heads/test_bbox_head.py:69
Function
test_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
Function
test_bbox_overlaps_2d
(eps=1e-7)
mmdetection-2.11.0/tests/test_metrics/test_box_overlap.py:8
Function
test_bert_softmax
(cfg_file)
tests/test_models/test_ner_model.py:37
Function
test_bitmap_mask_area
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:261
Function
test_bitmap_mask_crop
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:192
Function
test_bitmap_mask_crop_and_resize
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:218
Function
test_bitmap_mask_expand
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:241
Function
test_bitmap_mask_flip
()
mmdetection-2.11.0/tests/test_utils/test_masks.py:132
← previous
next →
2,401–2,500 of 2,851, ranked by callers