MCPcopy Create free account

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

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

↓ 1 callersMethodget_gt_priorities
Get gt priorities according to their areas. Smaller gt has higher priority. Args: gt_bboxes (Tensor): Ground truth boxes
mmdetection-2.11.0/mmdet/core/bbox/assigners/center_region_assigner.py:107
↓ 1 callersMethodget_mask_scores
Get the mask scores. mask_score = bbox_score * mask_iou
mmdetection-2.11.0/mmdet/models/roi_heads/mask_heads/maskiou_head.py:177
↓ 1 callersMethodget_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
mmdetection-2.11.0/mmdet/models/dense_heads/atss_head.py:684
↓ 1 callersMethodget_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
mmdetection-2.11.0/mmdet/models/dense_heads/gfl_head.py:642
↓ 1 callersFunctionget_optimal_font_scale
Get optimal font scale for cv2.putText. Args: text (str): Text in one box. width (int): The box width.
mmocr/core/visualize.py:465
↓ 1 callersMethodget_roi_rel_points_test
Get ``num_points`` most uncertain points during test. Args: mask_pred (Tensor): A tensor of shape (num_rois, num_classes,
mmdetection-2.11.0/mmdet/models/roi_heads/mask_heads/mask_point_head.py:267
↓ 1 callersMethodget_roi_rel_points_train
Get ``num_points`` most uncertain points with random points during train. Sample points in [0, 1] x [0, 1] coordinate space based on
mmdetection-2.11.0/mmdet/models/roi_heads/mask_heads/mask_point_head.py:212
↓ 1 callersMethodget_seg_masks
Resize, binarize, and format the instance mask predictions. Args: mask_pred (Tensor): shape (N, H, W). label_pred (Te
mmdetection-2.11.0/mmdet/models/dense_heads/yolact_head.py:828
↓ 1 callersMethodget_stages_from_blocks
Gets widths/stage_blocks of network at each stage. Args: widths (list[int]): Width in each stage. Returns: t
mmdetection-2.11.0/mmdet/models/backbones/regnet.py:291
↓ 1 callersMethodget_target
Compute bucketing targets. Args: approx_list (list[list]): Multi level approxs of each image. inside_flag_list (list[l
mmdetection-2.11.0/mmdet/models/dense_heads/sabl_retina_head.py:219
↓ 1 callersMethodget_targets
Compute target maps for anchors in multiple images. Args: anchor_list (list[list[Tensor]]): Multi level anchors of each
mmdetection-2.11.0/mmdet/models/dense_heads/yolo_head.py:464
↓ 1 callersMethodget_targets
Compute regression and classification targets for anchors in multiple images. Args: anchor_list (list[list[Tensor]]): Mul
mmdetection-2.11.0/mmdet/models/dense_heads/anchor_head.py:273
↓ 1 callersMethodget_targets
Compute instance segmentation targets for each image. Args: mask_pred (Tensor): Predicted prototypes with shape (
mmdetection-2.11.0/mmdet/models/dense_heads/yolact_head.py:803
↓ 1 callersMethodget_targets
Compute regression and classification targets for a batch image. Outputs from a single decoder layer of a single feature level are used.
mmdetection-2.11.0/mmdet/models/dense_heads/transformer_head.py:404
↓ 1 callersMethodget_targets
Compute regression and classification targets for anchors. Args: anchor_list (list[list]): Multi level anchors of each image.
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:280
↓ 1 callersMethodget_targets
(self, gt_bbox_list, gt_label_list, featmap_sizes, points)
mmdetection-2.11.0/mmdet/models/dense_heads/fovea_head.py:177
↓ 1 callersMethodget_targets
Get targets for ATSS head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent
mmdetection-2.11.0/mmdet/models/dense_heads/atss_head.py:510
↓ 1 callersMethodget_targets
Get targets for GFL head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent m
mmdetection-2.11.0/mmdet/models/dense_heads/gfl_head.py:472
↓ 1 callersMethodget_targets
Compute regression, classification and centerness targets for points in multiple images. Args: points (list[Tensor]): Poi
mmdetection-2.11.0/mmdet/models/dense_heads/fcos_head.py:468
↓ 1 callersMethodget_targets
Generate corner targets. Including corner heatmap, corner offset. Optional: corner embedding, corner guiding shift, centripetal shif
mmdetection-2.11.0/mmdet/models/dense_heads/corner_head.py:310
↓ 1 callersMethodget_targets
Compute target of mask IoU. Mask IoU target is the IoU of the predicted mask (inside a bbox) and the gt mask of corresponding gt mask
mmdetection-2.11.0/mmdet/models/roi_heads/mask_heads/maskiou_head.py:101
↓ 1 callersFunctionget_version
()
setup.py:16
↓ 1 callersFunctionget_version
()
mmdetection-2.11.0/setup.py:19
↓ 1 callersFunctionget_version
()
mmdetection-2.11.0/docs/conf.py:27
↓ 1 callersFunctionget_voc_style_results
(filename, prints='mPC', aggregate='benchmark')
mmdetection-2.11.0/tools/analysis_tools/robustness_eval.py:111
↓ 1 callersFunctiongiou_loss
r"""`Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression <https://arxiv.org/abs/1902.09630>`_. Args:
mmdetection-2.11.0/mmdet/models/losses/iou_loss.py:87
↓ 1 callersMethodgmm_separation_scheme
A general separation scheme for gmm model. It separates a GMM distribution of candidate samples into three parts, 0 1 and uncertain a
mmdetection-2.11.0/mmdet/models/dense_heads/paa_head.py:366
↓ 1 callersFunctiongraph_propagation
Propagate edge score information and construct graph. This code was partially adapted from https://github.com/GXYM/DRRG licensed under the MIT
mmocr/models/textdet/postprocess/wrapper.py:533
↓ 1 callersMethodgreedy_forward
(self, SOS, feature, mask)
mmocr/models/textrecog/decoders/master_decoder.py:164
↓ 1 callersFunctiongt_label2entity
Get all entities from ground truth infos. Args: gt_infos (list[dict]): Ground-truth infomation contains text and label. Returns:
mmocr/core/evaluation/ner_metric.py:4
↓ 1 callersFunctionimshow_edge_node
(img, result, boxes, idx_to_cls={},
mmocr/core/visualize.py:383
↓ 1 callersFunctionimshow_gt_det_bboxes
General visualization GT and result function. Args: img (str or ndarray): The image to be displayed.) annotation (dict): Ground truth
mmdetection-2.11.0/mmdet/core/visualization/image.py:189
↓ 1 callersFunctionimshow_pred_boundary
Draw boundaries and class labels (with scores) on an image. Args: img (str or ndarray): The image to be displayed. boundaries_wit
mmocr/core/visualize.py:146
↓ 1 callersFunctionimshow_text_label
Draw predicted texts and ground truth texts on images. Args: img (str or np.ndarray): Image filename or loaded image. pred_label
mmocr/core/visualize.py:323
↓ 1 callersMethodinit
(self)
mmdetection-2.11.0/tests/test_runtime/test_async.py:45
↓ 1 callersMethodinit_assigner_sampler
Initialize assigner and sampler.
mmdetection-2.11.0/mmdet/models/roi_heads/base_roi_head.py:69
↓ 1 callersMethodinit_bbox_head
Initialize ``bbox_head``
mmdetection-2.11.0/mmdet/models/roi_heads/base_roi_head.py:59
↓ 1 callersMethodinit_mask_head
Initialize ``mask_head``
mmdetection-2.11.0/mmdet/models/roi_heads/base_roi_head.py:64
↓ 1 callersMethodinit_point_head
Initialize ``point_head``
mmdetection-2.11.0/mmdet/models/roi_heads/point_rend_roi_head.py:22
↓ 1 callersMethodinit_segm_mask_weights
Initialize weights of the YOLACT segm head and YOLACT mask head.
mmdetection-2.11.0/mmdet/models/detectors/yolact.py:27
↓ 1 callersMethodinit_weights
(self)
mmdetection-2.11.0/mmdet/models/necks/rfp.py:42
↓ 1 callersMethodinit_weights
Initialize the weights.
mmdetection-2.11.0/mmdet/models/backbones/detectors_resnet.py:61
↓ 1 callersMethodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
mmdetection-2.11.0/mmdet/models/backbones/res2net.py:321
↓ 1 callersMethodinit_weights
(self)
mmdetection-2.11.0/mmdet/models/backbones/trident_resnet.py:57
↓ 1 callersMethodinit_weights
(self)
mmdetection-2.11.0/mmdet/models/dense_heads/guided_anchor_head.py:46
↓ 1 callersMethodinit_weights
Initialize the learnable weights.
mmdetection-2.11.0/mmdet/models/utils/positional_encoding.py:115
↓ 1 callersMethodinit_weights
Initialize the transformer weights.
mmdetection-2.11.0/mmdet/models/utils/transformer.py:681
↓ 1 callersMethodinit_weights
Initialize the weights in detector. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
mmdetection-2.11.0/mmdet/models/detectors/two_stage.py:60
↓ 1 callersMethodinit_weights
Initialize the weights in detector. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
mmdetection-2.11.0/mmdet/models/detectors/single_stage.py:35
↓ 1 callersMethodinit_weights
Initialize and prunes weights if needed.
mmocr/models/ner/utils/bert.py:135
↓ 1 callersMethodinit_weights
(self, pretrained=None)
mmocr/models/ner/encoders/bert_encoder.py:78
↓ 1 callersMethodinit_weights
(self)
mmocr/models/ner/decoders/fc_decoder.py:39
↓ 1 callersMethodinit_weights
(self)
mmocr/models/textrecog/necks/fpn_ocr.py:49
↓ 1 callersMethodinit_weights
(self, pretrained=None)
mmocr/models/textrecog/backbones/resnet31_ocr.py:88
↓ 1 callersMethodinit_weights
(self, pretrained=None)
mmocr/models/textrecog/backbones/very_deep_vgg.py:57
↓ 1 callersMethodinit_weights
(self)
mmocr/models/textrecog/encoders/sar_encoder.py:66
↓ 1 callersMethodinit_weights
(self)
mmocr/models/textrecog/encoders/base_encoder.py:10
↓ 1 callersMethodinit_weights
(self)
mmocr/models/textrecog/preprocessor/base_preprocessor.py:10
↓ 1 callersMethodinit_weights
Initialize the weights of FPN module.
mmocr/models/textdet/necks/fpn_cat.py:89
↓ 1 callersMethodinit_weights
(self)
mmocr/models/textdet/dense_heads/drrg_head.py:136
↓ 1 callersMethodinit_weights
(self)
mmocr/models/textdet/dense_heads/fce_head.py:86
↓ 1 callersMethodinit_weights
(self)
mmocr/models/textdet/dense_heads/textsnake_head.py:43
↓ 1 callersMethodinit_weights
(self)
mmocr/models/textdet/dense_heads/pan_head.py:56
↓ 1 callersFunctioniou_loss
IoU loss. Computing the IoU loss between a set of predicted bboxes and target bboxes. The loss is calculated as negative log of IoU. Arg
mmdetection-2.11.0/mmdet/models/losses/iou_loss.py:14
↓ 1 callersFunctionis_head
(key)
mmdetection-2.11.0/tools/model_converters/upgrade_model_version.py:10
↓ 1 callersFunctionis_type_list
(x, type)
mmocr/utils/check_argument.py:38
↓ 1 callersMethodjitter_comp_attribs
Jitter text components attributes. Args: comp_attribs (ndarray): The text component attributes. jitter_level (float):
mmocr/datasets/pipelines/textdet_targets/drrg_targets.py:319
↓ 1 callersFunctionknowledge_distillation_kl_div_loss
r"""Loss function for knowledge distilling using KL divergence. Args: pred (Tensor): Predicted logits with shape (N, n + 1). soft
mmdetection-2.11.0/mmdet/models/losses/kd_loss.py:11
↓ 1 callersFunctionl1_loss
L1 loss. Args: pred (torch.Tensor): The prediction. target (torch.Tensor): The learning target of the prediction. Returns:
mmdetection-2.11.0/mmdet/models/losses/smooth_l1_loss.py:33
↓ 1 callersMethodl1_thr_loss
(self, pred, gt, mask)
mmocr/models/textdet/losses/db_loss.py:103
↓ 1 callersFunctionlegacy_bbox2delta
Compute deltas of proposals w.r.t. gt in the MMDet V1.x manner. We usually compute the deltas of x, y, w, h of proposals w.r.t ground truth b
mmdetection-2.11.0/mmdet/core/bbox/coder/legacy_delta_xywh_bbox_coder.py:84
↓ 1 callersFunctionlegacy_delta2bbox
Apply deltas to shift/scale base boxes in the MMDet V1.x manner. Typically the rois are anchor or proposed bounding boxes and the deltas are
mmdetection-2.11.0/mmdet/core/bbox/coder/legacy_delta_xywh_bbox_coder.py:133
↓ 1 callersFunctionlist_from_folder_table
Load table structure label files and parse the content as a list of dict. The advance parse will do in parser object. Args: folder (s
mmocr/utils/fileio.py:47
↓ 1 callersMethodlist_to_numpy
Convert bboxes, relations, texts and labels to ndarray.
mmocr/datasets/kie_dataset.py:167
↓ 1 callersMethodload_annotations
Load annotation from annotation file.
mmdetection-2.11.0/mmdet/datasets/custom.py:110
↓ 1 callersMethodload_annotations
Load annotation from COCO style annotation file. Args: ann_file (str): Path of annotation file. Returns: lis
mmdetection-2.11.0/mmdet/datasets/coco.py:38
↓ 1 callersFunctionload_json_logs
(json_logs)
mmdetection-2.11.0/tools/analysis_tools/analyze_logs.py:146
↓ 1 callersMethodload_proposals
Load proposal from proposal file.
mmdetection-2.11.0/mmdet/datasets/custom.py:114
↓ 1 callersFunctionload_txt_info
(gt_file, img_info)
tools/data/textdet/ctw1500_converter.py:87
↓ 1 callersFunctionload_xml_info
(gt_file, img_info)
tools/data/textdet/ctw1500_converter.py:117
↓ 1 callersMethodloss
Compute losses of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/base_dense_head.py:13
↓ 1 callersMethodloss
Loss function. Only outputs from the last feature level are used for computing losses by default. Args: all_cls_
mmdetection-2.11.0/mmdet/models/dense_heads/transformer_head.py:258
↓ 1 callersMethodloss
loss() is implemented in StageCascadeRPNHead.
mmdetection-2.11.0/mmdet/models/dense_heads/cascade_rpn_head.py:704
↓ 1 callersMethodloss
(self, mask_iou_pred, mask_iou_targets)
mmdetection-2.11.0/mmdet/models/roi_heads/mask_heads/maskiou_head.py:91
↓ 1 callersMethodloss_loc_single
(self, loc_pred, loc_target, loc_weight, loc_avg_factor)
mmdetection-2.11.0/mmdet/models/dense_heads/guided_anchor_head.py:631
↓ 1 callersMethodloss_shape_single
(self, shape_pred, bbox_anchors, bbox_gts, anchor_weights, anchor_total_num)
mmdetection-2.11.0/mmdet/models/dense_heads/guided_anchor_head.py:607
↓ 1 callersFunctionmain
()
tools/train.py:97
↓ 1 callersFunctionmain
()
tools/test.py:103
↓ 1 callersFunctionmain
()
tools/ocr_test_imgs.py:41
↓ 1 callersFunctionmain
()
tools/publish_model.py:32
↓ 1 callersFunctionmain
()
tools/test_imgs.py:110
↓ 1 callersFunctionmain
()
tools/kie_test_imgs.py:76
↓ 1 callersFunctionmain
()
tools/data/utils/txt2lmdb.py:6
↓ 1 callersFunctionmain
()
tools/data/textrecog/svt_converter.py:28
↓ 1 callersFunctionmain
()
tools/data/textrecog/seg_synthtext_converter.py:80
↓ 1 callersFunctionmain
()
tools/data/textdet/coco_to_line_dict.py:58
↓ 1 callersFunctionmain
()
tools/data/textdet/totaltext_converter.py:286
↓ 1 callersFunctionmain
()
tools/data/textdet/icdar_converter.py:165
↓ 1 callersFunctionmain
()
tools/data/textdet/ctw1500_converter.py:212
↓ 1 callersFunctionmain
()
tools/data/textdet/synthtext_converter.py:166
← previousnext →901–1,000 of 2,851, ranked by callers