MCPcopy Create free account

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

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

↓ 7 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
mmdetection-2.11.0/setup.py:50
↓ 7 callersMethodregress_by_class
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: rois (Tensor): shape (n, 4) or (n, 5) label (T
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/bbox_head.py:455
↓ 7 callersMethodto_tensor
See :func:`BaseInstanceMasks.to_tensor`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:498
↓ 6 callersFunction_construct_bbox
(num_bbox=None)
mmdetection-2.11.0/tests/test_metrics/test_box_overlap.py:10
↓ 6 callersFunction_create_dummy_results
()
mmdetection-2.11.0/tests/test_data/test_datasets/test_common.py:96
↓ 6 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): Input batch dimensions. num_items (N
tests/test_models/test_detector.py:12
↓ 6 callersMethod_parse_anno_info
Parse char boxes annotations. Args: annotations (list[dict]): Annotations of one image, where each dict is for one
mmocr/datasets/ocr_seg_dataset.py:12
↓ 6 callersMethod_transpose_and_gather_feat
Transpose and gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord
mmdetection-2.11.0/mmdet/models/dense_heads/corner_head.py:823
↓ 6 callersMethod_upsample_add
(self, x, y)
mmocr/models/textdet/necks/fpem_ffm.py:32
↓ 6 callersFunctionanchor_inside_flags
Check whether the anchors are inside the border. Args: flat_anchors (torch.Tensor): Flatten anchors, shape (n, 4). valid_flags (t
mmdetection-2.11.0/mmdet/core/anchor/utils.py:20
↓ 6 callersFunctionbbox_cxcywh_to_xyxy
Convert bbox coordinates from (cx, cy, w, h) to (x1, y1, x2, y2). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns: Ten
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:215
↓ 6 callersFunctionbox_jitter
Jitter on the coordinates of bounding box. Args: points_x (list[float | int]): List of y for four vertices. points_y (list[float
mmocr/datasets/pipelines/crop.py:9
↓ 6 callersFunctionbuild_backbone
Build backbone.
mmdetection-2.11.0/mmdet/models/builder.py:37
↓ 6 callersFunctioncreate_random_bboxes
(num_bboxes, img_w, img_h)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_transform.py:202
↓ 6 callersFunctioncrop_img
Crop text region with their bounding box. Args: src_img (np.array): The original image. box (list[float | int]): Points of quadra
mmocr/datasets/pipelines/crop.py:86
↓ 6 callersMethoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: bboxes (torch.Tensor): Basic boxes. Shape (B, N, 4) or (N, 4) pr
mmdetection-2.11.0/mmdet/core/bbox/coder/delta_xywh_bbox_coder.py:53
↓ 6 callersMethoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: bboxes (torch.Tensor): Basic boxes.Shape (B, N, 4) or (N, 4) pre
mmdetection-2.11.0/mmdet/core/bbox/coder/tblr_bbox_coder.py:49
↓ 6 callersMethoddecode
(self, input, feature, src_mask, tgt_mask)
mmocr/models/textrecog/decoders/master_decoder.py:155
↓ 6 callersFunctionget_root_logger
Use `get_logger` method in mmcv to get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHan
mmocr/utils/logger.py:6
↓ 6 callersMethodidx2str
Convert indexes to text strings. Args: indexes (list[list[int]]): [[1,2,3,3,4], [5,4,6,3,7]]. Returns: string
mmocr/models/textrecog/convertors/base.py:90
↓ 6 callersFunctionimshow_det_bboxes
Draw bboxes and class labels (with scores) on an image. Args: img (str or ndarray): The image to be displayed. bboxes (ndarray):
mmdetection-2.11.0/mmdet/core/visualization/image.py:28
↓ 6 callersMethodinit_weights
(self)
mmocr/models/textdet/necks/fpnf.py:76
↓ 6 callersMethodinvalid_polygon
Judge the input polygon is invalid or not. It is invalid if its area smaller than 1 or the shorter side of its minimum bounding box smaller
mmocr/datasets/pipelines/textdet_targets/dbnet_targets.py:55
↓ 6 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:216
↓ 6 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:256
↓ 6 callersMethodrefine_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/bbox_head.py:376
↓ 6 callersMethodresize
see :func:`BaseInstanceMasks.resize`
mmdetection-2.11.0/mmdet/core/mask/structures.py:620
↓ 6 callersMethodsample_from_range
(range)
mmocr/datasets/pipelines/transforms.py:298
↓ 6 callersMethodshow_result
Show RPN proposals on the image. Args: data (str or np.ndarray): Image filename or loaded image. result (Tensor or tu
mmdetection-2.11.0/mmdet/models/detectors/rpn.py:141
↓ 6 callersMethodsimple_test_rpn
Test without augmentation. Args: x (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor.
mmdetection-2.11.0/mmdet/models/dense_heads/rpn_test_mixin.py:24
↓ 6 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
mmdetection-2.11.0/mmdet/datasets/pipelines/formating.py:11
↓ 6 callersMethodvalid_flags
(self, featmap_size, valid_size, device='cuda')
mmdetection-2.11.0/mmdet/core/anchor/point_generator.py:27
↓ 6 callersMethodvector_slope
(self, vec)
mmocr/datasets/pipelines/textdet_targets/textsnake_targets.py:47
↓ 5 callersMethod__init__
(self, d_model, vocab)
mmocr/models/textrecog/decoders/master_decoder.py:16
↓ 5 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdetection-2.11.0/mmdet/models/roi_heads/scnet_roi_head.py:114
↓ 5 callersFunction_dummy_bbox_sampling
Create sample results that can be passed to BBoxHead.get_targets.
mmdetection-2.11.0/tests/test_models/test_roi_heads/utils.py:6
↓ 5 callersMethod_freeze_stages
(self)
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:572
↓ 5 callersMethod_parse_anno_info
Parse annotations of boxes, texts and labels for one image. Args: annotations (list[dict]): Annotations of one image, where
mmocr/datasets/kie_dataset.py:62
↓ 5 callersFunctionbbox_overlaps
Calculate overlap between two set of bboxes. If ``is_aligned `` is ``False``, then calculate the overlaps between each bbox of bboxes1 and bb
mmdetection-2.11.0/mmdet/core/bbox/iou_calculators/iou2d_calculator.py:43
↓ 5 callersFunctionbuild_convertor
Build label convertor for scene text recognizer.
mmocr/models/builder.py:16
↓ 5 callersFunctionbuild_iou_calculator
Builder of IoU calculator.
mmdetection-2.11.0/mmdet/core/bbox/iou_calculators/builder.py:6
↓ 5 callersFunctionbuild_model
(config_file)
tests/test_apis/test_model_inference.py:12
↓ 5 callersFunctioncheck_translate
(results, results_translated, offset,
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_translate.py:334
↓ 5 callersFunctionconstruct_toy_data
(poly2mask=True)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_rotate.py:11
↓ 5 callersFunctionconstruct_toy_data
(poly2mask=True)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_shear.py:11
↓ 5 callersFunctiondrop_orientation
Check if the image has orientation information. If yes, ignore it by converting the image format to png, and return new filename, otherwise re
mmocr/utils/img_util.py:6
↓ 5 callersMethodget_boundary
Convert segmentation into text boundaries. Args: results (tuple): The result tuple. The first element is segmentati
mmocr/models/textdet/detectors/text_detector_mixin.py:14
↓ 5 callersMethodget_cat_ids
Get category ids of concatenated dataset by index. Args: idx (int): Index of data. Returns: list[int]: All c
mmdetection-2.11.0/mmdet/datasets/dataset_wrappers.py:49
↓ 5 callersFunctionmerge_aug_bboxes
Merge augmented detection bboxes and scores. Args: aug_bboxes (list[Tensor]): shape (n, 4*#class) aug_scores (list[Tensor] or Non
mmdetection-2.11.0/mmdet/core/post_processing/merge_augs.py:83
↓ 5 callersFunctionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
mmdetection-2.11.0/mmdet/apis/test.py:69
↓ 5 callersFunctionoutput_ranklist
Output the worst results for debugging. Args: img_results (list[dict]): Image result list. img_infos (list[dict]): Image informat
mmocr/core/evaluation/hmean.py:13
↓ 5 callersMethodsample_offset
(self, img_gt, img_size)
mmocr/datasets/pipelines/transforms.py:42
↓ 5 callersFunctionsingle_gpu_test
(model, data_loader, show=False, out_dir=None,
mmdetection-2.11.0/mmdet/apis/test.py:16
↓ 4 callersMethod__init__
(self, linear=False, eps=1e-6, reduction='mean',
mmdetection-2.11.0/mmdet/models/losses/iou_loss.py:236
↓ 4 callersMethod__init__
(self, n_head=8, d_model=512, d_k=64, d_v=
mmocr/models/textrecog/layers/transformer_layer.py:108
↓ 4 callersMethod__init__
(self, in_channels=3, base_channels=64, num_stages=5,
mmocr/models/common/backbones/unet.py:377
↓ 4 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdetection-2.11.0/mmdet/models/roi_heads/htc_roi_head.py:166
↓ 4 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdetection-2.11.0/mmdet/models/roi_heads/cascade_roi_head.py:140
↓ 4 callersFunction_check_fields
(results, results_rotated, keys)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_rotate.py:41
↓ 4 callersFunction_check_fields
(results, results_sheared, keys)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_shear.py:42
↓ 4 callersFunction_context_for_ohem
()
mmdetection-2.11.0/tests/test_data/test_pipelines/test_sampler.py:94
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, gcb_config=None)
mmocr/models/textrecog/backbones/resnet_extra.py:123
↓ 4 callersMethod_make_layer
(self, input_channels, output_channels, blocks)
mmocr/models/textrecog/backbones/resnet31_ocr.py:96
↓ 4 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdetection-2.11.0/mmdet/models/roi_heads/cascade_roi_head.py:168
↓ 4 callersFunction_pad
(h, w, c, pad_val, axis=-1, dtype=np.float32)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_translate.py:19
↓ 4 callersFunctionanchor_ctr_inside_region_flags
Get the flag indicate whether anchor centers are inside regions.
mmdetection-2.11.0/mmdet/core/bbox/assigners/region_assigner.py:26
↓ 4 callersFunctionarea
(bboxes)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_transform.py:224
↓ 4 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale.
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:46
↓ 4 callersFunctionbuild_decoder
Build decoder for scene text recognizer.
mmocr/models/builder.py:26
↓ 4 callersFunctionbuild_neck
Build neck.
mmdetection-2.11.0/mmdet/models/builder.py:42
↓ 4 callersFunctionbuild_optimizer
(model, cfg)
mmocr/core/optimizer/builder.py:42
↓ 4 callersFunctioncalc_region
Calculate region of the box defined by the ratio, the ratio is from the center of the box to every edge.
mmdetection-2.11.0/mmdet/core/bbox/assigners/region_assigner.py:9
↓ 4 callersFunctioncalc_region
Calculate a proportional bbox region. The bbox center are fixed and the new h' and w' is h * ratio and w * ratio. Args: bbox (Tensor
mmdetection-2.11.0/mmdet/core/anchor/utils.py:49
↓ 4 callersFunctionconstruct_toy_data
(poly2mask=True)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_img_augment.py:12
↓ 4 callersMethoddice_loss_with_logits
(self, pred, target, mask)
mmocr/models/textdet/losses/pan_loss.py:250
↓ 4 callersFunctiondummy_bboxes
(num, max_height, max_width)
mmdetection-2.11.0/tests/test_utils/test_masks.py:35
↓ 4 callersFunctiondummy_masks
(h, w, num_obj=3, mode='bitmap')
mmdetection-2.11.0/tests/test_runtime/test_config.py:316
↓ 4 callersFunctionensure_rng
Coerces input into a random number generator. If the input is None, then a global random state is returned. If the input is a numeric value,
mmdetection-2.11.0/mmdet/utils/util_random.py:5
↓ 4 callersFunctioneval_map
Evaluate mAP of a dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indicates images,
mmdetection-2.11.0/mmdet/core/evaluation/mean_ap.py:267
↓ 4 callersMethodevaluate
(self, runner, results)
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:175
↓ 4 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmdetection-2.11.0/mmdet/models/detectors/two_stage.py:80
↓ 4 callersMethodextract_feats
Extract features from multiple images. Args: imgs (list[torch.Tensor]): A list of images. The images are augmente
mmdetection-2.11.0/mmdet/models/detectors/base.py:52
↓ 4 callersFunctionfeature_embedding
Embed features. This code was partially adapted from https://github.com/GXYM/DRRG licensed under the MIT license. Args: input_feats (
mmocr/models/textdet/modules/utils.py:54
↓ 4 callersMethodflip
see :func:`BaseInstanceMasks.flip`
mmdetection-2.11.0/mmdet/core/mask/structures.py:639
↓ 4 callersMethodgenerate_text_region_mask
Generate text center region mask and geometry attribute maps. Args: img_size (tuple): The image size (height, width).
mmocr/datasets/pipelines/textdet_targets/textsnake_targets.py:420
↓ 4 callersMethodget_ann_info
Get COCO annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified in
mmdetection-2.11.0/mmdet/datasets/coco.py:70
↓ 4 callersMethodget_cat_ids
Get COCO category ids by index. Args: idx (int): Index of data. Returns: list[int]: All categories in the im
mmdetection-2.11.0/mmdet/datasets/coco.py:85
↓ 4 callersFunctionget_classes
Get class names of a dataset.
mmdetection-2.11.0/mmdet/core/evaluation/class_names.py:102
↓ 4 callersFunctionget_gcb_config
(gcb_config, layer)
mmocr/models/textrecog/backbones/resnet_extra.py:63
↓ 4 callersFunctionin_contour
(cont, point)
mmocr/models/textdet/postprocess/wrapper.py:733
↓ 4 callersFunctionlevels_to_images
Concat multi-level feature maps by image. [feature_level0, feature_level1...] -> [feature_image0, feature_image1...] Convert the shape of eac
mmdetection-2.11.0/mmdet/models/dense_heads/paa_head.py:17
↓ 4 callersMethodmake_stage_plugins
Make plugins for ResNet ``stage_idx`` th stage. Currently we support to insert ``context_block``, ``empirical_attention_block``, ``no
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:453
↓ 4 callersFunctionmodel_aug_test_template
(cfg_file)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:12
↓ 4 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
mmdetection-2.11.0/mmdet/models/backbones/hrnet.py:353
↓ 4 callersMethodnum_classes
Number of output classes.
mmocr/models/textrecog/convertors/base.py:48
↓ 4 callersMethodpoints2bbox
Converting the points set into bounding box. :param pts: the input points sets (fields), each points set (fields) is represented
mmdetection-2.11.0/mmdet/models/dense_heads/reppoints_head.py:165
↓ 4 callersFunctionpoints2boundary
Convert a text mask represented by point coordinates sequence into a text boundary. Args: points (ndarray): Mask index of size (n, 2)
mmocr/core/mask.py:7
↓ 4 callersFunctionpoly_nms
(polygons, threshold)
mmocr/models/textdet/postprocess/wrapper.py:466
↓ 4 callersFunctionpreprocess_example_input
Prepare an example input image for ``generate_inputs_and_wrap_model``. Args: input_config (dict): customized config describing the exampl
mmdetection-2.11.0/mmdet/core/export/pytorch2onnx.py:98
↓ 4 callersMethodresize_boundary
Rescale boundaries via scale_factor. Args: boundaries (list[list[float]]): The boundary list. Each boundary with size
mmocr/models/textdet/dense_heads/head_mixin.py:12
← previousnext →101–200 of 2,851, ranked by callers