A collection of pre-trained, state-of-the-art models in the ONNX format
This report summarizes scanner evidence for onnx/models, a Jupyter Notebook project with 9,847 GitHub stars. SynthScan examined 484,280 lines of code across 2280 source files, recording 114 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 0.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 55 finding(s).
Are imports declared and package/API names verified? 34 finding(s).
Are wrappers, guards, and repeated structures necessary? 39 finding(s).
Which changes need focused human review? 114 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 114 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ated/vision/body_analysis/age_gender/levi_googlenet.py | 11 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ated/vision/body_analysis/age_gender/levi_googlenet.py | 52 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ated/vision/body_analysis/age_gender/levi_googlenet.py | 78 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ated/vision/body_analysis/age_gender/levi_googlenet.py | 105 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ated/vision/body_analysis/age_gender/levi_googlenet.py | 129 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | validated/vision/body_analysis/age_gender/rothe_vgg.py | 11 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | validated/vision/body_analysis/age_gender/rothe_vgg.py | 52 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | validated/vision/body_analysis/age_gender/rothe_vgg.py | 78 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | validated/vision/body_analysis/age_gender/rothe_vgg.py | 104 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | validated/vision/body_analysis/ultraface/demo.py | 9 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | validated/vision/body_analysis/ultraface/demo.py | 51 | # ---------------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 13 | #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 15 | #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 55 | #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 57 | #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 105 | #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 107 | #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 126 | #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 128 | #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 132 | # ---------------------- | COMMENT |
| MEDIUM | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 156 | #-------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 158 | #-------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | validated/vision/classification/imagenet_preprocess.py | 5 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 28 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 29 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 30 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 32 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 33 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 34 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 36 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 38 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 40 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 41 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 47 | CODE | |
| LOW | …d/vision/body_analysis/arcface/dependencies/fresnet.py | 28 | CODE | |
| LOW | …d/vision/body_analysis/arcface/dependencies/fresnet.py | 29 | CODE | |
| LOW | …d/vision/body_analysis/arcface/dependencies/fresnet.py | 30 | CODE | |
| LOW | …d/vision/body_analysis/arcface/dependencies/fresnet.py | 32 | CODE | |
| LOW | …d/vision/body_analysis/arcface/dependencies/fresnet.py | 34 | CODE | |
| LOW | …n/body_analysis/arcface/dependencies/mtcnn_detector.py | 9 | CODE | |
| LOW | …n/body_analysis/arcface/dependencies/mtcnn_detector.py | 11 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 3 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 4 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 5 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 10 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 12 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 13 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 14 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 16 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 22 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 23 | CODE | |
| LOW | …ion_segmentation/duc/dependencies/cityscapes_loader.py | 14 | CODE | |
| LOW | …_comprehension/bert-squad/dependencies/tokenization.py | 19 | CODE | |
| LOW | …_comprehension/bert-squad/dependencies/tokenization.py | 20 | CODE | |
| LOW | …_comprehension/bert-squad/dependencies/tokenization.py | 21 | CODE | |
| LOW | …omprehension/bert-squad/dependencies/run_onnx_squad.py | 35 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | validated/workflow_scripts/test_models.py | 16 | CODE | |
| LOW | validated/workflow_scripts/test_models.py | 45 | CODE | |
| LOW | validated/workflow_scripts/ort_test_dir_utils.py | 30 | CODE | |
| LOW | validated/workflow_scripts/ort_test_dir_utils.py | 76 | CODE | |
| LOW | validated/workflow_scripts/ort_test_dir_utils.py | 193 | CODE | |
| LOW | validated/workflow_scripts/ort_test_dir_utils.py | 119 | CODE | |
| LOW | …ion/body_analysis/arcface/dependencies/symbol_utils.py | 15 | CODE | |
| LOW | …d/vision/body_analysis/arcface/dependencies/fresnet.py | 462 | CODE | |
| LOW | …d/vision/body_analysis/arcface/dependencies/fresnet.py | 540 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/face_image.py | 97 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/face_image.py | 143 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 99 | CODE | |
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 165 | CODE | |
| LOW | …ion_segmentation/duc/dependencies/cityscapes_loader.py | 115 | CODE | |
| LOW | …_comprehension/bert-squad/dependencies/tokenization.py | 80 | CODE | |
| LOW | …_comprehension/bert-squad/dependencies/tokenization.py | 100 | CODE | |
| LOW | …_comprehension/bert-squad/dependencies/tokenization.py | 310 | CODE | |
| LOW | …omprehension/bert-squad/dependencies/run_onnx_squad.py | 214 | CODE | |
| LOW | …omprehension/bert-squad/dependencies/run_onnx_squad.py | 259 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ion/body_analysis/arcface/dependencies/verification.py | 1 | # SPDX-License-Identifier: MIT | COMMENT |
| LOW | …d/vision/body_analysis/arcface/dependencies/fresnet.py | 1 | # SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 21 | # We use them to uniquely name a class | COMMENT |
| LOW | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 121 | if category in category2labels: | COMMENT |
| LOW | …sfer/fast_neural_style/dependencies/transformer_net.py | 1 | # SPDX-License-Identifier: BSD-3-Clause | COMMENT |
| LOW | …sfer/fast_neural_style/dependencies/transformer_net.py | 21 | COMMENT | |
| LOW | …_comprehension/bert-squad/dependencies/tokenization.py | 1 | # SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | …omprehension/bert-squad/dependencies/run_onnx_squad.py | 1 | # SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | …omprehension/bert-squad/dependencies/run_onnx_squad.py | 81 | s.append("end_position: %d" % (self.end_position)) | COMMENT |
| LOW | …omprehension/bert-squad/dependencies/run_onnx_squad.py | 401 | # For example, let's say: | COMMENT |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | validated/workflow_scripts/onnx_test_data_utils.py | 23 | def read_sequenceproto_pb_file(filename): | CODE |
| LOW | validated/workflow_scripts/test_utils.py | 62 | def remove_onnxruntime_test_dir(): | CODE |
| LOW | validated/workflow_scripts/ort_test_dir_utils.py | 30 | def _create_missing_input_data(model_inputs, name_input_map, symbolic_dim_values_map, initializer_set): | CODE |
| LOW | …ed/vision/body_analysis/arcface/dependencies/helper.py | 169 | def detect_first_stage_warpper( args ): | CODE |
| LOW | …n/body_analysis/arcface/dependencies/mtcnn_detector.py | 529 | def find_tfrom_between_shapes(self, from_shape, to_shape): | CODE |
| LOW | …ext/machine_comprehension/t5/dependencies/T5-export.py | 25 | def turn_model_into_encoder_decoder(model): | CODE |
| LOW | …ext/machine_comprehension/t5/dependencies/T5-export.py | 36 | def generate_onnx_representation(pretrained_version=None, output_prefix=None, model=None): | CODE |
| LOW | …_comprehension/bert-squad/dependencies/tokenization.py | 30 | def validate_case_matches_checkpoint(do_lower_case, init_checkpoint): | CODE |
| LOW | …omprehension/bert-squad/dependencies/run_onnx_squad.py | 122 | def convert_examples_to_features(examples, tokenizer, max_seq_length, doc_stride, max_query_length): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | validated/workflow_scripts/onnx_test_data_utils.py | 3 | # This file is cloned from microsoft/onnxruntime/tools/python | COMMENT |
| MEDIUM | validated/workflow_scripts/ort_test_dir_utils.py | 3 | # This file is cloned from microsoft/onnxruntime/tools/python and updated L57 by adding default dim value 1 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …n/body_analysis/arcface/dependencies/mtcnn_detector.py | 14 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ision/body_analysis/arcface/dependencies/image_iter.py | 30 | CODE | |
| LOW | …egmentation/retinanet/dependencies/retinanet-export.py | 120 | CODE | |
| LOW | …sfer/fast_neural_style/dependencies/transformer_net.py | 89 | CODE | |
| LOW | …sfer/fast_neural_style/dependencies/transformer_net.py | 111 | CODE | |
| LOW | …sfer/fast_neural_style/dependencies/transformer_net.py | 134 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 30 | 'trainId' , # Feel free to modify these IDs as suitable for your method. Then create | CODE |
| LOW | …ion_segmentation/duc/dependencies/cityscapes_labels.py | 32 | # 'preparation' folder. However, make sure to validate or submit results | COMMENT |
| LOW | …d/text/machine_comprehension/t5/dependencies/models.py | 114 | prompt: str to run (don't forget to add at the beginning the task to run such as "summarize:" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | validated/workflow_scripts/test_models.py | 74 | # Step 1: check the ONNX model and test_data_set from .tar.gz by ORT | COMMENT |
| LOW | validated/workflow_scripts/test_models.py | 97 | # Step 2: check the ONNX model inside .tar.gz by ONNX | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | validated/workflow_scripts/test_models.py | 74 | # Step 1: check the ONNX model and test_data_set from .tar.gz by ORT | COMMENT |
| LOW | validated/workflow_scripts/test_models.py | 97 | # Step 2: check the ONNX model inside .tar.gz by ONNX | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …omprehension/bert-squad/dependencies/run_onnx_squad.py | 358 | # just create a nonce prediction in this case to avoid failure. | COMMENT |
| LOW | …omprehension/bert-squad/dependencies/run_onnx_squad.py | 416 | # can fail in certain cases in which case we just return `orig_text`. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | validated/workflow_scripts/test_models.py | 86 | except Exception as e: | CODE |
| LOW | validated/workflow_scripts/test_models.py | 108 | except Exception as e: | CODE |