Repository Analysis

deepinsight/insightface

State-of-the-art 2D and 3D Face Analysis Project

17.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of deepinsight/insightface, a Python project with 29,389 GitHub stars. SynthScan v2.0 examined 345,966 lines of code across 1654 source files, recording 4296 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 17.2 places this repository in the Moderate 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).

17.2
Adjusted Score
17.2
Raw Score
100%
Time Factor
2026-07-27
Last Push
29.4K
Stars
Python
Language
346.0K
Lines of Code
1.7K
Files
4.3K
Pattern Hits
2026-08-02
Scan Date
0.13
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 2HIGH 214MEDIUM 324LOW 3756

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 4296 distinct pattern matches across 23 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.

Unused Imports1784 hits · 1687 pts
SeverityFileLineSnippetContext
LOWtools/onnx2caffe/convertCaffe.py5CODE
LOWtools/onnx2caffe/convertCaffe.py14CODE
LOWtools/onnx2caffe/convertCaffe.py16CODE
LOWtools/onnx2caffe/MyCaffe.py1CODE
LOWtools/onnx2caffe/MyCaffe.py1CODE
LOWtools/onnx2caffe/MyCaffe.py4CODE
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py1CODE
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py2CODE
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py3CODE
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py5CODE
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py5CODE
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py5CODE
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py5CODE
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py1CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py2CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py3CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py4CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py7CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py7CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py7CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py7CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py7CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py9CODE
LOWtools/onnx2caffe/onnx2caffe/_operators.py1CODE
LOWtools/onnx2caffe/onnx2caffe/_operators.py2CODE
LOWtools/onnx2caffe/onnx2caffe/_operators.py3CODE
LOWtools/onnx2caffe/onnx2caffe/_operators.py4CODE
LOWtools/onnx2caffe/onnx2caffe/_operators.py7CODE
LOWtools/onnx2caffe/onnx2caffe/_operators.py8CODE
LOWtools/onnx2caffe/onnx2caffe/_operators.py8CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py1CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py2CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py3CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py4CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py6CODE
LOWtools/onnx2caffe/onnx2caffe/_weightloader.py1CODE
LOWtools/onnx2caffe/onnx2caffe/_weightloader.py2CODE
LOWtools/onnx2caffe/onnx2caffe/_weightloader.py3CODE
LOWtools/onnx2caffe/onnx2caffe/_weightloader.py4CODE
LOWtools/onnx2caffe/onnx2caffe/_weightloader.py7CODE
LOWtools/onnx2caffe/onnx2caffe/_weightloader.py7CODE
LOWattribute/gender_age/test.py2CODE
LOWattribute/gender_age/test.py3CODE
LOWattribute/gender_age/test.py4CODE
LOWattribute/gender_age/test.py5CODE
LOWweb-demos/src_recognition/scrfd.py2CODE
LOWweb-demos/src_recognition/scrfd.py3CODE
LOWweb-demos/src_recognition/scrfd.py7CODE
LOWweb-demos/src_recognition/scrfd.py10CODE
LOWweb-demos/src_recognition/main.py7CODE
1724 more matches not shown…
Cross-File Repetition199 hits · 995 pts
SeverityFileLineSnippetContext
HIGHweb-demos/src_recognition/scrfd.py0decode distance prediction to bounding box. args: points (tensor): shape (n, 2), [x, y]. distance (tensor): distance froSTRING
HIGHpython-package/insightface/model_zoo/retinaface.py0decode distance prediction to bounding box. args: points (tensor): shape (n, 2), [x, y]. distance (tensor): distance froSTRING
HIGHpython-package/insightface/model_zoo/scrfd.py0decode distance prediction to bounding box. args: points (tensor): shape (n, 2), [x, y]. distance (tensor): distance froSTRING
HIGHdetection/scrfd/tools/scrfd.py0decode distance prediction to bounding box. args: points (tensor): shape (n, 2), [x, y]. distance (tensor): distance froSTRING
HIGHdetection/scrfd/mmdet/core/bbox/transforms.py0decode distance prediction to bounding box. args: points (tensor): shape (n, 2), [x, y]. distance (tensor): distance froSTRING
HIGHpython-package/insightface/utils/transform.py0using least-squares solution args: x: [n, 3]. 3d points(fixed) y: [n, 3]. corresponding 3d points(moving). y = px returnSTRING
HIGH…ackage/insightface/thirdparty/face3d/mesh/transform.py0using least-squares solution args: x: [n, 3]. 3d points(fixed) y: [n, 3]. corresponding 3d points(moving). y = px returnSTRING
HIGH…/insightface/thirdparty/face3d/mesh_numpy/transform.py0using least-squares solution args: x: [n, 3]. 3d points(fixed) y: [n, 3]. corresponding 3d points(moving). y = px returnSTRING
HIGHpython-package/insightface/utils/transform.py0decompositing camera matrix p args: p: (3, 4). affine camera matrix. returns: s: scale factor. r: (3, 3). rotation matriSTRING
HIGH…ackage/insightface/thirdparty/face3d/mesh/transform.py0decompositing camera matrix p args: p: (3, 4). affine camera matrix. returns: s: scale factor. r: (3, 3). rotation matriSTRING
HIGH…/insightface/thirdparty/face3d/mesh_numpy/transform.py0decompositing camera matrix p args: p: (3, 4). affine camera matrix. returns: s: scale factor. r: (3, 3). rotation matriSTRING
HIGHreconstruction/ostec/utils/ganfit_camera.py0decompositing camera matrix p args: p: (3, 4). affine camera matrix. returns: s: scale factor. r: (3, 3). rotation matriSTRING
HIGHpython-package/insightface/utils/transform.py0get three euler angles from rotation matrix args: r: (3,3). rotation matrix returns: x: pitch y: yaw z: rollSTRING
HIGH…ackage/insightface/thirdparty/face3d/mesh/transform.py0get three euler angles from rotation matrix args: r: (3,3). rotation matrix returns: x: pitch y: yaw z: rollSTRING
HIGH…/insightface/thirdparty/face3d/mesh_numpy/transform.py0get three euler angles from rotation matrix args: r: (3,3). rotation matrix returns: x: pitch y: yaw z: rollSTRING
HIGHreconstruction/ostec/utils/ganfit_camera.py0get three euler angles from rotation matrix args: r: (3,3). rotation matrix returns: x: pitch y: yaw z: rollSTRING
HIGH…ackage/insightface/thirdparty/face3d/mesh/transform.py0checks if a matrix is a valid rotation matrix(whether orthogonal or not)STRING
HIGH…/insightface/thirdparty/face3d/mesh_numpy/transform.py0checks if a matrix is a valid rotation matrix(whether orthogonal or not)STRING
HIGHreconstruction/ostec/utils/ganfit_camera.py0checks if a matrix is a valid rotation matrix(whether orthogonal or not)STRING
HIGHrecognition/arcface_mxnet/verification.py0helper for evaluation on the labeled faces in the wild datasetSTRING
HIGHrecognition/arcface_mxnet/common/verification.py0helper for evaluation on the labeled faces in the wild datasetSTRING
HIGHrecognition/partial_fc/mxnet/evaluation/verification.py0helper for evaluation on the labeled faces in the wild datasetSTRING
HIGHrecognition/partial_fc/mxnet/evaluation/lfw.py0helper for evaluation on the labeled faces in the wild datasetSTRING
HIGHrecognition/arcface_torch/eval/verification.py0helper for evaluation on the labeled faces in the wild datasetSTRING
HIGHrecognition/arcface_oneflow/eval/verification.py0helper for evaluation on the labeled faces in the wild datasetSTRING
HIGHrecognition/subcenter_arcface/common/verification.py0helper for evaluation on the labeled faces in the wild datasetSTRING
HIGHrecognition/vpl/eval/verification.py0helper for evaluation on the labeled faces in the wild datasetSTRING
HIGHrecognition/arcface_mxnet/parall_module_local_v1.py0a convenient function that calls both ``forward`` and ``backward``.STRING
HIGHrecognition/partial_fc/mxnet/memory_module.py0a convenient function that calls both ``forward`` and ``backward``.STRING
HIGHrecognition/subcenter_arcface/parall_module_local_v1.py0a convenient function that calls both ``forward`` and ``backward``.STRING
HIGHrecognition/arcface_mxnet/image_iter.py0decodes a string or byte string to an ndarray. see mx.img.imdecode for more details.STRING
HIGHrecognition/arcface_mxnet/triplet_image_iter.py0decodes a string or byte string to an ndarray. see mx.img.imdecode for more details.STRING
HIGHrecognition/partial_fc/mxnet/image_iter.py0decodes a string or byte string to an ndarray. see mx.img.imdecode for more details.STRING
HIGHrecognition/subcenter_arcface/image_iter.py0decodes a string or byte string to an ndarray. see mx.img.imdecode for more details.STRING
HIGHrecognition/arcface_mxnet/image_iter.py0reads an input image `fname` and returns the decoded raw bytes. example usage: ---------- >>> dataiter.read_image('face.STRING
HIGHrecognition/arcface_mxnet/triplet_image_iter.py0reads an input image `fname` and returns the decoded raw bytes. example usage: ---------- >>> dataiter.read_image('face.STRING
HIGHrecognition/partial_fc/mxnet/image_iter.py0reads an input image `fname` and returns the decoded raw bytes. example usage: ---------- >>> dataiter.read_image('face.STRING
HIGHrecognition/subcenter_arcface/image_iter.py0reads an input image `fname` and returns the decoded raw bytes. example usage: ---------- >>> dataiter.read_image('face.STRING
HIGHrecognition/arcface_mxnet/image_iter.py0final postprocessing step before image is loaded into the batch.STRING
HIGHrecognition/arcface_mxnet/triplet_image_iter.py0final postprocessing step before image is loaded into the batch.STRING
HIGHrecognition/partial_fc/mxnet/image_iter.py0final postprocessing step before image is loaded into the batch.STRING
HIGHrecognition/subcenter_arcface/image_iter.py0final postprocessing step before image is loaded into the batch.STRING
HIGHrecognition/arcface_mxnet/symbol/memonger.py0memory allocation planner with a given threshold. the user can pass in a network configuration, a threshold that limits STRING
HIGHrecognition/arcface_mxnet/symbol/memonger_v2.py0memory allocation planner with a given threshold. the user can pass in a network configuration, a threshold that limits STRING
HIGHrecognition/partial_fc/mxnet/symbol/memonger.py0memory allocation planner with a given threshold. the user can pass in a network configuration, a threshold that limits STRING
HIGHrecognition/subcenter_arcface/symbol/memonger.py0memory allocation planner with a given threshold. the user can pass in a network configuration, a threshold that limits STRING
HIGHrecognition/subcenter_arcface/symbol/memonger_v2.py0memory allocation planner with a given threshold. the user can pass in a network configuration, a threshold that limits STRING
HIGHrecognition/arcface_mxnet/symbol/memonger.py0get the cost of the current symbolic plan by running bind on cpu. sym : symbolic variableSTRING
HIGHrecognition/arcface_mxnet/symbol/memonger_v2.py0get the cost of the current symbolic plan by running bind on cpu. sym : symbolic variableSTRING
HIGHrecognition/partial_fc/mxnet/symbol/memonger.py0get the cost of the current symbolic plan by running bind on cpu. sym : symbolic variableSTRING
HIGHrecognition/subcenter_arcface/symbol/memonger.py0get the cost of the current symbolic plan by running bind on cpu. sym : symbolic variableSTRING
HIGHrecognition/subcenter_arcface/symbol/memonger_v2.py0get the cost of the current symbolic plan by running bind on cpu. sym : symbolic variableSTRING
HIGHrecognition/arcface_mxnet/symbol/memonger.py0quickly heurestic search over possible plans to find good memory plan. parameters ---------- sym : symbolic symbolic conSTRING
HIGHrecognition/arcface_mxnet/symbol/memonger_v2.py0quickly heurestic search over possible plans to find good memory plan. parameters ---------- sym : symbolic symbolic conSTRING
HIGHrecognition/partial_fc/mxnet/symbol/memonger.py0quickly heurestic search over possible plans to find good memory plan. parameters ---------- sym : symbolic symbolic conSTRING
HIGHrecognition/subcenter_arcface/symbol/memonger.py0quickly heurestic search over possible plans to find good memory plan. parameters ---------- sym : symbolic symbolic conSTRING
HIGHrecognition/subcenter_arcface/symbol/memonger_v2.py0quickly heurestic search over possible plans to find good memory plan. parameters ---------- sym : symbolic symbolic conSTRING
HIGHrecognition/arcface_mxnet/symbol/symbol_utils.py0return resnext unit symbol for building resnext parameters ---------- data : str input data num_filter : int number of oSTRING
HIGHrecognition/arcface_mxnet/symbol/fresnet.py0return resnext unit symbol for building resnext parameters ---------- data : str input data num_filter : int number of oSTRING
HIGHrecognition/partial_fc/mxnet/symbol/symbol_utils.py0return resnext unit symbol for building resnext parameters ---------- data : str input data num_filter : int number of oSTRING
139 more matches not shown…
Decorative Section Separators243 hits · 801 pts
SeverityFileLineSnippetContext
MEDIUM…/inspireface/python/inspireface/modules/core/native.py529# ----------------------------------------------------------------------------COMMENT
MEDIUM…/inspireface/python/inspireface/modules/core/native.py561# ----------------------------------------------------------------------------COMMENT
MEDIUMalignment/synthetics/trainer_synthetics.py78 # ------------COMMENT
MEDIUMalignment/synthetics/trainer_synthetics.py80 # ------------COMMENT
MEDIUMalignment/synthetics/trainer_synthetics.py98 # ------------COMMENT
MEDIUMalignment/synthetics/trainer_synthetics.py100 # ------------COMMENT
MEDIUMalignment/synthetics/trainer_synthetics.py107 # ------------COMMENT
MEDIUMalignment/synthetics/trainer_synthetics.py109 # ------------COMMENT
MEDIUMalignment/synthetics/trainer_synthetics.py115 # ------------COMMENT
MEDIUMalignment/synthetics/trainer_synthetics.py117 # ------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py24#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py30#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py103#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py110#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py128#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py190#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py216#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py243#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py286#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py310#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py327#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py354#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py376#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py403#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py436#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py481#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py500#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py528#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py543#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py639#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/dataset_tool.py644#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/run_metrics.py18#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/run_metrics.py29#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/run_metrics.py41#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/run_metrics.py81#----------------------------------------------------------------------------STRING
MEDIUMreconstruction/ostec/external/stylegan2/run_metrics.py86#----------------------------------------------------------------------------STRING
MEDIUM…uction/ostec/external/stylegan2/pretrained_networks.py13#----------------------------------------------------------------------------COMMENT
MEDIUM…uction/ostec/external/stylegan2/pretrained_networks.py55#----------------------------------------------------------------------------COMMENT
MEDIUM…uction/ostec/external/stylegan2/pretrained_networks.py60#----------------------------------------------------------------------------COMMENT
MEDIUM…uction/ostec/external/stylegan2/pretrained_networks.py80#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/projector.py14#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/projector.py206#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_generator.py17#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_generator.py38#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_generator.py91#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_generator.py103#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_generator.py120#----------------------------------------------------------------------------STRING
MEDIUM…construction/ostec/external/stylegan2/run_generator.py168#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_generator.py173#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_projector.py19#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_projector.py32#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_projector.py53#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_projector.py71#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_projector.py83#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_projector.py95#----------------------------------------------------------------------------STRING
MEDIUM…construction/ostec/external/stylegan2/run_projector.py143#----------------------------------------------------------------------------COMMENT
MEDIUM…construction/ostec/external/stylegan2/run_projector.py148#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/run_training.py17#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/run_training.py34#----------------------------------------------------------------------------COMMENT
MEDIUMreconstruction/ostec/external/stylegan2/run_training.py122#----------------------------------------------------------------------------COMMENT
183 more matches not shown…
Hyper-Verbose Identifiers509 hits · 531 pts
SeverityFileLineSnippetContext
LOWtools/onnx2caffe/onnx2caffe/_error_utils.py40 def unsupported_op_configuration(self,CODE
LOW…ge/inspireface/tools/generate_error_tabel_to_python.py6def calculate_error_code_value(error_code_str, error_definitions):CODE
LOW…ge/inspireface/tools/generate_error_tabel_to_python.py19def parse_and_calculate_error_codes(header_content):CODE
LOWcpp-package/inspireface/tools/output_error_table.py5def calculate_error_code_value(error_code_str, error_definitions):CODE
LOWcpp-package/inspireface/tools/output_error_table.py18def parse_and_calculate_error_codes(header_content):CODE
LOW…age/inspireface/python/sample_face_track_from_video.py40def case_face_tracker_from_video(source, show, out):CODE
LOW…nspireface/python/sample_system_resource_statistics.py7def case_show_system_resource_statistics(resource_path):CODE
LOWcpp-package/inspireface/python/setup.py96def get_target_platform_for_envs():CODE
LOWcpp-package/inspireface/python/sample_face_detection.py17def case_face_detection_image(image_path, show):CODE
LOWcpp-package/inspireface/python/test/test_utilis.py95def read_binary_file_to_ndarray(file_path, width, height):CODE
LOW…ge/inspireface/python/test/unit/test_tracker_module.py19 def test_face_detection_from_image(self):CODE
LOW…ge/inspireface/python/test/unit/test_tracker_module.py107 def test_benchmark_face_detect(self):CODE
LOW…ge/inspireface/python/test/unit/test_tracker_module.py113 def test_benchmark_face_track(self):CODE
LOW…ge/inspireface/python/test/unit/test_tracker_module.py119 def test_benchmark_face_track_video(self):CODE
LOW…nspireface/python/test/unit/test_recognition_module.py20 def test_face_feature_extraction(self):CODE
LOW…nspireface/python/test/unit/test_recognition_module.py207 def test_benchmark_feature_extract(self):CODE
LOW…ge/inspireface/python/inspireface/modules/exception.py216def validate_session_initialized(session, operation: str = "Session operation"):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py463 def set_filter_minimum_face_pixel_size(self, min_size=32):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py469 def set_track_mode_smooth_ratio(self, ratio=0.025):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py475 def set_track_mode_num_smooth_cache_frame(self, num=15):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py481 def set_track_model_detect_interval(self, num=20):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py487 def set_landmark_augmentation_num(self, num=1):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py493 def set_track_lost_recovery_mode(self, value=False):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1287def show_system_resource_statistics():CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1293def switch_apple_coreml_inference_mode(mode: int):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1303def set_expansive_hardware_rockchip_dma_heap_path(path: str):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1310def query_expansive_hardware_rockchip_dma_heap_path() -> str:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py22def ignore_check_latest_model(ignore: bool):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py435 def set_enable_track_cost_spend(self, enable: bool):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py441 def set_detection_confidence_threshold(self, threshold: float):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py572 def _get_processing_function_and_param(exec_param):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py594 def _update_face_interact_confidence(self, exec_param, flag, extends):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py619 def _update_face_emotion_confidence(self, exec_param, flag, extends):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py631 def _update_rgb_liveness_confidence(self, exec_param, flag, extends: List[FaceExtended]):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py643 def _update_face_attribute_confidence(self, exec_param, flag, extends: List[FaceExtended]):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py657 def _update_face_quality_confidence(self, exec_param, flag, extends: List[FaceExtended]):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py669 def _get_faces_boundary_boxes(self) -> List:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py716def _check_modelscope_availability():CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py857def switch_image_processing_backend(backend: int):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py863def set_image_process_aligned_width(width: int):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1022def feature_hub_set_search_threshold(threshold: float):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1088def feature_hub_face_search_top_k(data: np.ndarray, top_k: int) -> List[Tuple]:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1152def feature_hub_get_face_identity(custom_id: int):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1172def feature_hub_get_face_count() -> int:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1189def feature_hub_get_face_id_list() -> List[int]:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1213def get_recommended_cosine_threshold() -> float:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1221def get_similarity_converter_config() -> dict:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1238def set_similarity_converter_config(cfg: dict):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1250def cosine_similarity_convert_to_percentage(similarity: float) -> float:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1351def check_cuda_device_support() -> bool:CODE
LOW…spireface/python/inspireface/modules/utils/resource.py108 def _download_from_modelscope(self, model_name: str) -> str:CODE
LOW…spireface/python/inspireface/modules/utils/resource.py223 def _download_from_modelscope_with_cache(self, name: str, re_download: bool = False) -> str:CODE
LOWpython-package/tests/gui/test_gui_smoke.py251def test_album_clustering_does_not_match_people_library(tmp_path):CODE
LOWpython-package/tests/gui/test_navigation.py7def test_navigation_modes_do_not_include_global_sidebar_items():CODE
LOWpython-package/tests/gui/test_navigation.py19def test_face_verification_mode_is_focused():CODE
LOWpython-package/tests/gui/test_navigation.py28def test_face_swap_mode_is_single_workspace():CODE
LOWpython-package/tests/gui/test_navigation.py36def test_album_mode_is_single_workspace():CODE
LOWpython-package/tests/gui/test_navigation.py44def test_enterprise_mode_is_single_evaluation_workspace():CODE
LOWpython-package/tests/gui/test_navigation.py65def test_default_detection_size_is_auto(tmp_path):CODE
LOWpython-package/tests/gui/test_navigation.py88def test_qt_plugin_paths_are_configured(monkeypatch):CODE
449 more matches not shown…
Over-Commented Block562 hits · 452 pts
SeverityFileLineSnippetContext
LOWtools/onnx2caffe/onnx2caffe/_operators.py201 graph.channel_dims[output_name] = shape[1]COMMENT
LOWtools/onnx2caffe/onnx2caffe/_operators.py441 stride_h=strides[0],stride_w = strides[1],COMMENT
LOW…/inspireface/python/inspireface/modules/core/native.py521_libs = {}COMMENT
LOW…/inspireface/python/inspireface/modules/core/native.py541# notice, this list of conditions and the following disclaimer inCOMMENT
LOW…-package/inspireface/cpp/test/settings/test_settings.h1/**COMMENT
LOW…-package/inspireface/cpp/test/settings/test_settings.h21COMMENT
LOW…-package/inspireface/cpp/test/settings/test_settings.h41COMMENT
LOW…p-package/inspireface/cpp/test/unit/test_helper/help.h1#include "test_tools.h"COMMENT
LOW…kage/inspireface/cpp/test/unit/test_helper/test_help.h1/**COMMENT
LOWcpp-package/inspireface/cpp/inspireface/cost_time.h1#ifndef COST_TIME_HPPCOMMENT
LOW…package/inspireface/cpp/inspireface/middleware/utils.h1COMMENT
LOW…ckage/inspireface/cpp/inspireface/middleware/timer.cpp1#include "spend_timer.h"COMMENT
LOW…spireface/cpp/inspireface/middleware/any_net_adapter.h1/**COMMENT
LOW…ackage/inspireface/cpp/inspireface/middleware/system.h1#ifndef INSPIRE_FACE_SYSTEM_HCOMMENT
LOW…middleware/inference_wrapper/inference_wrapper_mnn.cpp1#include <cstdint>COMMENT
LOW…e/inference_wrapper/inference_wrapper_rknn_adapter.cpp1/**COMMENT
LOW…iddleware/inference_wrapper/inference_wrapper_coreml.h1#ifndef INFERENCE_WRAPPER_COREML_COMMENT
LOW…dleware/inference_wrapper/inference_wrapper_tensorrt.h1#ifndef INFERENCE_WRAPPER_COREML_COMMENT
LOW…ace/middleware/inference_wrapper/inference_wrapper.cpp1#include <cstdint>COMMENT
LOW…ace/middleware/inference_wrapper/inference_wrapper.cpp21#include "inference_wrapper_rknn_adapter_nano.h"COMMENT
LOW…/middleware/inference_wrapper/inference_wrapper_rknn.h1/**COMMENT
LOW…are/inference_wrapper/inference_wrapper_rknn_adapter.h1/**COMMENT
LOW…e/middleware/inference_wrapper/inference_wrapper_mnn.h1#ifndef INFERENCE_WRAPPER_MNN_COMMENT
LOW…nference_wrapper/inference_wrapper_rknn_adapter_nano.h1/**COMMENT
LOW…eware/inference_wrapper/inference_wrapper_tensorrt.cpp1#if INFERENCE_WRAPPER_ENABLE_TENSORRTCOMMENT
LOW…erence_wrapper/inference_wrapper_rknn_adapter_nano.cpp1/**COMMENT
LOW…iddleware/inference_wrapper/inference_wrapper_rknn.cpp1/**COMMENT
LOW…e/middleware/inference_wrapper/inference_wrapper_log.h1#ifndef INFERENCE_WRAPPER_LOG_COMMENT
LOW…dleware/inference_wrapper/inference_wrapper_coreml.cpp1#ifdef INFERENCE_WRAPPER_ENABLE_COREMLCOMMENT
LOW…leware/inference_wrapper/tensorrt/tensorrt_adapter.cpp1/**COMMENT
LOW…eware/inference_wrapper/customized/rknn_adapter_nano.h1//COMMENT
LOW…iddleware/inference_adapter/mnn_cv_adapter_inference.h1#ifndef MNN_SIMPLE_INFER_HCOMMENT
LOW…e/middleware/model_archive/core_archive/core_archive.h61#endif // MODELLOADERTAR_CPP_MICROTAR_HCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp41COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp61COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp201#if defined(JSON_HEDLEY_STRINGIFY_EX)COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp221#if defined(JSON_HEDLEY_CONCAT3_EX)COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp241#if defined(JSON_HEDLEY_VERSION_DECODE_MINOR)COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp261 #undef JSON_HEDLEY_GNUC_VERSION_CHECKCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp281 #undef JSON_HEDLEY_MSVC_VERSION_CHECKCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp301COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp321#if defined(JSON_HEDLEY_INTEL_CL_VERSION)COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp341#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp361#elseCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp381#if defined(JSON_HEDLEY_ARM_VERSION)COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp401#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp421#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp441#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp461#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp481COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp501#if defined(JSON_HEDLEY_TI_CL6X_VERSION)COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp521#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp541#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp561#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp581#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp601COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp621#if defined(JSON_HEDLEY_COMPCERT_VERSION)COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp641#endifCOMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp681#if defined(JSON_HEDLEY_GCC_VERSION_CHECK)COMMENT
LOW…spireface/cpp/inspireface/middleware/nlohmann/json.hpp701#endifCOMMENT
502 more matches not shown…
Deep Nesting288 hits · 284 pts
SeverityFileLineSnippetContext
LOWtools/onnx2caffe/MyCaffe.py21CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py27CODE
LOWtools/onnx2caffe/onnx2caffe/_graph.py168CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py25CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py250CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py310CODE
LOWtools/onnx2caffe/onnx2caffe/_transformers.py454CODE
LOWweb-demos/src_recognition/scrfd.py83CODE
LOWchallenges/iccv21-mfr/onnx_helper.py21CODE
LOWchallenges/iccv19-lfr/gen_video_feature.py86CODE
LOWcpp-package/inspireface/python/read_nv21.py7CODE
LOWcpp-package/inspireface/python/setup.py62CODE
LOWcpp-package/inspireface/python/test/test_utilis.py60CODE
LOWcpp-package/inspireface/python/test/test_utilis.py168CODE
LOW…ge/inspireface/python/inspireface/modules/exception.py115CODE
LOW…/inspireface/python/inspireface/modules/core/native.py13CODE
LOW…/inspireface/python/inspireface/modules/core/native.py427CODE
LOW…/inspireface/python/inspireface/modules/core/native.py788CODE
LOW…/inspireface/python/inspireface/modules/core/native.py810CODE
LOW…spireface/python/inspireface/modules/utils/resource.py141CODE
LOWpython-package/insightface/app/face_analysis.py42CODE
LOWpython-package/insightface/app/face_analysis.py98CODE
LOWpython-package/insightface/utils/download.py36CODE
LOWpython-package/insightface/model_zoo/retinaface.py87CODE
LOWpython-package/insightface/model_zoo/model_zoo.py39CODE
LOWpython-package/insightface/model_zoo/scrfd.py91CODE
LOWpython-package/insightface/model_zoo/scrfd.py320CODE
LOWpython-package/insightface/gui/main_window.py450CODE
LOWpython-package/insightface/gui/app.py89CODE
LOWpython-package/insightface/gui/core/clustering.py25CODE
LOWpython-package/insightface/gui/core/evaluation.py264CODE
LOWpython-package/insightface/gui/core/evaluation.py309CODE
LOWpython-package/insightface/gui/core/evaluation.py380CODE
LOWpython-package/insightface/gui/core/evaluation.py1065CODE
LOWpython-package/insightface/gui/core/face_engine.py66CODE
LOWpython-package/insightface/gui/core/face_engine.py196CODE
LOWpython-package/insightface/gui/core/face_engine.py219CODE
LOWpython-package/insightface/gui/core/storage.py537CODE
LOWpython-package/insightface/gui/core/storage.py704CODE
LOWpython-package/insightface/gui/core/i18n.py160CODE
LOWpython-package/insightface/gui/core/model_downloads.py254CODE
LOWpython-package/insightface/gui/core/reporting.py441CODE
LOW…hon-package/insightface/gui/pages/verification_page.py542CODE
LOW…hon-package/insightface/gui/pages/verification_page.py573CODE
LOWpython-package/insightface/gui/pages/album_page.py518CODE
LOWpython-package/insightface/gui/pages/album_page.py555CODE
LOWpython-package/insightface/gui/pages/face_swap_page.py230CODE
LOW…n-package/insightface/gui/pages/people_library_page.py261CODE
LOW…thon-package/insightface/gui/pages/face_search_page.py75CODE
LOW…thon-package/insightface/gui/pages/face_search_page.py93CODE
LOW…n-package/insightface/gui/pages/model_download_page.py150CODE
LOW…hon-package/insightface/gui/pages/video_search_page.py59CODE
LOW…hon-package/insightface/gui/pages/video_search_page.py72CODE
LOW…age/insightface/thirdparty/face3d/mesh_numpy/render.py100CODE
LOW…age/insightface/thirdparty/face3d/mesh_numpy/render.py177CODE
LOW…age/insightface/thirdparty/face3d/mesh_numpy/render.py220CODE
LOWserver/backend/insightface_server/models/packages.py277CODE
LOWserver/backend/insightface_server/models/packages.py366CODE
LOWserver/backend/insightface_server/storage/database.py52CODE
LOWserver/backend/insightface_server/storage/repository.py378CODE
228 more matches not shown…
Structural Annotation Overuse115 hits · 249 pts
SeverityFileLineSnippetContext
LOWcpp-package/inspireface/README.md573# Step 1: Initialize the SDK globally (only needs to be called once per application)COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp18 ////////////////// Step 1: Get detections //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp65 ////////////////// Step 2: First association, with IoU //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp89 ////////////////// Step 3: Second association, using low score dets //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp153 ////////////////// Step 4: Init new stracks //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp162 ////////////////// Step 5: Update state //////////////////COMMENT
LOW…/inspireface/command/build_cross_rv1109rv1126_armhf.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…/inspireface/command/build_cross_rv1109rv1126_armhf.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…/inspireface/command/build_cross_rv1109rv1126_armhf.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…/inspireface/command/build_cross_rv1109rv1126_armhf.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…spireface/command/build_wheel_manylinux2014_aarch64.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…spireface/command/build_wheel_manylinux2014_aarch64.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…spireface/command/build_wheel_manylinux2014_aarch64.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…spireface/command/build_wheel_manylinux2014_aarch64.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_macos_arm64.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_macos_arm64.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_macos_arm64.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_macos_arm64.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_ubuntu18.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_linux_ubuntu18.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_linux_ubuntu18.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_ubuntu18.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda_dev.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda_dev.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_linux_cuda_dev.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda_dev.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_android.sh93 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_android.sh99 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_android.sh102 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_android.sh105 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh75 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh81 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh84 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh87 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_linux_cuda.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_ios.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_ios.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_ios.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_ios.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_macos_x86.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_macos_x86.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_macos_x86.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_macos_x86.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…p-package/inspireface/command/build_wheel_macos_x86.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…p-package/inspireface/command/build_wheel_macos_x86.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…p-package/inspireface/command/build_wheel_macos_x86.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…p-package/inspireface/command/build_wheel_macos_x86.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…package/inspireface/command/build_wheel_macos_arm64.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…package/inspireface/command/build_wheel_macos_arm64.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…package/inspireface/command/build_wheel_macos_arm64.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…package/inspireface/command/build_wheel_macos_arm64.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_ios_coreml.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_ios_coreml.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
55 more matches not shown…
Verbosity Indicators114 hits · 248 pts
SeverityFileLineSnippetContext
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp18 ////////////////// Step 1: Get detections //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp65 ////////////////// Step 2: First association, with IoU //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp89 ////////////////// Step 3: Second association, using low score dets //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp153 ////////////////// Step 4: Init new stracks //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp162 ////////////////// Step 5: Update state //////////////////COMMENT
LOW…/inspireface/command/build_cross_rv1109rv1126_armhf.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…/inspireface/command/build_cross_rv1109rv1126_armhf.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…/inspireface/command/build_cross_rv1109rv1126_armhf.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…/inspireface/command/build_cross_rv1109rv1126_armhf.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…spireface/command/build_wheel_manylinux2014_aarch64.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…spireface/command/build_wheel_manylinux2014_aarch64.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…spireface/command/build_wheel_manylinux2014_aarch64.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…spireface/command/build_wheel_manylinux2014_aarch64.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_macos_arm64.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_macos_arm64.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_macos_arm64.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_macos_arm64.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_ubuntu18.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_linux_ubuntu18.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_linux_ubuntu18.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_ubuntu18.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda_dev.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda_dev.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_linux_cuda_dev.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda_dev.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_android.sh93 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_android.sh99 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_android.sh102 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_android.sh105 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh75 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh81 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh84 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh87 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_linux_cuda.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_linux_cuda.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_ios.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_ios.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_ios.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_ios.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_macos_x86.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_macos_x86.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_macos_x86.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOWcpp-package/inspireface/command/build_macos_x86.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…p-package/inspireface/command/build_wheel_macos_x86.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…p-package/inspireface/command/build_wheel_macos_x86.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…p-package/inspireface/command/build_wheel_macos_x86.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…p-package/inspireface/command/build_wheel_macos_x86.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW…package/inspireface/command/build_wheel_macos_arm64.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW…package/inspireface/command/build_wheel_macos_arm64.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW…package/inspireface/command/build_wheel_macos_arm64.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW…package/inspireface/command/build_wheel_macos_arm64.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOWcpp-package/inspireface/command/build_ios_coreml.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOWcpp-package/inspireface/command/build_ios_coreml.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOWcpp-package/inspireface/command/build_ios_coreml.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
54 more matches not shown…
Excessive Try-Catch Wrapping130 hits · 155 pts
SeverityFileLineSnippetContext
LOW…ge/inspireface/tools/generate_error_tabel_to_python.py14 except Exception as e:CODE
MEDIUM…ge/inspireface/tools/generate_error_tabel_to_python.py6def calculate_error_code_value(error_code_str, error_definitions):CODE
LOWcpp-package/inspireface/tools/release_modelscope.py47 except Exception as e:CODE
LOWcpp-package/inspireface/tools/output_error_table.py13 except Exception as e:CODE
MEDIUMcpp-package/inspireface/tools/output_error_table.py5def calculate_error_code_value(error_code_str, error_definitions):CODE
MEDIUM…age/inspireface/python/sample_face_track_from_video.py71 print("Error: Could not open video source.")CODE
LOWcpp-package/inspireface/python/read_nv21.py61 except Exception as e:CODE
LOWcpp-package/inspireface/python/test/test_utilis.py112 except Exception as e:CODE
MEDIUMcpp-package/inspireface/python/test/test_utilis.py113 print(f"An error occurred while reading the file: {str(e)}")CODE
LOW…ge/inspireface/python/inspireface/modules/exception.py233 except Exception as e:CODE
MEDIUM…ge/inspireface/python/inspireface/modules/exception.py230def wrapper(*args, **kwargs):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py730 except Exception as e:CODE
LOW…/inspireface/python/inspireface/modules/core/native.py93except Exception as e:CODE
LOW…/inspireface/python/inspireface/modules/core/native.py627 except Exception as err: # pylint: disable=broad-exceptCODE
LOW…spireface/python/inspireface/modules/utils/resource.py138 except Exception as e:CODE
LOW…spireface/python/inspireface/modules/utils/resource.py216 except Exception as e:CODE
LOW…spireface/python/inspireface/modules/utils/resource.py268 except Exception as e:CODE
MEDIUM…spireface/python/inspireface/modules/utils/resource.py269 print(f"Error: {e}")CODE
LOWpython-package/insightface/gui/main_window.py83 except Exception as exc:CODE
MEDIUMpython-package/insightface/gui/main_window.py72def run(self) -> None:CODE
LOWpython-package/insightface/gui/app.py63 except Exception:CODE
LOWpython-package/insightface/gui/resources.py38 except Exception:CODE
LOWpython-package/insightface/gui/resources.py79 except Exception:CODE
LOWpython-package/insightface/gui/resources.py88 except Exception:CODE
LOWpython-package/insightface/gui/__main__.py29 except Exception:CODE
LOWpython-package/insightface/gui/core/clustering.py41 except Exception:CODE
LOWpython-package/insightface/gui/core/config.py112 except Exception:CODE
LOWpython-package/insightface/gui/core/theme.py69 except Exception:CODE
LOWpython-package/insightface/gui/core/swap.py35 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/swap.py44 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/swap.py106 except Exception as exc:CODE
MEDIUMpython-package/insightface/gui/core/evaluation.py134def _face_area(face) -> float:CODE
LOWpython-package/insightface/gui/core/evaluation.py138 except Exception:CODE
LOWpython-package/insightface/gui/core/evaluation.py158 except Exception:CODE
LOWpython-package/insightface/gui/core/evaluation.py232 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/evaluation.py350 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/evaluation.py409 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/evaluation.py1019 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/evaluation.py1096 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/evaluation.py1131 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/camera.py11 except Exception:CODE
LOWpython-package/insightface/gui/core/utils.py28 except Exception:CODE
LOWpython-package/insightface/gui/core/utils.py36 except Exception:CODE
LOWpython-package/insightface/gui/core/utils.py52 except Exception:CODE
LOWpython-package/insightface/gui/core/utils.py59 except Exception:CODE
LOWpython-package/insightface/gui/core/utils.py94 except Exception:CODE
LOWpython-package/insightface/gui/core/face_engine.py87 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/face_engine.py116 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/face_engine.py130 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/face_engine.py173 except Exception:CODE
LOWpython-package/insightface/gui/core/face_engine.py193 except Exception:CODE
LOWpython-package/insightface/gui/core/face_engine.py203 except Exception:CODE
LOWpython-package/insightface/gui/core/face_engine.py228 except Exception as exc:CODE
LOWpython-package/insightface/gui/core/face_engine.py399 except Exception as exc:CODE
MEDIUMpython-package/insightface/gui/core/face_engine.py185def _quiet_onnxruntime_session_options():CODE
MEDIUMpython-package/insightface/gui/core/face_engine.py393def available_execution_providers() -> List[str]:CODE
LOWpython-package/insightface/gui/core/storage.py52 except Exception:CODE
LOWpython-package/insightface/gui/core/storage.py340 except Exception:CODE
LOWpython-package/insightface/gui/core/storage.py546 except Exception:CODE
LOWpython-package/insightface/gui/core/storage.py579 except Exception:CODE
70 more matches not shown…
AI Structural Patterns130 hits · 129 pts
SeverityFileLineSnippetContext
LOWpython-package/insightface/gui/core/tooltips.py86CODE
LOWpython-package/insightface/gui/core/storage.py235CODE
LOWpython-package/insightface/gui/core/storage.py344CODE
LOWpython-package/insightface/gui/core/storage.py386CODE
LOWserver/backend/insightface_server/app.py853CODE
LOWserver/backend/insightface_server/services/rtsp.py817CODE
LOWserver/sdk/python/src/insightface_server/client.py128CODE
LOWserver/sdk/python/src/insightface_server/client.py190CODE
LOWserver/sdk/python/src/insightface_server/client.py318CODE
LOWserver/sdk/python/src/insightface_server/client.py384CODE
LOWalignment/heatmap/data.py23CODE
LOWalignment/heatmap/symbol/sym_heatmap.py84CODE
LOWreconstruction/ostec/utils/generate_heatmap.py6CODE
LOW…uction/ostec/external/stylegan2/metrics/metric_base.py61CODE
LOW…ostec/external/stylegan2/training/networks_stylegan.py301CODE
LOW…ostec/external/stylegan2/training/networks_stylegan.py383CODE
LOW…ostec/external/stylegan2/training/networks_stylegan.py439CODE
LOW…ostec/external/stylegan2/training/networks_stylegan.py563CODE
LOW…ion/ostec/external/stylegan2/training/training_loop.py47CODE
LOW…ion/ostec/external/stylegan2/training/training_loop.py105CODE
LOW…struction/ostec/external/stylegan2/training/dataset.py20CODE
LOW…ction/ostec/external/stylegan2/dnnlib/tflib/network.py353CODE
LOW…ion/ostec/external/stylegan2/dnnlib/tflib/optimizer.py40CODE
LOW…stec/external/stylegan2/dnnlib/tflib/ops/upfirdn_2d.py19CODE
LOW…l/graphonomy/FaceHairMask/deeplab_xception_transfer.py358CODE
LOW…l/graphonomy/FaceHairMask/deeplab_xception_transfer.py556CODE
LOW…stec/external/graphonomy/FaceHairMask/ParsingResnet.py42CODE
LOW…ostec/external/graphonomy/FaceHairMask/ParsingModel.py76CODE
LOWreconstruction/jmlr/backbones/resnet.py37CODE
LOWreconstruction/jmlr/backbones/resnet.py102CODE
LOWreconstruction/jmlr/backbones/resnet.py309CODE
LOWreconstruction/jmlr/backbones/network.py124CODE
LOWreconstruction/jmlr/backbones/iresnet.py74CODE
LOWreconstruction/PBIDR/code/model/renderer.py423CODE
LOWrecognition/_evaluation_/ijb/ijb_onnx.py52CODE
LOWrecognition/arcface_mxnet/train.py233CODE
LOWrecognition/arcface_mxnet/train_parall.py124CODE
LOWrecognition/arcface_mxnet/train_parall.py183CODE
LOWrecognition/arcface_mxnet/parall_module_local_v1.py417CODE
LOWrecognition/arcface_mxnet/image_iter.py25CODE
LOWrecognition/arcface_mxnet/triplet_image_iter.py31CODE
LOWrecognition/arcface_mxnet/symbol/vargfacenet.py103CODE
LOWrecognition/arcface_mxnet/symbol/vargfacenet.py173CODE
LOWrecognition/arcface_mxnet/symbol/vargfacenet.py250CODE
LOWrecognition/arcface_mxnet/symbol/fmobilefacenet.py116CODE
LOWrecognition/arcface_mxnet/common/flops_counter.py99CODE
LOWrecognition/arcface_paddle/dynamic/utils/amp.py22CODE
LOWrecognition/arcface_paddle/dynamic/backbones/iresnet.py249CODE
LOWrecognition/arcface_paddle/dynamic/classifiers/lsc.py30CODE
LOWrecognition/arcface_paddle/static/static_model.py33CODE
LOWrecognition/partial_fc/mxnet/image_iter.py24CODE
LOWrecognition/arcface_torch/dataset.py193CODE
LOWrecognition/arcface_torch/backbones/vit.py75CODE
LOWrecognition/arcface_torch/backbones/vit.py139CODE
LOWrecognition/arcface_oneflow/oneflow2onnx.py21CODE
LOW…cognition/arcface_oneflow/utils/ofrecord_data_utils.py8CODE
LOWrecognition/arcface_oneflow/utils/losses.py49CODE
LOWrecognition/arcface_oneflow/eval/onnx_ijbc.py55CODE
LOWrecognition/idmmd/network/lightcnn112.py47CODE
LOWrecognition/subcenter_arcface/train_parall.py117CODE
70 more matches not shown…
Modern Structural Boilerplate113 hits · 122 pts
SeverityFileLineSnippetContext
LOWweb-demos/src_recognition/arcface_onnx.py13__all__ = [CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1272def set_logging_level(level: int) -> None:CODE
LOWpython-package/insightface/app/face_analysis.py21__all__ = ['FaceAnalysis']CODE
LOWpython-package/insightface/model_zoo/landmark.py16__all__ = [CODE
LOWpython-package/insightface/model_zoo/arcface_onnx.py14__all__ = [CODE
LOWpython-package/insightface/model_zoo/attribute.py14__all__ = [CODE
LOWpython-package/insightface/model_zoo/model_zoo.py19__all__ = ['get_model']CODE
LOWpython-package/insightface/model_zoo/model_store.py6__all__ = ['get_model_file']CODE
LOWpython-package/insightface/gui/main_window.py163 def _update_provider_availability(self) -> None:CODE
LOWpython-package/insightface/gui/main_window.py516 def _settings_saved(self) -> None:CODE
LOWpython-package/insightface/gui/main_window.py562 def set_status(self, message: str) -> None:CODE
LOWpython-package/insightface/gui/__init__.py12__all__ = ["__version__", "APP_NAME", "APP_DISPLAY_NAME"]CODE
LOWpython-package/insightface/gui/resources.py72def _set_windows_app_user_model_id() -> None:CODE
LOWpython-package/insightface/gui/resources.py83def _set_process_title_best_effort(name: str) -> None:CODE
LOWpython-package/insightface/gui/resources.py92__all__ = [CODE
LOWpython-package/insightface/gui/core/tooltips.py100def set_button_tooltip(button: QAbstractButton, tooltip: str | None = None) -> None:CODE
LOWpython-package/insightface/gui/core/storage.py202 def update_person(self, person_id: int, **fields: Any) -> None:CODE
LOWpython-package/insightface/gui/core/storage.py560 def set_setting(self, key: str, value: Any) -> None:CODE
LOW…thon-package/insightface/gui/dialogs/license_dialog.py24 def set_status(self, message: str) -> None:CODE
LOW…ackage/insightface/gui/dialogs/model_manager_dialog.py42 def set_status(self, message: str) -> None:CODE
LOW…hon-package/insightface/gui/dialogs/settings_dialog.py74 def _update_theme_description(self) -> None:CODE
LOW…hon-package/insightface/gui/pages/verification_page.py121 def set_paths(self, paths: list[str], emit: bool = True) -> None:CODE
LOW…hon-package/insightface/gui/pages/verification_page.py287 def _set_property(self, name: str, value) -> None:CODE
LOW…hon-package/insightface/gui/pages/verification_page.py292 def _update_hover_from_cursor(self) -> None:CODE
LOW…hon-package/insightface/gui/pages/verification_page.py305 def _update_single_preview(self) -> None:CODE
LOW…hon-package/insightface/gui/pages/verification_page.py435 def set_gallery_paths(self, paths: list[str]) -> None:CODE
LOW…hon-package/insightface/gui/pages/verification_page.py566 def _update_mode_label(self) -> None:CODE
LOW…hon-package/insightface/gui/pages/verification_page.py685 def _update_policy_notice(self) -> None:CODE
LOWpython-package/insightface/gui/pages/album_page.py125 def _set_property(self, name: str, value) -> None:CODE
LOWpython-package/insightface/gui/pages/album_page.py130 def _update_hover_from_cursor(self) -> None:CODE
LOW…n-package/insightface/gui/pages/model_settings_page.py126 def _update_provider_availability(self) -> None:CODE
LOW…n-package/insightface/gui/pages/model_settings_page.py144 def _update_model_availability(self) -> None:CODE
LOW…n-package/insightface/gui/pages/model_settings_page.py180 def _update_custom_dir_visibility(self) -> None:CODE
LOW…n-package/insightface/gui/pages/model_settings_page.py186 def _update_swap_model_choices(self) -> None:CODE
LOW…n-package/insightface/gui/pages/model_settings_page.py209 def _update_gfpgan_model_choices(self) -> None:CODE
LOW…n-package/insightface/gui/pages/people_library_page.py114 def _set_drag_active(self, value: bool) -> None:CODE
LOW…n-package/insightface/gui/pages/people_library_page.py137 def _set_property(self, name: str, value) -> None:CODE
LOW…n-package/insightface/gui/pages/people_library_page.py142 def _update_hover_from_cursor(self) -> None:CODE
LOW…hon-package/insightface/gui/pages/album_people_page.py37 def set_folder(self, folder: str) -> None:CODE
LOW…package/insightface/gui/pages/batch_processing_page.py41 def set_folder(self, folder: str) -> None:CODE
LOWpython-package/insightface/gui/pages/base.py91 def set_status(self, message: str) -> None:CODE
LOW…-package/insightface/gui/pages/enterprise_eval_page.py1004 def _set_dataset_drag_active(self, active: bool) -> None:CODE
LOW…-package/insightface/gui/pages/enterprise_eval_page.py1012 def _update_instructions(self) -> None:CODE
LOWpython-package/insightface/gui/widgets/image_viewer.py37 def set_image(self, image: Optional[np.ndarray]) -> None:CODE
LOWpython-package/insightface/gui/widgets/image_viewer.py50 def set_faces(self, faces: Iterable[Any]) -> None:CODE
LOWpython-package/insightface/gui/widgets/face_table.py13 def set_rows(self, rows: Iterable[Mapping[str, object]], columns: list[str]) -> None:CODE
LOW…hon-package/insightface/gui/widgets/progress_dialog.py16 def update_progress(self, current: int, total: int, message: str = "") -> None:CODE
LOWpython-package/insightface/gui/widgets/drop_input.py87 def set_path(self, path: str, emit: bool = True) -> None:CODE
LOWpython-package/insightface/gui/widgets/drop_input.py90 def set_paths(self, paths: Sequence[str], emit: bool = True) -> None:CODE
LOWpython-package/insightface/gui/widgets/drop_input.py238 def _set_property(self, name: str, value) -> None:CODE
LOWpython-package/insightface/gui/widgets/drop_input.py243 def _update_hover_from_cursor(self) -> None:CODE
LOW…on-package/insightface/gui/widgets/threshold_slider.py36 def set_value(self, value: float) -> None:CODE
LOWpython-package/insightface/gui/widgets/metric_card.py19 def set_value(self, value: object) -> None:CODE
LOW…thon-package/insightface/gui/widgets/upload_preview.py93 def set_path(self, path: str, emit: bool = True) -> None:CODE
LOW…thon-package/insightface/gui/widgets/upload_preview.py101 def set_image(self, image: Optional[np.ndarray], path: str | None = None) -> None:CODE
LOW…thon-package/insightface/gui/widgets/upload_preview.py113 def set_faces(self, faces) -> None:CODE
LOW…thon-package/insightface/gui/widgets/upload_preview.py229 def _set_property(self, name: str, value) -> None:CODE
LOW…thon-package/insightface/gui/widgets/upload_preview.py234 def _update_hover_from_cursor(self) -> None:CODE
LOWserver/backend/insightface_server/models/__init__.py15__all__ = [CODE
LOWserver/backend/insightface_server/storage/__init__.py19__all__ = [CODE
53 more matches not shown…
Self-Referential Comments27 hits · 88 pts
SeverityFileLineSnippetContext
MEDIUM…ge/inspireface/tools/generate_error_tabel_to_python.py18# Define a function to parse the error codes between anchors in a given C header file contentCOMMENT
MEDIUM…ge/inspireface/tools/generate_error_tabel_to_python.py20 # Define the start and end anchor tagsCOMMENT
MEDIUMcpp-package/inspireface/tools/output_error_table.py17# Define a function to parse the error codes between anchors in a given C header file contentCOMMENT
MEDIUMcpp-package/inspireface/tools/output_error_table.py19 # Define the start and end anchor tagsCOMMENT
MEDIUM…/quick_test_linux_x86_usual_python_native_interface.sh9# Create the build directory if it doesn't existCOMMENT
MEDIUM…p-package/inspireface/ci/quick_test_linux_x86_usual.sh20# Create the build directory if it doesn't existCOMMENT
MEDIUM…p-package/inspireface/ci/quick_test_linux_x86_usual.sh43 # Create a symbolic link to the extracted test data directoryCOMMENT
MEDIUMcpp-package/inspireface/ci/quick_test_local.sh36# Create the build directory if it doesn't existCOMMENT
MEDIUMcpp-package/inspireface/ci/quick_test_local.sh57# Create a symbolic link to the extracted test data directoryCOMMENT
MEDIUMcpp-package/inspireface/command/build_android.sh6 # Define the new main directoriesCOMMENT
MEDIUMcpp-package/inspireface/command/build_android.sh36 # Create a specific directory for each architecture under the main directoryCOMMENT
MEDIUM…age/inspireface/command/build_android_rk356x_rk3588.sh6 # Define the new main directoriesCOMMENT
MEDIUM…age/inspireface/command/build_android_rk356x_rk3588.sh29 # Create a specific directory for each architecture under the main directoryCOMMENT
MEDIUMcpp-package/inspireface/command/build_ios.sh32# Create the directory if it does not existCOMMENT
MEDIUMcpp-package/inspireface/command/build_ios.sh121# Create the framework structureCOMMENT
MEDIUMcpp-package/inspireface/command/build_ios_coreml.sh32# Create the directory if it does not existCOMMENT
MEDIUMcpp-package/inspireface/command/build_ios_coreml.sh121# Create the framework structureCOMMENT
MEDIUMcpp-package/inspireface/command/build.sh72# Create the build directory and navigate into itCOMMENT
MEDIUMcpp-package/inspireface/command/create_ios_framework.sh12# Create the framework structureCOMMENT
MEDIUMdetection/retinaface/rcnn/pycocotools/_mask.c2739 * # Create a 1D array, and reshape it to fortran/Matlab column-major arrayCOMMENT
MEDIUMdetection/retinaface/rcnn/pycocotools/_mask.c2746 * # Create a 1D array, and reshape it to fortran/Matlab column-major arrayCOMMENT
MEDIUMdetection/scrfd/mmdet/core/mask/structures.py201 """This class represents masks in the form of bitmaps.STRING
MEDIUMdetection/scrfd/mmdet/core/mask/structures.py480 """This class represents masks in the form of polygons.STRING
MEDIUM…fd/mmdet/core/bbox/assigners/center_region_assigner.py311 # The following codes deal with this situationCOMMENT
MEDIUM…ction/scrfd/mmdet/core/bbox/assigners/assign_result.py142 # Create an overlap for each predicted boxCOMMENT
MEDIUMdetection/scrfd/mmdet/models/losses/focal_loss.py9# This method is only for debuggingCOMMENT
MEDIUMdetection/scrfd/mmdet/ops/__init__.py1# This file is added for back-compatibility. Thus, downstream codebaseCOMMENT
Docstring Block Structure12 hits · 60 pts
SeverityFileLineSnippetContext
HIGH…/inspireface/python/inspireface/modules/inspireface.py42 Load image data from an OpenCV image (numpy ndarray). Args: image (np.ndarray): The image STRING
HIGH…/inspireface/python/inspireface/modules/inspireface.py343 Detects faces in the given image and returns a list of FaceInformation objects containing detailed face data. STRING
HIGH…/inspireface/python/inspireface/modules/inspireface.py748 Launches the InspireFace system with the specified resource directory. Args: model_name (str): the namSTRING
HIGH…/inspireface/python/inspireface/modules/inspireface.py1113 Updates an existing face identity in the feature hub. Args: face_identity (FaceIdentity): The face ideSTRING
HIGH…/inspireface/python/inspireface/modules/inspireface.py1133 Removes a face identity from the feature hub using its custom ID. Args: custom_id (int): The custom IDSTRING
HIGH…/inspireface/python/inspireface/modules/inspireface.py1153 Retrieves a face identity from the feature hub using its custom ID. Args: custom_id (int): The custom STRING
HIGHreconstruction/ostec/utils/ganfit_camera.py124Applies batched 4x4 homogenous matrix transformations to 3-D vertices. The vertices are input and output as as row-majSTRING
HIGHdetection/scrfd/mmdet/core/evaluation/eval_hooks.py13Evaluation hook. Notes: If new arguments are added for EvalHook, tools/test.py, tools/eval_metric.pSTRING
HIGHdetection/scrfd/mmdet/core/evaluation/eval_hooks.py176Distributed evaluation hook. Notes: If new arguments are added, tools/test.py may be effected. AttribuSTRING
HIGHdetection/scrfd/mmdet/core/export/pytorch2onnx.py89Prepare an example input image for ``generate_inputs_and_wrap_model``. Args: input_config (dict): customizeSTRING
HIGHdetection/scrfd/mmdet/datasets/utils.py6Replace the ImageToTensor transform in a data pipeline to DefaultFormatBundle, which is normally useful in batch infSTRING
HIGHdetection/scrfd/mmdet/models/backbones/resnet.py486Make plugins for ResNet ``stage_idx`` th stage. Currently we support to insert ``context_block``, ``empSTRING
Dead Code28 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMreconstruction/gaze/test_gaze.py162CODE
MEDIUMreconstruction/gaze/test_gaze.py163CODE
MEDIUMreconstruction/gaze/test_gaze.py164CODE
MEDIUMreconstruction/gaze/test_gaze.py165CODE
MEDIUMreconstruction/gaze/test_gaze.py167CODE
MEDIUMreconstruction/gaze/test_gaze.py168CODE
MEDIUMreconstruction/gaze/test_gaze.py169CODE
MEDIUMreconstruction/gaze/test_gaze.py170CODE
MEDIUMreconstruction/gaze/test_gaze.py171CODE
MEDIUMreconstruction/gaze/test_gaze.py172CODE
MEDIUMreconstruction/gaze/test_gaze.py173CODE
MEDIUMreconstruction/gaze/test_gaze.py174CODE
MEDIUMreconstruction/gaze/test_gaze.py175CODE
MEDIUMreconstruction/gaze/test_gaze.py178CODE
MEDIUMreconstruction/gaze/test_gaze.py179CODE
MEDIUMreconstruction/gaze/test_gaze.py180CODE
MEDIUMreconstruction/gaze/test_gaze.py181CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py330CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py331CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py334CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py336CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py339CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py340CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py343CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py347CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py348CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py351CODE
MEDIUMdetection/retinaface/rcnn/core/tester.py352CODE
Redundant / Tautological Comments26 hits · 46 pts
SeverityFileLineSnippetContext
LOW…kage/inspireface/tools/transform_similarity_testing.py95 # Print the resultsCOMMENT
LOW…kage/inspireface/tools/generate_release_models_info.py43 # Output the resultCOMMENT
LOW…/inspireface/python/inspireface/modules/inspireface.py764 # Check if ModelScope is available when neededCOMMENT
LOW…/inspireface/python/inspireface/modules/inspireface.py792 # Check if ModelScope is available when neededCOMMENT
LOW…/inspireface/python/inspireface/modules/inspireface.py813 # Check if ModelScope is available when neededCOMMENT
LOW…/inspireface/python/inspireface/modules/core/native.py57 # Check if running under Rosetta 2COMMENT
LOW…spireface/python/inspireface/modules/utils/resource.py169 # Check if model exists and is completeCOMMENT
LOW…spireface/python/inspireface/modules/utils/resource.py233 # Check if model exists in ModelScope cacheCOMMENT
LOW…p-package/inspireface/ci/quick_test_linux_x86_usual.sh41# Check if the symbolic link or directory already existsCOMMENT
LOW…p-package/inspireface/ci/quick_test_linux_x86_usual.sh50# Check if the test executable file existsCOMMENT
LOWcpp-package/inspireface/ci/quick_test_local.sh13# Check if the target directory already existsCOMMENT
LOWcpp-package/inspireface/ci/quick_test_local.sh60# Check if the test executable file existsCOMMENT
LOWcpp-package/inspireface/command/build_android.sh9 # Check if the base path existsCOMMENT
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh9 # Check if the base path existsCOMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh39# Check if MNN-2.3.0 directory already existsCOMMENT
LOWcpp-package/inspireface/command/build_ios.sh41 # Check if the framework already existsCOMMENT
LOWcpp-package/inspireface/command/build_ios.sh46 # Check if the zip file already existsCOMMENT
LOW…package/inspireface/command/download_models_general.sh42# Check if argument is providedCOMMENT
LOWcpp-package/inspireface/command/build_ios_coreml.sh41 # Check if the framework already existsCOMMENT
LOWcpp-package/inspireface/command/build_ios_coreml.sh46 # Check if the zip file already existsCOMMENT
LOWcpp-package/inspireface/command/build_linux_tensorrt.sh61 # Check if it is UbuntuCOMMENT
LOWpython-package/setup.py119# Check if running on macOS (Darwin)COMMENT
LOWpython-package/setup.py123 # Check if Homebrew is installedCOMMENT
LOWpython-package/setup.py132 # Check if LLVM is installedCOMMENT
LOWreconstruction/ostec/utils/generate_heatmap.py60 # Check if the gaussian is insideCOMMENT
LOW…fd/mmdet/core/bbox/assigners/center_region_assigner.py318 # Assign priority to each bbox-gt pair.COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICAL…n/ostec/external/stylegan2/dnnlib/submission/submit.py99 self.local = external.stylegan2.dnnlib.submission.internal.local.TargetOptions()CODE
CRITICAL…n/ostec/external/stylegan2/dnnlib/submission/submit.py315 farm = external.stylegan2.dnnlib.submission.internal.local.Target()CODE
Cross-Language Confusion3 hits · 18 pts
SeverityFileLineSnippetContext
HIGHrecognition/arcface_mxnet/parall_module_local_v1.py253 self._distkv.push(key, value)CODE
HIGHrecognition/subcenter_arcface/parall_module_local_v1.py253 self._distkv.push(key, value)CODE
HIGHdetection/retinaface/rcnn/pycocotools/coco.py18# captions not all functions are defined (e.g. categories are undefined).COMMENT
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
LOWalignment/heatmap/img_helper.py48 # If not, just return the image as isCOMMENT
MEDIUM…ion/ostec/external/stylegan2/dnnlib/tflib/optimizer.py46 use_loss_scaling: bool = False, # Enable dynamic loss scaling for robust mixCODE
MEDIUM…tion/scrfd/mmdet/core/bbox/samplers/sampling_result.py131 # sometimes algorithms squeeze their data, be robust to thatCOMMENT
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…-package/inspireface/python/sample_face_recognition.py15 # If you need to switch from the default Pikachu model to another model like Megatron, you can use reloadCOMMENT
MEDIUMreconstruction/ostec/utils/generate_heatmap.py112 #you can use [X,2] matrixCOMMENT
Overly Generic Function Names3 hits · 4 pts
SeverityFileLineSnippetContext
LOWpython-package/insightface/gui/main_window.py582 def run_task(self, title: str, fn: Callable, on_result: Callable | None = None, show_dialog: bool = True) -> None:CODE
LOW…ackage/insightface/gui/dialogs/model_manager_dialog.py48 def run_task(self, title: str, fn, on_result=None, show_dialog: bool = True) -> None:CODE
LOWpython-package/insightface/gui/pages/base.py101 def run_task(self, title: str, fn: Callable, on_result: Callable | None = None, show_dialog: bool = True) -> None:CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…ge/inspireface/cpp/inspireface/engine/face_session.cpp120 // TODO: implement this functionCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdetection/retinaface/rcnn/pycocotools/mask.py39# Usage:COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpython-package/tests/gui/test_storage.py30 image_path.write_bytes(b"placeholder")CODE