MCPcopy Create free account

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

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

↓ 3 callersMethodtensor2idx
Convert model output tensor to index-list. Args: output (tensor): The model outputs with size: N * T * C. img_metas (l
mmocr/models/textrecog/convertors/ctc.py:85
↓ 3 callersMethodtranspose_for_scores
(self, x)
mmocr/models/ner/utils/bert.py:339
↓ 3 callersFunctionverify_model
Run the model in onnxruntime env. Args: feat (list[Tensor]): A list of tensors from torch.rand, each is a 4D-tensor. Ret
mmdetection-2.11.0/tests/test_onnx/utils.py:64
↓ 2 callersMethod__init__
(self, block, inplanes, planes, num_blocks
mmdetection-2.11.0/mmdet/models/backbones/detectors_resnet.py:139
↓ 2 callersMethod__init__
(self, scales=4, base_width=26, style='pytorch',
mmdetection-2.11.0/mmdet/models/backbones/res2net.py:302
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
mmdetection-2.11.0/mmdet/models/backbones/trident_resnet.py:29
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3,
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:39
↓ 2 callersMethod__init__
(self, num_shared_convs=0, num_shared_fcs=0, num_cls_convs=
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:20
↓ 2 callersMethod__init__
(self, **kwargs)
mmocr/datasets/pipelines/transforms.py:229
↓ 2 callersMethod__init__
Generate P_hat and inv_delta_C for later.
mmocr/models/textrecog/preprocessor/tps_preprocessor.py:164
↓ 2 callersMethod__init__
(self, input_dims, output_dim, mm_dim=1600,
mmocr/models/kie/heads/sdmgr_head.py:124
↓ 2 callersMethod__init__
(self, in_channels=128)
mmocr/models/textdet/necks/fpem_ffm.py:11
↓ 2 callersMethod__nice__
str: a "nice" summary string describing this module
mmdetection-2.11.0/mmdet/utils/util_mixins.py:75
↓ 2 callersFunction_adjust_contrast
(img, factor)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_img_augment.py:155
↓ 2 callersMethod_attention
(self, trg_seq, src, src_mask=None)
mmocr/models/textrecog/decoders/transformer_decoder.py:56
↓ 2 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdetection-2.11.0/mmdet/models/roi_heads/standard_roi_head.py:133
↓ 2 callersMethod_bboxes_nms
(self, bboxes, labels, cfg)
mmdetection-2.11.0/mmdet/models/dense_heads/corner_head.py:765
↓ 2 callersMethod_broadcast_bn_buffer
(self, runner)
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:247
↓ 2 callersMethod_check_head
Check whether the `num_classes` in head matches the length of `CLASSSES` in `dataset`. Args: runner (obj:`EpochBasedRunne
mmdetection-2.11.0/mmdet/datasets/utils.py:117
↓ 2 callersFunction_check_img_seg
(results, results_translated, keys, offset, fill_val, direction)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_translate.py:288
↓ 2 callersFunction_compute_f1
Calculate recall, precision, f1-score. Args: origin (int): Original entities in groundtruth. found (int): Predicted entities from
mmocr/core/evaluation/ner_metric.py:24
↓ 2 callersFunction_create_dummy_ann_infos
()
tests/test_metrics/test_hmean_detect.py:10
↓ 2 callersFunction_create_dummy_dict_file
(dict_file)
tests/test_models/test_recognizer.py:13
↓ 2 callersFunction_create_dummy_line_json_file
(ann_file)
tests/test_dataset/test_loader.py:20
↓ 2 callersFunction_create_dummy_line_str_file
(ann_file)
tests/test_dataset/test_loader.py:11
↓ 2 callersMethod_crop_image_and_paste
Crop image with a given center and size, then paste the cropped image to a blank image with two centers align. This function is equiv
mmdetection-2.11.0/mmdet/datasets/pipelines/transforms.py:1562
↓ 2 callersMethod_filter_boxes
Check whether the center of each box is in the patch. Args: patch (list[int]): The cropped area, [left, top, right, bottom].
mmdetection-2.11.0/mmdet/datasets/pipelines/transforms.py:1546
↓ 2 callersMethod_fuse_glbctx
Fuse global context feats with roi feats.
mmdetection-2.11.0/mmdet/models/roi_heads/scnet_roi_head.py:91
↓ 2 callersMethod_get_bboxes
Transform outputs for a batch item into bbox predictions. Args: cls_score_list (list[Tensor]): Box scores for a single scale leve
mmdetection-2.11.0/mmdet/models/dense_heads/anchor_head.py:590
↓ 2 callersMethod_get_bboxes_single
Transform outputs for a single batch item into bbox predictions. Args: cls_scores (list[Tensor]): Box iou-aware scores for a sing
mmdetection-2.11.0/mmdet/models/dense_heads/vfnet_head.py:524
↓ 2 callersMethod_get_border
Get final border for the target size. This function generates a ``final_border`` according to image's shape. The area between ``final
mmdetection-2.11.0/mmdet/datasets/pipelines/transforms.py:1527
↓ 2 callersFunction_get_config_directory
Find the predefined detector config directory.
mmdetection-2.11.0/tests/test_runtime/test_config.py:13
↓ 2 callersFunction_get_config_module
Load a configuration as a python module.
mmdetection-2.11.0/tests/test_models/test_forward.py:25
↓ 2 callersMethod_get_env
(self)
mmocr/datasets/utils/loader.py:117
↓ 2 callersMethod_get_env
(self)
mmocr/datasets/utils/loader.py:172
↓ 2 callersMethod_get_fine_grained_point_feats
Sample fine grained feats from each level feature map and concatenate them together.
mmdetection-2.11.0/mmdet/models/roi_heads/point_rend_roi_head.py:71
↓ 2 callersMethod_get_next_index
Get next index from dataset.
mmocr/datasets/base_dataset.py:126
↓ 2 callersMethod_get_position_index
(self, length, batch_size, device=None)
mmocr/models/textrecog/decoders/position_attention_decoder.py:50
↓ 2 callersMethod_get_uncertainty
Estimate uncertainty based on pred logits. We estimate uncertainty as L1 distance between 0.0 and the logits prediction in 'mask_pred
mmdetection-2.11.0/mmdet/models/roi_heads/mask_heads/mask_point_head.py:187
↓ 2 callersMethod_init_rule
Initialize rule, key_indicator, comparison_func, and best score. Args: rule (str | None): Comparison rule for best score.
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:81
↓ 2 callersMethod_local_maximum
Extract local maximum pixel with given kernel. Args: heat (Tensor): Target heatmap. kernel (int): Kernel size of max
mmdetection-2.11.0/mmdet/models/dense_heads/corner_head.py:807
↓ 2 callersMethod_mask_point_forward_test
Mask refining process with point head in testing.
mmdetection-2.11.0/mmdet/models/roi_heads/point_rend_roi_head.py:96
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
mmdetection-2.11.0/mmdet/core/anchor/point_generator.py:9
↓ 2 callersMethod_meshgrid
Generate mesh grid of x and y. Args: x (torch.Tensor): Grids of x dimension. y (torch.Tensor): Grids of y dimension.
mmdetection-2.11.0/mmdet/core/anchor/anchor_generator.py:187
↓ 2 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw outputs of the network, which usually contain
mmocr/models/textrecog/recognizer/base.py:109
↓ 2 callersMethod_random_scale
Randomly sample an img_scale according to ``ratio_range`` and ``multiscale_mode``. If ``ratio_range`` is specified, a ratio will be s
mmdetection-2.11.0/mmdet/datasets/pipelines/transforms.py:170
↓ 2 callersMethod_save_image_gts_results
(self, dataset, results, mAPs, out_dir=None)
mmdetection-2.11.0/tools/analysis_tools/analyze_results.py:63
↓ 2 callersFunction_sort_vertex
(vertices)
mmocr/datasets/pipelines/box_utils.py:29
↓ 2 callersMethod_topk
Get top k positions from heatmap. Args: scores (Tensor): Target heatmap with shape [batch, num_classes, height, w
mmdetection-2.11.0/mmdet/models/dense_heads/corner_head.py:838
↓ 2 callersFunction_translated_gt
(masks, direction, offset, out_shape)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_translate.py:455
↓ 2 callersFunctionaddAnnItem
(annotation_id, image_id, category_id, bbox, difficult_flag)
mmdetection-2.11.0/tools/dataset_converters/pascal_voc.py:105
↓ 2 callersMethodadd_gt_
Add ground truth as assigned results. Args: gt_labels (torch.Tensor): Labels of gt boxes
mmdetection-2.11.0/mmdet/core/bbox/assigners/assign_result.py:190
↓ 2 callersMethodalbu_builder
Import a module from albumentations. It inherits some of :func:`build_from_cfg` logic. Args: cfg (dict): Config dict. It
mmdetection-2.11.0/mmdet/datasets/pipelines/transforms.py:1277
↓ 2 callersMethodanchor_offset
Get offest for deformable conv based on anchor shape NOTE: currently support deformable kernel_size=3 and dilation=1 Args:
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:322
↓ 2 callersFunctionautolabel
Attach a text label above each bar in *rects*, displaying its height.
mmdetection-2.11.0/tools/analysis_tools/coco_error_analysis.py:53
↓ 2 callersMethodbalanced_bce_loss
(self, pred, gt, mask)
mmocr/models/textdet/losses/textsnake_loss.py:28
↓ 2 callersFunctionbbox_flip
Flip bboxes horizontally or vertically. Args: bboxes (Tensor): Shape (..., 4*k) img_shape (tuple): Image shape. direction
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:5
↓ 2 callersMethodbbox_pred_split
Split batch bbox prediction back to each image.
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/sabl_head.py:277
↓ 2 callersFunctionbbox_rescale
Rescale bounding box w.r.t. scale_factor. Args: bboxes (Tensor): Shape (n, 4) for bboxes or (n, 5) for rois scale_factor (float):
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:183
↓ 2 callersMethodbefore_train_epoch
Check whether the training dataset is compatible with head. Args: runner (obj:`EpochBasedRunner`): Epoch based Runner.
mmdetection-2.11.0/mmdet/datasets/utils.py:144
↓ 2 callersMethodbefore_val_epoch
Check whether the dataset in val epoch is compatible with head. Args: runner (obj:`EpochBasedRunner`): Epoch based Runner.
mmdetection-2.11.0/mmdet/datasets/utils.py:152
↓ 2 callersMethodbitmasks2tensor
Convert Bitmasks to tensor. Args: bitmasks (list[BitmapMasks]): The BitmapMasks list. Each item is for one img.
mmocr/models/textdet/losses/textsnake_loss.py:54
↓ 2 callersMethodbitmasks2tensor
Convert Bitmasks to tensor. Args: bitmasks (list[BitmapMasks]): The BitmapMasks list. Each item is for one img.
mmocr/models/textdet/losses/pan_loss.py:53
↓ 2 callersFunctionbuild_encoder
Build encoder for scene text recognizer.
mmocr/models/builder.py:21
↓ 2 callersFunctionbuild_model_from_cfg
Build a model from config and load the given checkpoint. Args: config_path (str): the OpenMMLab config for the model we want to
mmdetection-2.11.0/mmdet/core/export/pytorch2onnx.py:64
↓ 2 callersFunctionbuild_preprocessor
Build preprocessor for scene text recognizer.
mmocr/models/builder.py:31
↓ 2 callersFunctionbuild_transformer
Builder for Transformer.
mmdetection-2.11.0/mmdet/models/utils/builder.py:7
↓ 2 callersFunctioncentralized_gradient
credit - https://github.com/Yonghongwei/Gradient-Centralization
mmocr/core/optimizer/ranger2020.py:30
↓ 2 callersFunctioncollect_env
Collect the information of the running environments.
mmdetection-2.11.0/mmdet/utils/collect_env.py:7
↓ 2 callersFunctioncollect_env
Collect the information of the running environments.
mmocr/utils/collect_env.py:7
↓ 2 callersFunctioncolor_val_matplotlib
Convert various input in BGR order to normalized RGB matplotlib color tuples, Args: color (:obj:`Color`/str/tuple/int/ndarray): Color
mmdetection-2.11.0/mmdet/core/visualization/image.py:13
↓ 2 callersFunctionconcurrent
Run code concurrently in different streams. :param streamqueue: asyncio.Queue instance. Queue tasks define the pool of streams used for conc
mmdetection-2.11.0/mmdet/utils/contextmanagers.py:91
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
mmocr/models/textrecog/backbones/resnet_extra.py:8
↓ 2 callersMethodconvert_pred2entities
Gets entities from preds. Args: preds (list): Sequence of preds. masks (tensor): The valid part is 1 and the invalid
mmocr/models/ner/convertors/ner_convertor.py:126
↓ 2 callersMethodcrop
Crop predicted masks by zeroing out everything not in the predicted bbox. Args: masks (Tensor): shape [H, W, N].
mmdetection-2.11.0/mmdet/models/dense_heads/yolact_head.py:863
↓ 2 callersMethodcrop_and_resize
see :func:`BaseInstanceMasks.crop_and_resize`
mmdetection-2.11.0/mmdet/core/mask/structures.py:700
↓ 2 callersFunctioncvt_annotations
(devkit_path, years, split, out_file)
mmdetection-2.11.0/tools/dataset_converters/pascal_voc.py:67
↓ 2 callersFunctiondb_decode
Decoding predictions of DbNet to instances. This is partially adapted from https://github.com/MhLiao/DB. Args: preds (Tensor): The he
mmocr/models/textdet/postprocess/wrapper.py:177
↓ 2 callersMethoddecode_heatmap
Transform outputs for a single batch item into raw bbox predictions. Args: tl_heat (Tensor): Top-left corner heatmap for current
mmdetection-2.11.0/mmdet/models/dense_heads/corner_head.py:864
↓ 2 callersFunctiondetect
(img)
mmdetection-2.11.0/tests/test_runtime/async_benchmark.py:68
↓ 2 callersMethoddist_point2line
(self, point, line)
mmocr/datasets/pipelines/textdet_targets/drrg_targets.py:73
↓ 2 callersFunctionencode_mask_results
Encode bitmap mask to RLE code. Args: mask_results (list | tuple[list]): bitmap mask results. In mask scoring rcnn, mask_resu
mmdetection-2.11.0/mmdet/core/mask/utils.py:36
↓ 2 callersFunctioneuclidean_distance_matrix
Calculate the Euclidean distance matrix. Args: A (ndarray): The point sequence. B (ndarray): The point sequence with the same dim
mmocr/models/textdet/modules/utils.py:27
↓ 2 callersFunctioneval_ocr_metric
Evaluate the text recognition performance with metric: word accuracy and 1-N.E.D. See https://rrc.cvc.uab.es/?ch=14&com=tasks for details. Ar
mmocr/core/evaluation/ocr_metric.py:87
↓ 2 callersMethodevaluate
Evaluation in COCO protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[s
mmdetection-2.11.0/mmdet/datasets/coco.py:365
↓ 2 callersMethodevaluation_flag
Judge whether to perform_evaluation after this epoch. Returns: bool: The flag indicating whether to perform evaluation.
mmdetection-2.11.0/mmdet/core/evaluation/eval_hooks.py:123
↓ 2 callersMethodextract_feat
(self, img, gt_bboxes)
mmocr/models/kie/extractors/sdmgr.py:92
↓ 2 callersMethodfast_eval_recall
(self, results, proposal_nums, iou_thrs, logger=None)
mmdetection-2.11.0/mmdet/datasets/coco.py:313
↓ 2 callersFunctionfcenet_decode
Decoding predictions of FCENet to instances. Args: preds (list(Tensor)): The head output tensors. fourier_degree (int): The maxim
mmocr/models/textdet/postprocess/wrapper.py:390
↓ 2 callersFunctionfilter_instance
(area, confidence, min_area, min_confidence)
mmocr/models/textdet/postprocess/wrapper.py:18
↓ 2 callersFunctionfilter_result
Find out detected results whose score > score_thr. Args: results (ndarray): The results matrix of shape (n, k). score (ndarray):
mmocr/core/evaluation/utils.py:408
↓ 2 callersMethodfind_invalid
Find invalid polygons. Args: results (dict): The dict containing gt_mask. Returns: ignore_tags (list[bool]):
mmocr/datasets/pipelines/textdet_targets/dbnet_targets.py:38
↓ 2 callersMethodformat_results
Placeholder to format result to dataset-specific output.
mmocr/datasets/base_dataset.py:155
↓ 2 callersMethodforward
(self, x)
mmocr/models/kie/heads/sdmgr_head.py:156
↓ 2 callersMethodforward_test
(self, feat, out_enc, img_metas)
mmocr/models/textrecog/decoders/base_decoder.py:19
↓ 2 callersMethodforward_test_step
(self, feat, out_enc, decode_sequence, current_step, img_metas)
mmocr/models/textrecog/decoders/sequence_attention_decoder.py:122
↓ 2 callersMethodforward_train
(self, feat, out_enc, targets_dict, img_metas)
mmocr/models/textrecog/decoders/base_decoder.py:16
↓ 2 callersMethodfourier2poly
Transform Fourier coefficient maps to polygon maps. Args: real_maps (tensor): A map composed of the real parts of the
mmocr/models/textdet/losses/fce_loss.py:147
↓ 2 callersMethodgcn_loss
(self, gcn_data)
mmocr/models/textdet/losses/drrg_loss.py:56
↓ 2 callersMethodgen_base_anchors
Generate base anchors. Returns: list(torch.Tensor): Base anchors of a feature grid in multiple \ feature levels.
mmdetection-2.11.0/mmdet/core/anchor/anchor_generator.py:122
← previousnext →301–400 of 2,851, ranked by callers