Turn any PDF or image document into structured data for your AI. A powerful, lightweight OCR toolkit that bridges the gap between images/PDFs and LLMs. Supports 100+ languages.
This report presents the forensic synthetic code analysis of PaddlePaddle/PaddleOCR, a Python project with 85,418 GitHub stars. SynthScan v2.0 examined 479,570 lines of code across 1989 source files, recording 3031 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 7.0 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 3031 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/analysis.py | 15 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/post_processing/__init__.py | 5 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/tools/export_model.py | 8 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/tools/infer.py | 24 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/tools/infer.py | 27 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/compute_mean_std.py | 7 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/util.py | 8 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/__init__.py | 4 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/__init__.py | 5 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/__init__.py | 6 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/__init__.py | 7 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/__init__.py | 8 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/cal_recall/__init__.py | 4 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/ocr_metric/__init__.py | 4 | CODE | |
| LOW | …PaddleOCR_DBNet/utils/ocr_metric/icdar2015/__init__.py | 5 | CODE | |
| LOW | …DBNet/utils/ocr_metric/icdar2015/detection/mtwi2018.py | 4 | CODE | |
| LOW | …BNet/utils/ocr_metric/icdar2015/detection/icdar2013.py | 3 | CODE | |
| LOW | …BNet/utils/ocr_metric/icdar2015/detection/icdar2013.py | 4 | CODE | |
| LOW | …_DBNet/utils/ocr_metric/icdar2015/detection/deteval.py | 3 | CODE | |
| LOW | …_DBNet/utils/ocr_metric/icdar2015/detection/deteval.py | 4 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/__init__.py | 5 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/__init__.py | 6 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/losses/__init__.py | 5 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/head/__init__.py | 4 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/neck/__init__.py | 4 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/backbone/__init__.py | 5 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/backbone/resnet.py | 1 | CODE | |
| LOW | …chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py | 4 | CODE | |
| LOW | …chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py | 5 | CODE | |
| LOW | …chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py | 6 | CODE | |
| LOW | …chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py | 6 | CODE | |
| LOW | …chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py | 7 | CODE | |
| LOW | …chmark/PaddleOCR_DBNet/data_loader/modules/__init__.py | 8 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/base/base_dataset.py | 6 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/base/base_trainer.py | 7 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/base/__init__.py | 1 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/base/__init__.py | 2 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/trainer/__init__.py | 4 | CODE | |
| LOW | tools/export_model.py | 22 | CODE | |
| LOW | tools/infer_kie_token_ser_re.py | 15 | CODE | |
| LOW | tools/infer_kie_token_ser_re.py | 16 | CODE | |
| LOW | tools/infer_kie_token_ser_re.py | 17 | CODE | |
| LOW | tools/infer_kie_token_ser_re.py | 34 | CODE | |
| LOW | tools/infer_kie_token_ser_re.py | 34 | CODE | |
| LOW | tools/infer_kie_token_ser_re.py | 40 | CODE | |
| LOW | tools/infer_sr.py | 15 | CODE | |
| LOW | tools/infer_sr.py | 16 | CODE | |
| LOW | tools/infer_sr.py | 17 | CODE | |
| LOW | tools/infer_sr.py | 23 | CODE | |
| LOW | tools/export_center.py | 15 | CODE | |
| LOW | tools/export_center.py | 16 | CODE | |
| LOW | tools/export_center.py | 17 | CODE | |
| LOW | tools/export_center.py | 31 | CODE | |
| LOW | tools/infer_det.py | 15 | CODE | |
| LOW | tools/infer_det.py | 16 | CODE | |
| LOW | tools/infer_det.py | 17 | CODE | |
| LOW | tools/infer_table.py | 15 | CODE | |
| LOW | tools/infer_table.py | 16 | CODE | |
| LOW | tools/infer_table.py | 17 | CODE | |
| LOW | tools/infer_table.py | 32 | CODE | |
| 1244 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mkdocs.yml | 221 | # - locale: ru | COMMENT |
| LOW | setup.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | benchmark/analysis.py | 1 | # copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | benchmark/PaddleOCR_DBNet/tools/__init__.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | benchmark/PaddleOCR_DBNet/tools/infer.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | benchmark/PaddleOCR_DBNet/utils/profiler.py | 1 | # copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | benchmark/PaddleOCR_DBNet/trainer/__init__.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tools/export_model.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer_kie_token_ser_re.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer_sr.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/export_center.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer_det.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer_table.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer_cls.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/__init__.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer_kie.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer_kie_token_ser.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/test_hubserving.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/naive_sync_bn.py | 1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer_e2e.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer_rec.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/train.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/program.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/eval.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/end2end/draw_html.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/end2end/eval_end2end.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/end2end/convert_ppocr_label.py | 1 | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer/predict_sr.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer/utility.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer/predict_rec.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer/predict_e2e.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer/predict_cls.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer/predict_system.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | tools/infer/predict_det.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | ppocr/__init__.py | 1 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | ppocr/metrics/det_metric.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | ppocr/metrics/cls_metric.py | 1 | # copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/metrics/vqa_token_ser_metric.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | ppocr/metrics/kie_metric.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | ppocr/metrics/bleu.py | 1 | # copyright (c) 2024 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/metrics/__init__.py | 1 | # copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/metrics/sr_metric.py | 1 | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/metrics/rec_metric.py | 1 | # copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/metrics/e2e_metric.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | ppocr/metrics/ct_metric.py | 1 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | ppocr/metrics/distillation_metric.py | 1 | # copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/metrics/table_metric.py | 1 | # copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/metrics/vqa_token_re_metric.py | 1 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. | COMMENT |
| LOW | ppocr/losses/rec_parseq_loss.py | 1 | # copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/rec_vl_loss.py | 1 | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/basic_loss.py | 1 | # copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/rec_satrn_loss.py | 1 | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/e2e_pg_loss.py | 1 | # copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/rec_ctc_loss.py | 1 | # copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/rec_pren_loss.py | 1 | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/rec_multi_loss.py | 1 | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/distillation_loss.py | 1 | # copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/rec_rfl_loss.py | 1 | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/det_fce_loss.py | 1 | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| LOW | ppocr/losses/rec_srn_loss.py | 1 | # copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. | COMMENT |
| 637 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/PaddleOCR_DBNet/utils/util.py | 161 | def order_points_clockwise_list(pts): | CODE |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 321 | def validate_point_inside_bounds(x, y, imWidth, imHeight): | CODE |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 334 | def validate_clockwise_points(points): | CODE |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 362 | def get_tl_line_values_from_file_contents( | CODE |
| LOW | benchmark/PaddleOCR_DBNet/utils/cal_recall/script.py | 9 | def default_evaluation_params(): | CODE |
| LOW | benchmark/PaddleOCR_DBNet/utils/cal_recall/script.py | 117 | def get_intersection_over_union(pD, pG): | CODE |
| LOW | …DBNet/utils/ocr_metric/icdar2015/detection/mtwi2018.py | 24 | def get_intersection_over_union(pD, pG): | CODE |
| LOW | …BNet/utils/ocr_metric/icdar2015/detection/icdar2013.py | 30 | def get_intersection_over_union(pD, pG): | CODE |
| LOW | …eOCR_DBNet/utils/ocr_metric/icdar2015/detection/iou.py | 43 | def get_intersection_over_union(pD, pG): | CODE |
| LOW | …_DBNet/utils/ocr_metric/icdar2015/detection/deteval.py | 30 | def get_intersection_over_union(pD, pG): | CODE |
| LOW | …addleOCR_DBNet/data_loader/modules/random_crop_data.py | 105 | def region_wise_random_select(self, regions, max_size): | CODE |
| LOW | tools/naive_sync_bn.py | 36 | def differentiable_all_reduce(input): | CODE |
| LOW | tools/infer/predict_rec.py | 430 | def resize_norm_img_cppd_padding( | CODE |
| LOW | tools/infer/predict_e2e.py | 98 | def filter_tag_det_res_only_clip(self, dt_boxes, image_shape): | CODE |
| LOW | tools/infer/predict_det.py | 226 | def filter_tag_det_res_only_clip(self, dt_boxes, image_shape): | CODE |
| LOW | ppocr/metrics/eval_det_iou.py | 22 | def get_intersection_over_union(pD, pG): | CODE |
| LOW | ppocr/metrics/table_metric.py | 99 | def prepare_bbox_metric_input(self, pred_label): | CODE |
| LOW | ppocr/utils/export_model.py | 33 | def represent_dictionary_order(self, dict_data): | CODE |
| LOW | ppocr/utils/network.py | 33 | def download_with_progressbar(url, save_path): | CODE |
| LOW | ppocr/utils/e2e_metric/polygon_fast.py | 35 | def approx_area_of_intersection(det_x, det_y, gt_x, gt_y): | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_fast.py | 92 | def instance_ctc_greedy_decoder( | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_fast.py | 209 | def sort_and_expand_with_direction(pos_list, f_direction): | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_fast.py | 470 | def sort_by_direction_with_image_id_deprecated(pos_list, f_direction): | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_fast.py | 485 | def sort_by_direction_with_image_id(pos_list, f_direction): | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_slow.py | 157 | def instance_ctc_greedy_decoder(gather_info, logits_map, keep_blank_in_idxs=True): | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_slow.py | 236 | def sort_and_expand_with_direction(pos_list, f_direction): | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_slow.py | 345 | def generate_pivot_list_curved( | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_slow.py | 409 | def generate_pivot_list_horizontal( | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_slow.py | 533 | def sort_by_direction_with_image_id_deprecated(pos_list, f_direction): | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_slow.py | 548 | def sort_by_direction_with_image_id(pos_list, f_direction): | CODE |
| LOW | ppocr/utils/e2e_utils/extract_textpoint_slow.py | 589 | def generate_pivot_list_tt_inference( | CODE |
| LOW | ppocr/utils/e2e_utils/visual.py | 73 | def resize_image_for_totaltext(im, max_side_len=512): | CODE |
| LOW | ppocr/modeling/necks/db_fpn.py | 661 | def _convert_dilated_to_nondilated(kernel, dilate_rate): | CODE |
| LOW | ppocr/modeling/necks/db_fpn.py | 678 | def _merge_dilated_into_large_kernel(large_kernel, dilated_kernel, dilated_r): | CODE |
| LOW | ppocr/modeling/heads/rec_satrn_head.py | 138 | def _get_sinusoid_encoding_table(self, n_position, d_hid): | CODE |
| LOW | ppocr/modeling/heads/rec_satrn_head.py | 338 | def _get_sinusoid_encoding_table(self, n_position, d_hid): | CODE |
| LOW | ppocr/modeling/heads/local_graph.py | 29 | def normalize_adjacent_matrix(A): | CODE |
| LOW | ppocr/modeling/heads/local_graph.py | 43 | def euclidean_distance_matrix(A, B): | CODE |
| LOW | ppocr/modeling/heads/proposal_local_graph.py | 162 | def propose_comps_and_attribs( | CODE |
| LOW | ppocr/modeling/heads/rec_visionlan_head.py | 38 | def _get_sinusoid_encoding_table(self, n_position, d_hid): | CODE |
| LOW | ppocr/modeling/heads/rec_nrtr_head.py | 200 | def get_inst_idx_to_tensor_position_map(inst_idx_list): | CODE |
| LOW | ppocr/modeling/heads/rec_nrtr_head.py | 271 | def collect_active_inst_idx_list( | CODE |
| LOW | ppocr/modeling/heads/rec_nrtr_head.py | 293 | def collect_hypothesis_and_scores(inst_dec_beams, n_best): | CODE |
| LOW | ppocr/modeling/heads/rec_nrtr_head.py | 352 | def generate_square_subsequent_mask(self, sz): | CODE |
| LOW | ppocr/modeling/heads/rec_nrtr_head.py | 683 | def get_the_best_score_and_idx(self): | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 878 | def prepare_inputs_for_generation( | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 1253 | def _scaled_dot_product_attention( | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 1321 | def multi_head_attention_forward( | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 2137 | def _get_decoder_start_token_id( | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 2158 | def _prepare_decoder_input_ids_for_generation( | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 2227 | def prepare_inputs_for_generation_mbart( | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 2255 | def prepare_inputs_for_generation( | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 2282 | def prepare_inputs_for_generation_export( | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 2297 | def _extract_past_from_model_output( | CODE |
| LOW | ppocr/modeling/heads/rec_unimernet_head.py | 2310 | def _update_model_kwargs_for_generation( | CODE |
| LOW | ppocr/modeling/heads/rec_ppformulanet_head.py | 123 | def _make_causal_mask_parallel( | CODE |
| LOW | ppocr/modeling/heads/rec_ppformulanet_head.py | 809 | def prepare_inputs_for_generation( | CODE |
| LOW | ppocr/modeling/heads/rec_ppformulanet_head.py | 835 | def _extract_past_from_model_output( | CODE |
| LOW | ppocr/modeling/heads/rec_ppformulanet_head.py | 847 | def _update_model_kwargs_for_generation( | CODE |
| LOW | ppocr/modeling/heads/rec_ppformulanet_head.py | 906 | def stopping_criteria_parallel(self, input_ids): | CODE |
| 272 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | benchmark/PaddleOCR_DBNet/utils/util.py | 0 | recursively visualize a dict and indenting acrrording by the relationship of keys. | STRING |
| HIGH | ppocr/utils/utility.py | 0 | recursively visualize a dict and indenting acrrording by the relationship of keys. | STRING |
| HIGH | test_tipc/supplementary/utils.py | 0 | recursively visualize a dict and indenting acrrording by the relationship of keys. | STRING |
| HIGH | benchmark/PaddleOCR_DBNet/utils/util.py | 0 | load config from yml/yaml file. args: file_path (str): path of the config file to be loaded. returns: global config | STRING |
| HIGH | tools/program.py | 0 | load config from yml/yaml file. args: file_path (str): path of the config file to be loaded. returns: global config | STRING |
| HIGH | test_tipc/supplementary/config.py | 0 | load config from yml/yaml file. args: file_path (str): path of the config file to be loaded. returns: global config | STRING |
| HIGH | …PaddleOCR_DBNet/data_loader/modules/make_shrink_map.py | 0 | 从scales中随机选择一个尺度,对图片和文本框进行缩放 :param data: {'img':,'text_polys':,'texts':,'ignore_tags':} :return: | STRING |
| HIGH | …PaddleOCR_DBNet/data_loader/modules/make_border_map.py | 0 | 从scales中随机选择一个尺度,对图片和文本框进行缩放 :param data: {'img':,'text_polys':,'texts':,'ignore_tags':} :return: | STRING |
| HIGH | …nchmark/PaddleOCR_DBNet/data_loader/modules/augment.py | 0 | 从scales中随机选择一个尺度,对图片和文本框进行缩放 :param data: {'img':,'text_polys':,'texts':,'ignore_tags':} :return: | STRING |
| HIGH | …addleOCR_DBNet/data_loader/modules/random_crop_data.py | 0 | 从scales中随机选择一个尺度,对图片和文本框进行缩放 :param data: {'img':,'text_polys':,'texts':,'ignore_tags':} :return: | STRING |
| HIGH | tools/program.py | 0 | merge config into global config. args: config (dict): config to be merged. returns: global config | STRING |
| HIGH | …/rec/multi_language/generate_multi_language_configs.py | 0 | merge config into global config. args: config (dict): config to be merged. returns: global config | STRING |
| HIGH | test_tipc/supplementary/config.py | 0 | merge config into global config. args: config (dict): config to be merged. returns: global config | STRING |
| HIGH | ppocr/losses/det_pse_loss.py | 0 | this code is refer from: https://github.com/whai362/psenet/blob/python3/models/head/psenet_head.py | STRING |
| HIGH | ppocr/modeling/heads/det_pse_head.py | 0 | this code is refer from: https://github.com/whai362/psenet/blob/python3/models/head/psenet_head.py | STRING |
| HIGH | ppocr/postprocess/pse_postprocess/pse_postprocess.py | 0 | this code is refer from: https://github.com/whai362/psenet/blob/python3/models/head/psenet_head.py | STRING |
| HIGH | ppocr/utils/e2e_utils/extract_textpoint_fast.py | 0 | transfer vertical point_pairs into poly point in clockwise. | STRING |
| HIGH | ppocr/utils/e2e_utils/extract_textpoint_slow.py | 0 | transfer vertical point_pairs into poly point in clockwise. | STRING |
| HIGH | ppocr/utils/e2e_utils/visual.py | 0 | transfer vertical point_pairs into poly point in clockwise. | STRING |
| HIGH | ppocr/postprocess/sast_postprocess.py | 0 | transfer vertical point_pairs into poly point in clockwise. | STRING |
| HIGH | ppocr/modeling/heads/sr_rensnet_transformer.py | 0 | generate a square mask for the sequence. the masked positions are filled with float('-inf'). unmasked positions are fill | STRING |
| HIGH | ppocr/modeling/heads/rec_abinet_head.py | 0 | generate a square mask for the sequence. the masked positions are filled with float('-inf'). unmasked positions are fill | STRING |
| HIGH | ppocr/modeling/heads/rec_nrtr_head.py | 0 | generate a square mask for the sequence. the masked positions are filled with float('-inf'). unmasked positions are fill | STRING |
| HIGH | ppocr/modeling/backbones/rec_resnetv2.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). | STRING |
| HIGH | ppocr/modeling/backbones/rec_svtrv2.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). | STRING |
| HIGH | ppocr/modeling/backbones/rec_vit.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). | STRING |
| HIGH | ppocr/modeling/backbones/rec_vit_parseq.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). | STRING |
| HIGH | ppocr/modeling/backbones/rec_svtrnet.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). | STRING |
| HIGH | ppocr/modeling/backbones/rec_donut_swin.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). | STRING |
| HIGH | ppocr/modeling/backbones/rec_svtrv2.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). the original name is misleading | STRING |
| HIGH | ppocr/modeling/backbones/rec_vit.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). the original name is misleading | STRING |
| HIGH | ppocr/modeling/backbones/rec_vit_parseq.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). the original name is misleading | STRING |
| HIGH | ppocr/modeling/backbones/rec_svtrnet.py | 0 | drop paths (stochastic depth) per sample (when applied in main path of residual blocks). the original name is misleading | STRING |
| HIGH | ppocr/data/imaug/east_process.py | 0 | check so that the text poly is in the same direction, and also filter some invalid polygons :param polys: :param tags: : | STRING |
| HIGH | ppocr/data/imaug/sast_process.py | 0 | check so that the text poly is in the same direction, and also filter some invalid polygons :param polys: :param tags: : | STRING |
| HIGH | ppocr/data/imaug/pg_process.py | 0 | check so that the text poly is in the same direction, and also filter some invalid polygons :param polys: :param tags: : | STRING |
| HIGH | deploy/hubserving/ocr_det/module.py | 0 | get the text angle in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, c]. | STRING |
| HIGH | deploy/hubserving/ocr_rec/module.py | 0 | get the text angle in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, c]. | STRING |
| HIGH | deploy/hubserving/ocr_cls/module.py | 0 | get the text angle in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, c]. | STRING |
| HIGH | deploy/hubserving/structure_system/module.py | 0 | get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, | STRING |
| HIGH | deploy/hubserving/kie_ser_re/module.py | 0 | get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, | STRING |
| HIGH | deploy/hubserving/ocr_system/module.py | 0 | get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, | STRING |
| HIGH | deploy/hubserving/kie_ser/module.py | 0 | get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, | STRING |
| HIGH | deploy/hubserving/structure_table/module.py | 0 | get the chinese texts in the predicted images. args: images (list(numpy.ndarray)): images data, shape of each is [h, w, | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | overrides/hooks/expiry.py | 5 | CODE | |
| LOW | overrides/hooks/expiry.py | 8 | CODE | |
| LOW | benchmark/analysis.py | 110 | CODE | |
| LOW | benchmark/analysis.py | 159 | CODE | |
| LOW | benchmark/analysis.py | 192 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/util.py | 23 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/util.py | 170 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/util.py | 251 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/util.py | 339 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/profiler.py | 59 | CODE | |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 25 | CODE | |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 54 | CODE | |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 86 | CODE | |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 175 | CODE | |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 403 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/utils/cal_recall/script.py | 60 | CODE | |
| LOW | …dleOCR_DBNet/utils/ocr_metric/icdar2015/quad_metric.py | 31 | CODE | |
| LOW | …DBNet/utils/ocr_metric/icdar2015/detection/mtwi2018.py | 20 | CODE | |
| LOW | …BNet/utils/ocr_metric/icdar2015/detection/icdar2013.py | 26 | CODE | |
| LOW | …eOCR_DBNet/utils/ocr_metric/icdar2015/detection/iou.py | 39 | CODE | |
| LOW | …_DBNet/utils/ocr_metric/icdar2015/detection/deteval.py | 26 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/backbone/resnet.py | 167 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/data_loader/__init__.py | 48 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/data_loader/dataset.py | 43 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/data_loader/dataset.py | 86 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/base/base_dataset.py | 61 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/trainer/trainer.py | 147 | CODE | |
| LOW | tools/infer_sr.py | 43 | CODE | |
| LOW | tools/infer_det.py | 57 | CODE | |
| LOW | tools/infer_cls.py | 40 | CODE | |
| LOW | tools/infer_kie.py | 126 | CODE | |
| LOW | tools/test_hubserving.py | 75 | CODE | |
| LOW | tools/test_hubserving.py | 100 | CODE | |
| LOW | tools/infer_e2e.py | 102 | CODE | |
| LOW | tools/check_docs_github_links.py | 23 | CODE | |
| LOW | tools/infer_rec.py | 41 | CODE | |
| LOW | tools/train.py | 46 | CODE | |
| LOW | tools/program.py | 88 | CODE | |
| LOW | tools/program.py | 118 | CODE | |
| LOW | tools/program.py | 180 | CODE | |
| LOW | tools/program.py | 200 | CODE | |
| LOW | tools/program.py | 709 | CODE | |
| LOW | tools/program.py | 821 | CODE | |
| LOW | tools/program.py | 873 | CODE | |
| LOW | tools/eval.py | 35 | CODE | |
| LOW | tools/end2end/eval_end2end.py | 70 | CODE | |
| LOW | tools/end2end/convert_ppocr_label.py | 27 | CODE | |
| LOW | tools/infer/utility.py | 177 | CODE | |
| LOW | tools/infer/utility.py | 520 | CODE | |
| LOW | tools/infer/utility.py | 1006 | CODE | |
| LOW | tools/infer/predict_rec.py | 40 | CODE | |
| LOW | tools/infer/predict_rec.py | 583 | CODE | |
| LOW | tools/infer/predict_system.py | 185 | CODE | |
| LOW | tools/infer/predict_det.py | 37 | CODE | |
| LOW | tools/infer/predict_det.py | 244 | CODE | |
| LOW | tools/infer/predict_det.py | 310 | CODE | |
| LOW | ppocr/metrics/eval_det_iou.py | 18 | CODE | |
| LOW | ppocr/metrics/e2e_metric.py | 41 | CODE | |
| LOW | ppocr/metrics/vqa_token_re_metric.py | 79 | CODE | |
| LOW | ppocr/losses/rec_multi_loss.py | 41 | CODE | |
| 168 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/PaddleOCR_DBNet/tools/infer.py | 215 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/backbone/resnet.py | 98 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/models/backbone/resnet.py | 163 | CODE | |
| LOW | benchmark/PaddleOCR_DBNet/data_loader/dataset.py | 66 | CODE | |
| LOW | tools/naive_sync_bn.py | 109 | CODE | |
| LOW | tools/program.py | 200 | CODE | |
| LOW | tools/infer/utility.py | 854 | CODE | |
| LOW | ppocr/metrics/kie_metric.py | 62 | CODE | |
| LOW | ppocr/losses/distillation_loss.py | 48 | CODE | |
| LOW | ppocr/losses/distillation_loss.py | 251 | CODE | |
| LOW | ppocr/losses/distillation_loss.py | 505 | CODE | |
| LOW | ppocr/losses/distillation_loss.py | 706 | CODE | |
| LOW | ppocr/losses/distillation_loss.py | 745 | CODE | |
| LOW | ppocr/losses/rec_enhanced_ctc_loss.py | 27 | CODE | |
| LOW | ppocr/losses/rec_aster_loss.py | 42 | CODE | |
| LOW | ppocr/losses/det_db_loss.py | 36 | CODE | |
| LOW | ppocr/ext_op/roi_align_rotated/roi_align_rotated.py | 69 | CODE | |
| LOW | ppocr/optimizer/lr_scheduler.py | 55 | CODE | |
| LOW | ppocr/optimizer/optimizer.py | 57 | CODE | |
| LOW | ppocr/optimizer/optimizer.py | 231 | CODE | |
| LOW | ppocr/utils/e2e_utils/pgnet_pp_utils.py | 86 | CODE | |
| LOW | ppocr/utils/e2e_utils/pgnet_pp_utils.py | 179 | CODE | |
| LOW | ppocr/modeling/necks/pren_fpn.py | 79 | CODE | |
| LOW | ppocr/modeling/necks/fce_fpn.py | 88 | CODE | |
| LOW | ppocr/modeling/necks/fce_fpn.py | 119 | CODE | |
| LOW | ppocr/modeling/necks/rnn.py | 141 | CODE | |
| LOW | ppocr/modeling/necks/rnn.py | 252 | CODE | |
| LOW | ppocr/modeling/heads/gcn.py | 82 | CODE | |
| LOW | ppocr/modeling/heads/rec_satrn_head.py | 173 | CODE | |
| LOW | ppocr/modeling/heads/rec_satrn_head.py | 253 | CODE | |
| LOW | ppocr/modeling/heads/rec_satrn_head.py | 307 | CODE | |
| LOW | ppocr/modeling/heads/rec_satrn_head.py | 357 | CODE | |
| LOW | ppocr/modeling/heads/rec_satrn_head.py | 452 | CODE | |
| LOW | ppocr/modeling/heads/rec_satrn_head.py | 520 | CODE | |
| LOW | ppocr/modeling/heads/rec_sar_head.py | 156 | CODE | |
| LOW | ppocr/modeling/heads/rec_sar_head.py | 349 | CODE | |
| LOW | ppocr/modeling/heads/kie_sdmgr_head.py | 28 | CODE | |
| LOW | ppocr/modeling/heads/kie_sdmgr_head.py | 154 | CODE | |
| LOW | ppocr/modeling/heads/rec_robustscanner_head.py | 156 | CODE | |
| LOW | ppocr/modeling/heads/rec_robustscanner_head.py | 244 | CODE | |
| LOW | ppocr/modeling/heads/rec_robustscanner_head.py | 324 | CODE | |
| LOW | ppocr/modeling/heads/rec_robustscanner_head.py | 354 | CODE | |
| LOW | ppocr/modeling/heads/rec_robustscanner_head.py | 384 | CODE | |
| LOW | ppocr/modeling/heads/rec_robustscanner_head.py | 521 | CODE | |
| LOW | ppocr/modeling/heads/rec_robustscanner_head.py | 551 | CODE | |
| LOW | ppocr/modeling/heads/rec_robustscanner_head.py | 637 | CODE | |
| LOW | ppocr/modeling/heads/rec_robustscanner_head.py | 685 | CODE | |
| LOW | ppocr/modeling/heads/rec_srn_head.py | 239 | CODE | |
| LOW | ppocr/modeling/heads/rec_aster_head.py | 157 | CODE | |
| LOW | ppocr/modeling/heads/self_attention.py | 312 | CODE | |
| LOW | ppocr/modeling/heads/self_attention.py | 460 | CODE | |
| LOW | ppocr/modeling/heads/sr_rensnet_transformer.py | 214 | CODE | |
| LOW | ppocr/modeling/heads/sr_rensnet_transformer.py | 262 | CODE | |
| LOW | ppocr/modeling/heads/sr_rensnet_transformer.py | 352 | CODE | |
| LOW | ppocr/modeling/heads/table_att_head.py | 187 | CODE | |
| LOW | ppocr/modeling/heads/rec_abinet_head.py | 282 | CODE | |
| LOW | ppocr/modeling/heads/rec_abinet_head.py | 28 | CODE | |
| LOW | ppocr/modeling/heads/rec_abinet_head.py | 175 | CODE | |
| LOW | ppocr/modeling/heads/det_db_head.py | 258 | CODE | |
| LOW | ppocr/modeling/heads/rec_visionlan_head.py | 89 | CODE | |
| 113 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | overrides/hooks/expiry.py | 24 | except Exception: | CODE |
| LOW | benchmark/analysis.py | 146 | except Exception as exc: | CODE |
| LOW | benchmark/analysis.py | 350 | except Exception: | CODE |
| LOW | benchmark/PaddleOCR_DBNet/tools/infer.py | 127 | except Exception as E: | CODE |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 153 | except Exception as e: | CODE |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 431 | except Exception as e: | CODE |
| LOW | …ddleOCR_DBNet/utils/cal_recall/rrc_evaluation_funcs.py | 492 | except Exception as e: | CODE |
| LOW | tools/train.py | 291 | except Exception as e: | CODE |
| LOW | tools/program.py | 176 | except Exception as e: | CODE |
| LOW | tools/infer/predict_sr.py | 164 | except Exception as E: | CODE |
| LOW | tools/infer/utility.py | 346 | except Exception as E: | CODE |
| LOW | tools/infer/predict_rec.py | 903 | except Exception as E: | CODE |
| LOW | tools/infer/predict_cls.py | 156 | except Exception as E: | CODE |
| LOW | ppocr/utils/network.py | 71 | except Exception as e: # requests.exceptions.ConnectionError | CODE |
| LOW | ppocr/data/latexocr_dataset.py | 147 | except Exception as E: | CODE |
| LOW | ppocr/data/simple_dataset.py | 99 | except Exception: | CODE |
| LOW | ppocr/data/simple_dataset.py | 142 | except Exception: | CODE |
| LOW | ppocr/data/simple_dataset.py | 384 | except Exception: | CODE |
| LOW | ppocr/data/pgnet_dataset.py | 95 | except Exception as e: | CODE |
| LOW | ppocr/data/imaug/ct_process.py | 97 | except Exception as e: | CODE |
| LOW | ppocr/data/imaug/random_crop_data.py | 183 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/quantize_onnx_model.py | 102 | except Exception as e: | CODE |
| LOW⚡ | deploy/ios_demo/scripts/quantize_onnx_model.py | 184 | except Exception as e: | CODE |
| LOW⚡ | deploy/ios_demo/scripts/quantize_onnx_model.py | 193 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/quantize_onnx_model.py | 205 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/quantize_onnx_model.py | 356 | except Exception: | CODE |
| LOW | deploy/ios_demo/scripts/debug_onnx_qdq.py | 161 | except Exception as e: | CODE |
| LOW⚡ | deploy/ios_demo/scripts/debug_onnx_qdq.py | 181 | except Exception as e: | CODE |
| LOW⚡ | deploy/ios_demo/scripts/debug_onnx_qdq.py | 188 | except Exception as e: | CODE |
| LOW⚡ | deploy/ios_demo/scripts/debug_onnx_qdq.py | 198 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/build_onnx_calib_npy.py | 298 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/build_onnx_calib_npy.py | 318 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/build_onnx_calib_npy.py | 331 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/build_onnx_calib_npy.py | 346 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/build_onnx_calib_npy.py | 359 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/build_onnx_calib_npy.py | 376 | except Exception as e: | CODE |
| LOW | deploy/ios_demo/scripts/build_onnx_calib_npy.py | 384 | except Exception as e: | CODE |
| LOW | deploy/hubserving/ocr_cls/module.py | 135 | except Exception as e: | CODE |
| LOW | deploy/hubserving/ocr_rec/module.py | 135 | except Exception as e: | CODE |
| LOW | deploy/paddleocr_vl_docker/hps/gateway/app.py | 153 | except Exception: | CODE |
| LOW | deploy/paddleocr_vl_docker/hps/gateway/app.py | 211 | except Exception as e: | CODE |
| LOW | deploy/paddleocr_vl_docker/hps/gateway/app.py | 290 | except Exception: | CODE |
| LOW | paddleocr/_cli.py | 203 | except Exception as e: | CODE |
| MEDIUM | paddleocr/_cli.py | 111 | def _install_genai_server_deps(args): | CODE |
| LOW | paddleocr/_api_client/_async_http.py | 179 | except Exception: | CODE |
| LOW | paddleocr/_api_client/_async_http.py | 186 | except Exception as e: | CODE |
| MEDIUM | paddleocr/_api_client/_async_http.py | 183 | def _response_data(self, resp) -> Dict[str, Any]: | CODE |
| LOW | paddleocr/_api_client/cli.py | 221 | except Exception as e: | CODE |
| MEDIUM | paddleocr/_api_client/cli.py | 222 | print(f"Error: {e}", file=sys.stderr) | CODE |
| LOW | paddleocr/_api_client/cli.py | 314 | except Exception as e: | CODE |
| MEDIUM | paddleocr/_api_client/cli.py | 315 | print(f"Error: {e}", file=sys.stderr) | CODE |
| LOW | paddleocr/_doc2md/core.py | 55 | except Exception as e: | CODE |
| LOW⚡ | paddleocr/_doc2md/converters/docx.py | 106 | except Exception: | CODE |
| LOW⚡ | paddleocr/_doc2md/converters/docx.py | 111 | except Exception: | CODE |
| LOW⚡ | paddleocr/_doc2md/converters/docx.py | 120 | except Exception: | CODE |
| LOW⚡ | paddleocr/_doc2md/converters/docx.py | 128 | except Exception: | CODE |
| LOW⚡ | paddleocr/_doc2md/converters/docx.py | 1539 | except Exception: | CODE |
| LOW⚡ | paddleocr/_doc2md/converters/docx.py | 1551 | except Exception: | CODE |
| LOW⚡ | paddleocr/_doc2md/converters/docx.py | 1561 | except Exception: | CODE |
| LOW⚡ | paddleocr/_doc2md/converters/docx.py | 1566 | except Exception: | CODE |
| 58 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | ppocr/optimizer/optimizer.py | 89 | mlm = model._layers.head.MLM_VRM.MLM.parameters() | CODE |
| CRITICAL⚡ | ppocr/optimizer/optimizer.py | 91 | model._layers.head.MLM_VRM.Prediction.pp_share.parameters() | CODE |
| CRITICAL⚡ | ppocr/optimizer/optimizer.py | 94 | model._layers.head.MLM_VRM.Prediction.w_share.parameters() | CODE |
| CRITICAL⚡ | ppocr/optimizer/optimizer.py | 98 | pre_mlm_pp = model.head.MLM_VRM.Prediction.pp_share.parameters() | CODE |
| CRITICAL⚡ | ppocr/optimizer/optimizer.py | 99 | pre_mlm_w = model.head.MLM_VRM.Prediction.w_share.parameters() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/version3.x/pipeline_usage/PP-DocTranslation.en.md | 696 | paddleocr pp_doctranslation -i vehicle_certificate-1.png --target_language en --qianfan_api_key your_api_key | CODE |
| HIGH | docs/version3.x/pipeline_usage/PP-DocTranslation.en.md | 705 | paddleocr pp_doctranslation -i vehicle_certificate-1.png --target_language en --qianfan_api_key your_api_key \ | CODE |
| HIGH | docs/version3.x/pipeline_usage/PP-DocTranslation.md | 693 | paddleocr pp_doctranslation -i vehicle_certificate-1.png --target_language en --qianfan_api_key your_api_key | CODE |
| HIGH | docs/version3.x/pipeline_usage/PP-DocTranslation.md | 702 | paddleocr pp_doctranslation -i vehicle_certificate-1.png --target_language en --qianfan_api_key your_api_key \ | CODE |
| HIGH⚡ | docs/version3.x/pipeline_usage/PP-ChatOCRv4.en.md | 985 | paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key | CODE |
| HIGH⚡ | docs/version3.x/pipeline_usage/PP-ChatOCRv4.en.md | 988 | paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key --invoke_mllm True --p | CODE |
| HIGH⚡ | docs/version3.x/pipeline_usage/PP-ChatOCRv4.en.md | 997 | paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key \ | CODE |
| HIGH⚡ | docs/version3.x/pipeline_usage/PP-ChatOCRv4.md | 874 | paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key | CODE |
| HIGH⚡ | docs/version3.x/pipeline_usage/PP-ChatOCRv4.md | 877 | paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key --invoke_mllm True --p | CODE |
| HIGH⚡ | docs/version3.x/pipeline_usage/PP-ChatOCRv4.md | 886 | paddleocr pp_chatocrv4_doc -i vehicle_certificate-1.png -k 驾驶室准乘人数 --qianfan_api_key your_api_key \ | CODE |
| HIGH | docs/version3.x/integrations/mcp_server.md | 288 | "PADDLEOCR_MCP_QIANFAN_API_KEY": "<your-api-key>" | CODE |
| HIGH | docs/version3.x/integrations/mcp_server.en.md | 287 | "PADDLEOCR_MCP_QIANFAN_API_KEY": "<your-api-key>" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/PaddleOCR_DBNet/utils/schedulers.py | 4 | __all__ = ["Polynomial"] | CODE |
| LOW | benchmark/PaddleOCR_DBNet/utils/cal_recall/__init__.py | 6 | __all__ = ["cal_recall_precision_f1"] | CODE |
| LOW | benchmark/PaddleOCR_DBNet/models/__init__.py | 8 | __all__ = ["build_loss", "build_model"] | CODE |
| LOW | benchmark/PaddleOCR_DBNet/models/losses/__init__.py | 7 | __all__ = ["build_loss"] | CODE |
| LOW | benchmark/PaddleOCR_DBNet/models/head/__init__.py | 6 | __all__ = ["build_head"] | CODE |
| LOW | benchmark/PaddleOCR_DBNet/models/neck/__init__.py | 6 | __all__ = ["build_neck"] | CODE |
| LOW | benchmark/PaddleOCR_DBNet/models/backbone/__init__.py | 7 | __all__ = ["build_backbone"] | CODE |
| LOW | benchmark/PaddleOCR_DBNet/models/backbone/resnet.py | 7 | __all__ = [ | CODE |
| LOW | ppocr/metrics/det_metric.py | 19 | __all__ = ["DetMetric", "DetFCEMetric"] | CODE |
| LOW | ppocr/metrics/vqa_token_ser_metric.py | 22 | __all__ = ["VQASerTokenMetric"] | CODE |
| LOW | ppocr/metrics/kie_metric.py | 23 | __all__ = ["KIEMetric"] | CODE |
| LOW | ppocr/metrics/__init__.py | 22 | __all__ = ["build_metric"] | CODE |
| LOW | ppocr/metrics/e2e_metric.py | 19 | __all__ = ["E2EMetric"] | CODE |
| LOW | ppocr/metrics/vqa_token_re_metric.py | 22 | __all__ = ["VQAReTokenMetric"] | CODE |
| LOW | ppocr/optimizer/__init__.py | 23 | __all__ = ["build_optimizer"] | CODE |
| LOW | ppocr/utils/save_load.py | 38 | __all__ = ["load_model"] | CODE |
| LOW | ppocr/utils/stats.py | 19 | __all__ = ["TrainingStats", "Time"] | CODE |
| LOW | ppocr/modeling/necks/fce_fpn.py | 26 | __all__ = ["FCEFPN"] | CODE |
| LOW | ppocr/modeling/necks/__init__.py | 15 | __all__ = ["build_neck"] | CODE |
| LOW | ppocr/modeling/necks/csp_pan.py | 23 | __all__ = ["CSPPAN"] | CODE |
| LOW | ppocr/modeling/architectures/distillation_model.py | 26 | __all__ = ["DistillationModel"] | CODE |
| LOW | ppocr/modeling/architectures/__init__.py | 24 | __all__ = ["build_model", "apply_to_static"] | CODE |
| LOW | ppocr/modeling/architectures/base_model.py | 24 | __all__ = ["BaseModel"] | CODE |
| LOW | ppocr/modeling/heads/__init__.py | 15 | __all__ = ["build_head"] | CODE |
| LOW | ppocr/modeling/transforms/__init__.py | 15 | __all__ = ["build_transform"] | CODE |
| LOW | ppocr/modeling/backbones/det_resnet_vd_sast.py | 24 | __all__ = ["ResNet_SAST"] | CODE |
| LOW | ppocr/modeling/backbones/rec_efficientb3_pren.py | 30 | __all__ = ["EfficientNetb3_PREN"] | CODE |
| LOW | ppocr/modeling/backbones/e2e_resnet_vd_pg.py | 24 | __all__ = ["ResNet"] | CODE |
| LOW | ppocr/modeling/backbones/vqa_layoutlm.py | 35 | __all__ = ["LayoutXLMForSer", "LayoutLMForSer"] | CODE |
| LOW | ppocr/modeling/backbones/rec_resnet_fpn.py | 24 | __all__ = ["ResNetFPN"] | CODE |
| LOW | ppocr/modeling/backbones/__init__.py | 15 | __all__ = ["build_backbone"] | CODE |
| LOW | ppocr/modeling/backbones/det_resnet_vd.py | 28 | __all__ = ["ResNet_vd", "ConvBNLayer", "DeformableConvV2"] | CODE |
| LOW | ppocr/modeling/backbones/rec_resnet_vd.py | 24 | __all__ = ["ResNet"] | CODE |
| LOW | ppocr/modeling/backbones/rec_resnet_32.py | 25 | __all__ = ["ResNet32"] | CODE |
| LOW | ppocr/modeling/backbones/rec_resnet_31.py | 30 | __all__ = ["ResNet31"] | CODE |
| LOW | ppocr/modeling/backbones/kie_unet_sdmgr.py | 24 | __all__ = ["Kie_backbone"] | CODE |
| LOW | ppocr/modeling/backbones/rec_mobilenet_v3.py | 23 | __all__ = ["MobileNetV3"] | CODE |
| LOW | ppocr/modeling/backbones/rec_resnet_45.py | 31 | __all__ = ["ResNet45"] | CODE |
| LOW | ppocr/modeling/backbones/det_mobilenet_v3.py | 25 | __all__ = ["MobileNetV3"] | CODE |
| LOW | ppocr/postprocess/__init__.py | 23 | __all__ = ["build_post_process"] | CODE |
| LOW | ppocr/data/__init__.py | 51 | __all__ = ["build_dataloader", "transform", "create_operators", "set_signal_handlers"] | CODE |
| LOW | ppocr/data/imaug/make_shrink_map.py | 29 | __all__ = ["MakeShrinkMap"] | CODE |
| LOW | ppocr/data/imaug/make_border_map.py | 35 | __all__ = ["MakeBorderMap"] | CODE |
| LOW | ppocr/data/imaug/ColorJitter.py | 16 | __all__ = ["ColorJitter"] | CODE |
| LOW | ppocr/data/imaug/east_process.py | 25 | __all__ = ["EASTProcessTrain"] | CODE |
| LOW | ppocr/data/imaug/make_pse_gt.py | 25 | __all__ = ["MakePseGt"] | CODE |
| LOW | ppocr/data/imaug/sast_process.py | 25 | __all__ = ["SASTProcessTrain"] | CODE |
| LOW | ppocr/data/imaug/pg_process.py | 23 | __all__ = ["PGProcessTrain"] | CODE |
| LOW | ppocr/data/imaug/text_image_aug/__init__.py | 17 | __all__ = ["tia_distort", "tia_stretch", "tia_perspective"] | CODE |
| LOW | ppocr/data/imaug/vqa/__init__.py | 23 | __all__ = [ | CODE |
| LOW | deploy/ios_demo/scripts/debug_onnx_qdq.py | 59 | logger = logging.getLogger(__name__) | CODE |
| LOW | deploy/ios_demo/scripts/utils.py | 28 | __all__ = [ | CODE |
| LOW | deploy/paddleocr_vl_docker/hps/gateway/app.py | 59 | logger = logging.getLogger(__name__) | CODE |
| LOW | paddleocr/__init__.py | 84 | __all__ = [ | CODE |
| LOW | paddleocr/_api_client/_naming.py | 17 | __all__ = ["snake_keys_to_camel", "snake_to_camel"] | CODE |
| LOW | paddleocr/_pipelines/_patch_layout_parsing.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | paddleocr/_pipelines/__init__.py | 26 | __all__ = [ | CODE |
| LOW | paddleocr/_models/__init__.py | 29 | __all__ = [ | CODE |
| LOW | paddleocr/_doc2md/__init__.py | 20 | __all__ = [ | CODE |
| LOW | paddleocr/_doc2md/math/omml.py | 55 | logger = logging.getLogger(__name__) | CODE |
| 7 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 164 | ### Step 1: Try Online | COMMENT |
| LOW | README.md | 169 | ### Step 2: Local Deployment | COMMENT |
| LOW⚡ | …oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift | 118 | // Step 1: Preprocess | COMMENT |
| LOW⚡ | …oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift | 123 | // Step 2: Run ORT inference | COMMENT |
| LOW⚡ | …oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift | 131 | // Step 3: Extract the probability map from ORT output | COMMENT |
| LOW | …oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift | 146 | // Step 4: Postprocess | COMMENT |
| LOW | deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift | 123 | // Step 3: Build selection mask | COMMENT |
| LOW | deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift | 144 | // Step 4: Collect selected characters and their probabilities | COMMENT |
| LOW⚡ | deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift | 158 | // Step 5: Join characters into text | COMMENT |
| LOW⚡ | deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift | 161 | // Step 6: Compute mean confidence | COMMENT |
| LOW⚡ | deploy/ios_demo/PaddleOCRDemo/Engine/BoxSorter.swift | 45 | // Step 1: Sort by top-left point -- first by y, then by x | COMMENT |
| LOW⚡ | deploy/ios_demo/PaddleOCRDemo/Engine/BoxSorter.swift | 53 | // Step 2: Backward insertion sort for same-line boxes | COMMENT |
| LOW | docs/version2.x/legacy/windows_vs2019_build.en.md | 54 | ### Step 1: Create a Visual Studio Project | COMMENT |
| LOW | docs/version2.x/legacy/windows_vs2019_build.en.md | 60 | ### Step 2: Run CMake Configuration | COMMENT |
| LOW | docs/version2.x/legacy/windows_vs2019_build.en.md | 93 | ### Step 3: Generate Visual Studio Project | COMMENT |
| LOW | docs/version2.x/legacy/windows_vs2019_build.en.md | 118 | ### Step 4: Run the Prediction | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift | 118 | // Step 1: Preprocess | COMMENT |
| LOW⚡ | …oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift | 123 | // Step 2: Run ORT inference | COMMENT |
| LOW⚡ | …oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift | 131 | // Step 3: Extract the probability map from ORT output | COMMENT |
| LOW | …oy/ios_demo/PaddleOCRDemo/Engine/DetectionEngine.swift | 146 | // Step 4: Postprocess | COMMENT |
| LOW | deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift | 123 | // Step 3: Build selection mask | COMMENT |
| LOW | deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift | 144 | // Step 4: Collect selected characters and their probabilities | COMMENT |
| LOW⚡ | deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift | 158 | // Step 5: Join characters into text | COMMENT |
| LOW⚡ | deploy/ios_demo/PaddleOCRDemo/Engine/CTCDecoder.swift | 161 | // Step 6: Compute mean confidence | COMMENT |
| LOW⚡ | deploy/ios_demo/PaddleOCRDemo/Engine/BoxSorter.swift | 45 | // Step 1: Sort by top-left point -- first by y, then by x | COMMENT |
| LOW⚡ | deploy/ios_demo/PaddleOCRDemo/Engine/BoxSorter.swift | 53 | // Step 2: Backward insertion sort for same-line boxes | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ppocr/modeling/backbones/rec_pphgnetv2.py | 569 | use 'handle_func' to modify the sub-layer(s) specified by 'layer_name_pattern'. Args: layer_name_pa | STRING |
| HIGH | paddleocr/_doc2md/core.py | 30 | Convert an office document to Markdown. Args: source: Path to the source file. output: Optiona | STRING |
| HIGH | ppstructure/recovery/table_process.py | 72 | Remove white space from a string. Args: string(str): The string to remove white space from. leading( | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | ppocr/modeling/architectures/base_model.py | 40 | # if you make model differently, you can use transform in det and cls | COMMENT |
| LOW | ppocr/data/imaug/ct_process.py | 226 | # make sure to crop the text region | COMMENT |
| LOW | ppocr/data/imaug/random_crop_data.py | 543 | # make sure to crop the text region | COMMENT |
| MEDIUM | …/rec/ch_PP-OCRv2/ch_PP-OCRv2_rec_enhanced_ctc_loss.yml | 66 | # you can also try to add ace loss on your own dataset | COMMENT |
| MEDIUM | configs/kie/vi_layoutxlm/ser_vi_layoutxlm_xfund_zh.yml | 17 | # you can use the following config | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | ppocr/modeling/heads/rec_aster_head.py | 238 | # Initialize return variables given different types | COMMENT |
| MEDIUM | tests/ppocr/test_iaa_augment.py | 38 | # Create a 100x100 pixel dummy image with 3 color channels (RGB) | COMMENT |
| MEDIUM | langchain-paddleocr/scripts/lint_imports.sh | 5 | # Initialize a variable to keep track of errors | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | ppocr/modeling/heads/rec_ppformulanet_head.py | 976 | # 1. Check whether the user has defined `decoder_input_ids` manually. To facilitate in terms of input naming, | COMMENT |
| MEDIUM | ppocr/postprocess/rec_postprocess.py | 118 | ): # grouping word with '-', such as 'state-of-the-art' | CODE |
| MEDIUM | ppocr/data/imaug/abinet_aug.py | 253 | # TODO: more robust way to crop image | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ppocr/data/imaug/random_crop_data.py | 380 | # Check if this is a valid text box | COMMENT |
| LOW | deploy/paddleocr_vl_docker/hps/gateway/app.py | 178 | # Check if required models are ready | COMMENT |
| LOW | paddleocr/_pipelines/pp_chatocrv4_doc.py | 743 | # Print the result to stdout | COMMENT |
| LOW⚡ | paddleocr/_doc2md/converters/docx.py | 1548 | # Check if the document uses different odd/even page headers/footers | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/PaddleOCR_DBNet/test_tipc/benchmark_train.sh | 5 | # Usage: | COMMENT |
| LOW | deploy/ios_demo/scripts/convert_onnx_to_ort.sh | 15 | # Usage: | COMMENT |
| LOW | test_tipc/compare_results.py | 112 | # Usage: | COMMENT |
| LOW | test_tipc/benchmark_train.sh | 5 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 242 | | [Dify](https://github.com/langgenius/dify) <a href="https://github.com/langgenius/dify"><img src="https://img.shields. | CODE |
| MEDIUM | deploy/paddleocr_vl_docker/hps/README_en.md | 91 | This solution reuses the PaddleX [High-Stability Serving](https://paddlepaddle.github.io/PaddleX/latest/en/pipeline_depl | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | paddleocr/_pipelines/pp_chatocrv4_doc.py | 715 | "api_key": "fake_key", | CODE |