AI Slop Code Risk Monitor

deepinsight/insightface

SlopCodeMonitor badge for deepinsight/insightface Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

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

17.1 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for deepinsight/insightface, a Python project with 30,100 GitHub stars. SynthScan examined 461,283 lines of code across 1985 source files, recording 6168 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 17.1 (Elevated 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.

17.1
Adjusted Signal
17.1
Raw Pattern Score
100%
Time Factor
2026-10-19
Last Push
30.1K
Stars
Python
Language
461.3K
Lines of Code
2.0K
Files
6.2K
Pattern Hits
2026-10-31
Scan Date
0.14
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 31.2/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 3242 finding(s).

Hallucinated Dependency & Supply Chain Risk 19.1/100 · LOW

Are imports declared and package/API names verified? 2028 finding(s).

Agent Over-Engineering Ratio 38.6/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 2901 finding(s).

PR Review Velocity Impact 58.8/100 · HIGH

Which changes need focused human review? 6168 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 2HIGH 267MEDIUM 326LOW 5573

Directory Score Breakdown

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.

Pattern Findings

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

Hyper-Verbose Identifiers1870 hits · 1888 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
LOW⚡cpp-package/inspireface/tools/output_error_table.py5def calculate_error_code_value(error_code_str, error_definitions):CODE
LOW⚡cpp-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…ackage/inspireface/python/sample_image_stream_guard.py236def run_format_and_buffer_cases(guard):CODE
LOW…nspireface/python/sample_system_resource_statistics.py7def case_show_system_resource_statistics(resource_path):CODE
LOW…e/inspireface/python/sample_resource_download_guard.py268 def observe_complete_destination():CODE
LOWcpp-package/inspireface/python/setup.py103def get_target_platform_for_envs():CODE
LOWcpp-package/inspireface/python/sample_face_detection.py17def case_face_detection_image(image_path, show):CODE
LOW…e/python/sample_testcase/test_similarity_and_errors.py21 def test_cpp_similarity_converter_vectors(self):CODE
LOW⚡…e/python/sample_testcase/test_similarity_and_errors.py61 def test_unsupported_error_mapping_and_ir_session_contract(self):CODE
LOW⚡…e/python/sample_testcase/test_similarity_and_errors.py70 def test_feature_dtype_validation(self):CODE
LOW⚡…e/python/sample_testcase/test_similarity_and_errors.py79 def test_feature_shape_layout_and_finite_validation(self):CODE
LOW…e/python/sample_testcase/test_similarity_and_errors.py103 def test_feature_hub_top_k_reports_disabled_hub(self):CODE
LOW…e/python/sample_testcase/test_similarity_and_errors.py116 def test_session_rejects_invalid_image_and_pipeline_parameter(self):CODE
LOW…e/python/sample_testcase/test_similarity_and_errors.py126 def test_cv_image_shape_validation(self):CODE
LOW…/inspireface/python/sample_testcase/test_face_track.py51 def test_custom_parameter_exposes_cpp_face_pose_field(self):CODE
LOW…/inspireface/python/sample_testcase/test_face_track.py60 def test_face_and_no_face_detection(self):CODE
LOW…/inspireface/python/sample_testcase/test_face_track.py74 def test_rotated_detection_consistency(self):CODE
LOW…/inspireface/python/sample_testcase/test_face_track.py97 def test_head_pose_signs_match_cpp_cases(self):CODE
LOW…/inspireface/python/sample_testcase/test_face_track.py114 def test_landmark_shapes_and_values(self):CODE
LOW…/inspireface/python/sample_testcase/test_face_track.py128 def test_light_track_id_stability(self):CODE
LOW…/inspireface/python/sample_testcase/test_face_track.py139 def test_detection_pixel_levels_match_cpp_ranges(self):CODE
LOW…/inspireface/python/sample_testcase/test_face_track.py168 def test_invalid_preview_level_is_clamped(self):CODE
LOWcpp-package/inspireface/python/sample_testcase/run.py78def native_library_destination(package_root):CODE
LOW…spireface/python/sample_testcase/test_image_process.py36 def test_bgr_rotation_matches_cpp_fixtures(self):CODE
LOW…spireface/python/sample_testcase/test_image_process.py93 def test_bitmap_create_copy_draw_and_write(self):CODE
LOW…eface/python/sample_testcase/test_system_and_stream.py44 def test_resource_pack_validation_is_side_effect_free_and_bounded(self):CODE
LOW…eface/python/sample_testcase/test_system_and_stream.py64 def test_owned_detection_snapshot_survives_python_resource_release(self):CODE
LOW…eface/python/sample_testcase/test_system_and_stream.py111 def test_launch_status_and_version(self):CODE
LOW…eface/python/sample_testcase/test_system_and_stream.py169 def test_global_lifecycle_in_isolated_process(self):CODE
LOW…eface/python/sample_testcase/test_system_and_stream.py199 def test_session_resource_registry(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py218 def test_session_context_and_temporary_streams_release_deterministically(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py228 def test_stream_resource_registry(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py240 def test_session_runtime_setters(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py253 def test_landmark_augmentation_setter_rejects_invalid_values(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py265 def test_shared_images_match_contiguous_references(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py287 def test_cv_bgra_inference_and_buffer_inputs(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py325 def test_gray_image_and_yuv_dimension_contract(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py347 def test_query_dma_heap_path_uses_owned_output_buffer(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py351 def test_source_lifetime_and_context_release(self):STRING
LOW…eface/python/sample_testcase/test_system_and_stream.py373 def test_invalid_stream_contract(self):STRING
LOW…nspireface/python/sample_testcase/test_api_coverage.py84 def test_public_api_manifest_is_current(self):CODE
LOW…nspireface/python/sample_testcase/test_api_coverage.py106 def test_cpp_fixture_tree_is_shared(self):CODE
LOW…ace/python/sample_testcase/test_recognition_and_hub.py42 def test_feature_extract_and_comparison(self):CODE
LOW…ace/python/sample_testcase/test_recognition_and_hub.py59 def test_parallel_sessions_are_deterministic(self):CODE
LOW…ace/python/sample_testcase/test_recognition_and_hub.py83 def test_manual_crud_search_and_top_k(self):CODE
LOW…ace/python/sample_testcase/test_recognition_and_hub.py123 def test_face_identity_owns_feature_memory(self):CODE
LOW…ace/python/sample_testcase/test_recognition_and_hub.py129 def test_auto_increment_allocates_unique_ids(self):CODE
LOW…ace/python/sample_testcase/test_recognition_and_hub.py164 def test_persistent_mode_survives_reenable(self):CODE
LOW…ace/python/sample_testcase/test_recognition_and_hub.py193 def test_parallel_search_is_stable(self):CODE
LOW…nspireface/python/sample_testcase/test_face_capture.py38 def test_native_layout_defaults_and_python_constants_match(self):CODE
LOW…nspireface/python/sample_testcase/test_face_capture.py56 def test_invalid_config_and_required_features_raise_typed_errors(self):CODE
LOW…nspireface/python/sample_testcase/test_face_capture.py81 def test_track_count_gate_waits_for_fifth_frame_and_can_be_disabled(self):CODE
LOW…nspireface/python/sample_testcase/test_face_capture.py106 def test_direct_update_selects_single_face_and_rejects_real_edge_images(self):CODE
LOW…nspireface/python/sample_testcase/test_face_capture.py133 def test_snapshot_reuse_is_exact_and_capture_pins_released_parent_session(self):CODE
LOW…nspireface/python/sample_testcase/test_face_capture.py160 def test_stability_order_finish_reset_and_copied_result_token_lifecycle(self):CODE
LOW…nspireface/python/sample_testcase/test_face_capture.py194 def test_independent_instances_are_deterministic_and_snapshot_path_is_bounded(self):CODE
1810 more matches not shown…
Unused Imports2013 hits · 1876 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
1953 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 Separators241 hits · 795 pts
SeverityFileLineSnippetContext
MEDIUMalignment/synthetics/trainer_synthetics.py78 # ------------COMMENT
MEDIUMalignment/synthetics/trainer_synthetics.py80 # ------------COMMENT
MEDIUM⚡alignment/synthetics/trainer_synthetics.py98 # ------------COMMENT
MEDIUM⚡alignment/synthetics/trainer_synthetics.py100 # ------------COMMENT
MEDIUM⚡alignment/synthetics/trainer_synthetics.py107 # ------------COMMENT
MEDIUM⚡alignment/synthetics/trainer_synthetics.py109 # ------------COMMENT
MEDIUM⚡alignment/synthetics/trainer_synthetics.py115 # ------------COMMENT
MEDIUM⚡alignment/synthetics/trainer_synthetics.py117 # ------------COMMENT
MEDIUM⚡reconstruction/ostec/external/stylegan2/dataset_tool.py24#----------------------------------------------------------------------------COMMENT
MEDIUM⚡reconstruction/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
MEDIUMreconstruction/ostec/external/stylegan2/run_training.py139#----------------------------------------------------------------------------COMMENT
MEDIUM⚡reconstruction/ostec/external/stylegan2/run_training.py189#----------------------------------------------------------------------------STRING
181 more matches not shown…
Over-Commented Block613 hits · 502 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
LOWcpp-package/inspireface/ci/windows/consumer/main.c1#include <inspireface.h>COMMENT
LOWcpp-package/inspireface/ci/windows/consumer/main.cpp1#include <inspireface/inspireface.hpp>COMMENT
LOWcpp-package/inspireface/cpp/test/apple/objc_contract.m1#import <InspireFace/InspireFaceApple.h>COMMENT
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…reface/cpp/test/unit/cpp_api/test_utility_contract.cpp1#include <algorithm>COMMENT
LOW…cpp/test/unit/cpp_api/test_performance_consistency.cpp1#include <algorithm>COMMENT
LOW…face/cpp/test/unit/cpp_api/test_session_face_track.cpp1/**COMMENT
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
LOW…eface/cpp/test/unit/api/test_face_capture_contract.cpp1#include <atomic>COMMENT
LOW…spireface/cpp/test/unit/api/test_c_api_v2_contract.cpp1#include <algorithm>COMMENT
LOW…p/test/unit/api/test_face_result_snapshot_contract.cpp1#include <algorithm>COMMENT
LOW…eface/cpp/test/unit/api/test_image_stream_contract.cpp1#include <array>COMMENT
LOW…_lifecycle/test_resource_pack_validation_lifecycle.cpp1#include <algorithm>COMMENT
LOW…kage/inspireface/cpp/inspireface/component_version.cpp1#include "include/inspireface/component_version.h"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…inspireface/middleware/model_archive/inspire_archive.h1/**COMMENT
LOW…dleware/model_archive/core_archive/microtar/microtar.c21 */COMMENT
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
553 more matches not shown…
Deep Nesting380 hits · 360 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
LOW…nspireface/python/sample_testcase/test_face_capture.py160CODE
LOW…nspireface/python/sample_testcase/test_face_capture.py194CODE
LOWcpp-package/inspireface/python/test/test_utilis.py60CODE
LOWcpp-package/inspireface/python/test/test_utilis.py168CODE
LOW…kage/inspireface/python/inspireface/modules/capture.py431CODE
LOW…/inspireface/python/inspireface/modules/core/native.py344CODE
LOW…spireface/python/inspireface/modules/utils/resource.py217CODE
LOWcpp-package/inspireface/ci/apple/release_archive.py33CODE
LOWcpp-package/inspireface/ci/apple/release_archive.py75CODE
LOWcpp-package/inspireface/ci/pypi/run_published_smoke.py143CODE
LOWcpp-package/inspireface/ci/pypi/verify_inference.py81CODE
LOWcpp-package/inspireface/ci/harmony/package_sdk.py58CODE
LOW…ackage/inspireface/ci/windows/verify_pypi_inference.py21CODE
LOWcpp-package/inspireface/ci/windows/package_sdk.py26CODE
LOW…package/inspireface/ci/windows/verify_unicode_paths.py23CODE
LOWcpp-package/inspireface/ci/windows/verify_python_api.py80CODE
LOW…ce/cpp/inspireface/platform/jni/portable/verify_api.py43CODE
LOW…face/cpp/inspireface/platform/jni/portable/generate.py60CODE
LOW…kage/inspireface/command/apple/package_xcframeworks.py15CODE
LOW…kage/inspireface/command/apple/package_xcframeworks.py46CODE
LOWcpp-package/inspireface/command/apple/binary_info.py10CODE
LOWcpp-package/inspireface/command/apple/build_sdk.py43CODE
LOWpython-package/packaging/pypi/release_artifacts.py22CODE
LOWpython-package/tests/release/test_release_artifacts.py48CODE
LOW…ackage/tests/privateframe/test_cli_self_description.py433CODE
LOW…/tests/privateframe/test_result_document_validation.py43CODE
LOWpython-package/insightface/app/person_analysis.py151CODE
LOWpython-package/insightface/app/person_analysis.py243CODE
LOWpython-package/insightface/app/person_analysis.py288CODE
LOWpython-package/insightface/app/face_analysis.py69CODE
LOWpython-package/insightface/app/face_analysis.py270CODE
LOW…on-package/insightface/app/privateframe/recognition.py595CODE
LOWpython-package/insightface/app/privateframe/config.py29CODE
LOWpython-package/insightface/app/privateframe/config.py54CODE
LOW…on-package/insightface/app/privateframe/base_config.py719CODE
LOW…on-package/insightface/app/privateframe/base_config.py1028CODE
LOWpython-package/insightface/app/privateframe/models.py160CODE
LOW…n-package/insightface/app/privateframe/cli_contract.py303CODE
LOW…ackage/insightface/app/privateframe/artifact_render.py354CODE
LOW…ackage/insightface/app/privateframe/artifact_render.py408CODE
LOW…ackage/insightface/app/privateframe/artifact_render.py656CODE
LOW…ackage/insightface/app/privateframe/artifact_render.py642CODE
LOW…n-package/insightface/app/privateframe/revalidation.py462CODE
LOW…n-package/insightface/app/privateframe/revalidation.py822CODE
LOW…n-package/insightface/app/privateframe/revalidation.py101CODE
LOW…n-package/insightface/app/privateframe/revalidation.py191CODE
LOW…kage/insightface/app/privateframe/endpoint_matching.py81CODE
LOWpython-package/insightface/app/privateframe/cli.py344CODE
LOWpython-package/insightface/app/privateframe/cli.py387CODE
320 more matches not shown…
Excessive Try-Catch Wrapping204 hits · 225 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
LOW⚡cpp-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
LOW…ackage/inspireface/python/sample_image_stream_guard.py65 except Exception as error:CODE
MEDIUM…ackage/inspireface/python/sample_image_stream_guard.py60def expect_invalid(self, operation, message):CODE
LOWcpp-package/inspireface/python/read_nv21.py61 except Exception as e:CODE
LOW…nspireface/python/sample_testcase/test_face_capture.py214 except Exception as error: # pragma: no cover - asserted belowCODE
MEDIUM…nspireface/python/sample_testcase/test_face_capture.py210def run(capture):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…kage/inspireface/python/inspireface/modules/capture.py359 except Exception:CODE
LOW…kage/inspireface/python/inspireface/modules/capture.py398 except Exception:CODE
LOW…kage/inspireface/python/inspireface/modules/capture.py561 except Exception:CODE
MEDIUM…kage/inspireface/python/inspireface/modules/capture.py395def __del__(self):CODE
MEDIUM…kage/inspireface/python/inspireface/modules/capture.py558def __del__(self):CODE
MEDIUM…/inspireface/python/inspireface/modules/inspireface.py1178def __del__(self):CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py450 except Exception:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1181 except Exception:CODE
LOW…spireface/python/inspireface/modules/utils/resource.py183 except Exception as error:CODE
LOW…spireface/python/inspireface/modules/utils/resource.py280 except Exception as error:CODE
LOWcpp-package/inspireface/ci/pypi/run_published_smoke.py189 except Exception as error:CODE
LOW…on-package/insightface/app/privateframe/recognition.py991 except Exception as error:CODE
LOW…on-package/insightface/app/privateframe/recognition.py1050 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/cli.py658 except Exception:CODE
LOWpython-package/insightface/app/privateframe/cli.py703 except Exception:CODE
LOWpython-package/insightface/app/privateframe/cli.py730 except Exception:CODE
LOWpython-package/insightface/app/privateframe/cli.py1045 except Exception as exc: # noqa: BLE001 - diagnostic records every failureCODE
LOWpython-package/insightface/app/privateframe/cli.py1115 except Exception as exc: # noqa: BLE001 - diagnostic records every failureCODE
LOWpython-package/insightface/app/privateframe/cli.py1507 except Exception as exc: # noqa: BLE001 - machine error envelopeCODE
LOWpython-package/insightface/app/privateframe/cli.py1537 except Exception as exc: # noqa: BLE001 - machine error envelopeCODE
LOWpython-package/insightface/app/privateframe/cli.py1550 except Exception as exc: # noqa: BLE001 - machine error envelopeCODE
LOWpython-package/insightface/app/privateframe/cli.py1599 except Exception as exc: # noqa: BLE001CODE
LOW…thon-package/insightface/app/privateframe/streaming.py1337 except Exception:CODE
LOW⚡python-package/insightface/app/privateframe/doctor.py508 except Exception as error:CODE
LOW⚡python-package/insightface/app/privateframe/doctor.py514 except Exception:CODE
LOWpython-package/insightface/app/privateframe/doctor.py303 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py397 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py444 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py592 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py649 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py681 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py687 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py733 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py757 except Exception:CODE
LOWpython-package/insightface/app/privateframe/doctor.py808 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py841 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py1119 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py1196 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py1281 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py1700 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py1912 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py2040 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py2053 except Exception:CODE
LOWpython-package/insightface/app/privateframe/doctor.py2073 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py2090 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py2110 except Exception as error:CODE
LOWpython-package/insightface/app/privateframe/doctor.py2132 except Exception as error:CODE
144 more matches not shown…
Empty Error Handlers44 hits · 220 pts
SeverityFileLineSnippetContext
HIGHcpp-package/inspireface/python/inspireface/__init__.py14except OSError:CODE
HIGH…kage/inspireface/python/inspireface/modules/capture.py398except Exception:CODE
HIGH…kage/inspireface/python/inspireface/modules/capture.py561except Exception:CODE
HIGH…/inspireface/python/inspireface/modules/inspireface.py450except Exception:CODE
HIGH…/inspireface/python/inspireface/modules/inspireface.py1181except Exception:CODE
HIGH…spireface/python/inspireface/modules/utils/resource.py88except FileNotFoundError:CODE
HIGHpython-package/tests/gui/test_privateframe_page.py1381except OSError:CODE
HIGHpython-package/insightface/app/__init__.py7except ImportError:CODE
HIGHpython-package/insightface/app/privateframe/cli.py747except FileNotFoundError:CODE
HIGHpython-package/insightface/app/privateframe/cli.py756except OSError:CODE
HIGHpython-package/insightface/app/privateframe/cli.py707except FileNotFoundError:CODE
HIGHpython-package/insightface/app/privateframe/cli.py693except FileNotFoundError:CODE
HIGHpython-package/insightface/app/privateframe/cli.py734except FileNotFoundError:CODE
HIGHpython-package/insightface/app/privateframe/pipeline.py500except FileNotFoundError:CODE
HIGHpython-package/insightface/app/privateframe/video.py29except OSError:CODE
HIGHpython-package/insightface/app/privateframe/video.py20except OSError:CODE
HIGHpython-package/insightface/app/privateframe/doctor.py514except Exception:CODE
HIGHpython-package/insightface/app/privateframe/doctor.py2053except Exception:CODE
HIGH…n-package/insightface/app/privateframe/packet_cache.py508except FileNotFoundError:CODE
HIGHpython-package/insightface/model_zoo/coreml_cache.py340except FileNotFoundError:CODE
HIGHpython-package/insightface/model_zoo/coreml_cache.py300except FileNotFoundError:CODE
HIGHpython-package/insightface/gui/app.py139except Exception:CODE
HIGHpython-package/insightface/gui/resources.py79except Exception:CODE
HIGHpython-package/insightface/gui/resources.py88except Exception:CODE
HIGHpython-package/insightface/gui/core/theme.py69except Exception:CODE
HIGHpython-package/insightface/gui/core/i18n.py75except Exception:CODE
HIGHpython-package/insightface/gui/core/i18n.py79except Exception:CODE
HIGHpython-package/insightface/gui/core/model_downloads.py212except OSError:CODE
HIGHpython-package/insightface/gui/core/reporting.py757except Exception:CODE
HIGHpython-package/insightface/gui/core/reporting.py516except Exception:CODE
HIGHpython-package/insightface/gui/core/reporting.py539except Exception:CODE
HIGH…hon-package/insightface/gui/pages/privateframe_page.py193except Exception:CODE
HIGHpython-package/insightface/gui/widgets/image_viewer.py143except Exception:CODE
HIGHserver/backend/insightface_server/addon_config.py47except (OSError, IndexError):CODE
HIGHserver/backend/insightface_server/addon_management.py193except TimeoutError:CODE
HIGHserver/backend/insightface_server/app.py197except OSError:CODE
HIGHserver/backend/insightface_server/inference/base.py133except OSError:CODE
HIGHserver/backend/insightface_server/services/rtsp.py628except Exception:CODE
HIGHserver/sdk/python/src/insightface_server/client.py788except (OSError, ValueError):CODE
HIGH…ion/ostec/external/stylegan2/dnnlib/tflib/optimizer.py141except tf.errors.NotFoundError:CODE
HIGH…construction/ostec/external/landmark_detector/utils.py141except:CODE
HIGH…construction/ostec/external/landmark_detector/utils.py396except:CODE
HIGHdetection/retinaface/rcnn/pycocotools/cocoeval.py433except:CODE
HIGHdetection/scrfd/mmdet/models/dense_heads/scrfd_head.py228except:CODE
Structural Annotation Overuse91 hits · 195 pts
SeverityFileLineSnippetContext
LOWcpp-package/inspireface/README.md687# Step 1: Initialize the SDK globally (only needs to be called once per application)COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp19 ////////////////// Step 1: Get detections //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp71 ////////////////// Step 2: First association, with IoU //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp95 ////////////////// Step 3: Second association, using low score dets //////////////////COMMENT
LOW⚡…rack_module/tracker_optional/bytetrack/BYTETracker.cpp159 ////////////////// Step 4: Init new stracks //////////////////COMMENT
LOW⚡…rack_module/tracker_optional/bytetrack/BYTETracker.cpp168 ////////////////// Step 5: Update state //////////////////COMMENT
LOW⚡…/inspireface/command/build_cross_rv1109rv1126_armhf.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…/inspireface/command/build_cross_rv1109rv1126_armhf.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…/inspireface/command/build_cross_rv1109rv1126_armhf.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…/inspireface/command/build_cross_rv1109rv1126_armhf.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…spireface/command/build_wheel_manylinux2014_aarch64.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…spireface/command/build_wheel_manylinux2014_aarch64.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…spireface/command/build_wheel_manylinux2014_aarch64.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…spireface/command/build_wheel_manylinux2014_aarch64.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_ubuntu18.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_ubuntu18.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build_linux_ubuntu18.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_ubuntu18.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda_dev.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda_dev.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda_dev.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda_dev.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_android.sh46 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build_android.sh52 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build_android.sh55 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_android.sh58 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…age/inspireface/command/build_android_rk356x_rk3588.sh76 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…age/inspireface/command/build_android_rk356x_rk3588.sh82 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…age/inspireface/command/build_android_rk356x_rk3588.sh85 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…age/inspireface/command/build_android_rk356x_rk3588.sh88 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…inspireface/command/build_cross_rv1106_armhf_uclibc.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…inspireface/command/build_cross_rv1106_armhf_uclibc.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…inspireface/command/build_cross_rv1106_armhf_uclibc.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…inspireface/command/build_cross_rv1106_armhf_uclibc.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…p-package/inspireface/command/build_wheel_macos_x86.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…p-package/inspireface/command/build_wheel_macos_x86.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…p-package/inspireface/command/build_wheel_macos_x86.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…p-package/inspireface/command/build_wheel_macos_x86.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…package/inspireface/command/build_wheel_macos_arm64.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…package/inspireface/command/build_wheel_macos_arm64.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…package/inspireface/command/build_wheel_macos_arm64.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…package/inspireface/command/build_wheel_macos_arm64.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…e/inspireface/command/build_wheel_manylinux2014_x86.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…e/inspireface/command/build_wheel_manylinux2014_x86.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…e/inspireface/command/build_wheel_manylinux2014_x86.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…e/inspireface/command/build_wheel_manylinux2014_x86.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…pireface/command/build_wheel_manylinux_2_36_aarch64.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…pireface/command/build_wheel_manylinux_2_36_aarch64.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…pireface/command/build_wheel_manylinux_2_36_aarch64.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…pireface/command/build_wheel_manylinux_2_36_aarch64.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…ckage/inspireface/command/build_linux_manylinux2014.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…ckage/inspireface/command/build_linux_manylinux2014.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
31 more matches not shown…
Verbosity Indicators90 hits · 194 pts
SeverityFileLineSnippetContext
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp19 ////////////////// Step 1: Get detections //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp71 ////////////////// Step 2: First association, with IoU //////////////////COMMENT
LOW…rack_module/tracker_optional/bytetrack/BYTETracker.cpp95 ////////////////// Step 3: Second association, using low score dets //////////////////COMMENT
LOW⚡…rack_module/tracker_optional/bytetrack/BYTETracker.cpp159 ////////////////// Step 4: Init new stracks //////////////////COMMENT
LOW⚡…rack_module/tracker_optional/bytetrack/BYTETracker.cpp168 ////////////////// Step 5: Update state //////////////////COMMENT
LOW⚡…/inspireface/command/build_cross_rv1109rv1126_armhf.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…/inspireface/command/build_cross_rv1109rv1126_armhf.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…/inspireface/command/build_cross_rv1109rv1126_armhf.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…/inspireface/command/build_cross_rv1109rv1126_armhf.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…spireface/command/build_wheel_manylinux2014_aarch64.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…spireface/command/build_wheel_manylinux2014_aarch64.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…spireface/command/build_wheel_manylinux2014_aarch64.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…spireface/command/build_wheel_manylinux2014_aarch64.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_ubuntu18.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_ubuntu18.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build_linux_ubuntu18.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_ubuntu18.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda_dev.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda_dev.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda_dev.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda_dev.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_android.sh46 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build_android.sh52 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build_android.sh55 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_android.sh58 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…age/inspireface/command/build_android_rk356x_rk3588.sh76 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…age/inspireface/command/build_android_rk356x_rk3588.sh82 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…age/inspireface/command/build_android_rk356x_rk3588.sh85 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…age/inspireface/command/build_android_rk356x_rk3588.sh88 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…inspireface/command/build_cross_rv1106_armhf_uclibc.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…inspireface/command/build_cross_rv1106_armhf_uclibc.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…inspireface/command/build_cross_rv1106_armhf_uclibc.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…inspireface/command/build_cross_rv1106_armhf_uclibc.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build_linux_cuda.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…p-package/inspireface/command/build_wheel_macos_x86.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…p-package/inspireface/command/build_wheel_macos_x86.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…p-package/inspireface/command/build_wheel_macos_x86.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…p-package/inspireface/command/build_wheel_macos_x86.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…package/inspireface/command/build_wheel_macos_arm64.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…package/inspireface/command/build_wheel_macos_arm64.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…package/inspireface/command/build_wheel_macos_arm64.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…package/inspireface/command/build_wheel_macos_arm64.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡cpp-package/inspireface/command/build.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡cpp-package/inspireface/command/build.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡cpp-package/inspireface/command/build.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…e/inspireface/command/build_wheel_manylinux2014_x86.sh9 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…e/inspireface/command/build_wheel_manylinux2014_x86.sh15 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…e/inspireface/command/build_wheel_manylinux2014_x86.sh18 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…e/inspireface/command/build_wheel_manylinux2014_x86.sh21 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…pireface/command/build_wheel_manylinux_2_36_aarch64.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…pireface/command/build_wheel_manylinux_2_36_aarch64.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…pireface/command/build_wheel_manylinux_2_36_aarch64.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
LOW⚡…pireface/command/build_wheel_manylinux_2_36_aarch64.sh20 # Step 4: Remove the empty 'install' directoryCOMMENT
LOW⚡…ckage/inspireface/command/build_linux_manylinux2014.sh8 # Step 1: Check if the 'install' directory existsCOMMENT
LOW⚡…ckage/inspireface/command/build_linux_manylinux2014.sh14 # Step 2: Delete all other files/folders except 'install'COMMENT
LOW⚡…ckage/inspireface/command/build_linux_manylinux2014.sh17 # Step 3: Move all files from 'install' to the root directoryCOMMENT
30 more matches not shown…
Modern Structural Boilerplate182 hits · 188 pts
SeverityFileLineSnippetContext
LOWweb-demos/src_recognition/arcface_onnx.py13__all__ = [CODE
LOW⚡…/inspireface/python/inspireface/modules/inspireface.py800 def set_enable_track_cost_spend(self, enable: bool) -> None:CODE
LOW⚡…/inspireface/python/inspireface/modules/inspireface.py806 def set_detection_confidence_threshold(self, threshold: float) -> None:CODE
LOW⚡…/inspireface/python/inspireface/modules/inspireface.py828 def set_filter_minimum_face_pixel_size(self, min_size: int = 32) -> None:CODE
LOW⚡…/inspireface/python/inspireface/modules/inspireface.py834 def set_track_mode_smooth_ratio(self, ratio: float = 0.025) -> None:CODE
LOW⚡…/inspireface/python/inspireface/modules/inspireface.py840 def set_track_mode_num_smooth_cache_frame(self, num: int = 15) -> None:CODE
LOW⚡…/inspireface/python/inspireface/modules/inspireface.py846 def set_track_model_detect_interval(self, num: int = 20) -> None:CODE
LOW⚡…/inspireface/python/inspireface/modules/inspireface.py852 def set_landmark_augmentation_num(self, num: int = 1) -> None:CODE
LOW⚡…/inspireface/python/inspireface/modules/inspireface.py858 def set_track_lost_recovery_mode(self, value: bool = False) -> None:CODE
LOW⚡…/inspireface/python/inspireface/modules/inspireface.py2020def set_expansive_hardware_rockchip_dma_heap_path(path: str) -> None:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py817 def set_track_preview_size(self, size: int = 192) -> None:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1850def set_similarity_converter_config(cfg: Dict[str, float]) -> None:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py1988def set_logging_level(level: int) -> None:CODE
LOW…/inspireface/python/inspireface/modules/inspireface.py2047def set_cuda_device_id(device_id: int) -> None:CODE
LOW…spireface/python/inspireface/modules/utils/resource.py24logger = logging.getLogger(__name__)CODE
LOW…spireface/python/inspireface/modules/utils/resource.py68def set_use_oss_download(use_oss: bool) -> None:CODE
LOW…package/insightface_privateframe_bootstrap/__init__.py106__all__ = ["main"]CODE
LOWpython-package/insightface/app/face_analysis.py31__all__ = ["FaceAnalysis"]CODE
LOWpython-package/insightface/app/face_analysis.py33logger = logging.getLogger(__name__)CODE
LOWpython-package/insightface/app/person/__init__.py5__all__ = ['PersonConfig', 'Face', 'Person', 'MatchResult', 'UpdateResult', 'RegistrationResult']CODE
LOW…on-package/insightface/app/privateframe/recognition.py1278__all__ = [CODE
LOW…-package/insightface/app/privateframe/cli_bootstrap.py8__all__ = ["main"]CODE
LOWpython-package/insightface/app/privateframe/config.py527__all__ = [CODE
LOW…on-package/insightface/app/privateframe/base_config.py1331__all__ = [CODE
LOWpython-package/insightface/app/privateframe/models.py534__all__ = [CODE
LOW…n-package/insightface/app/privateframe/cli_contract.py1402__all__ = ["build_describe_payload"]CODE
LOW…ackage/insightface/app/privateframe/artifact_render.py804__all__ = ["RenderTarget", "_identity_should_blur", "render_artifacts"]CODE
LOW…n-package/insightface/app/privateframe/revalidation.py32logger = logging.getLogger(__name__)CODE
LOW…n-package/insightface/app/privateframe/revalidation.py946__all__ = ["LocalReviewer", "finalize_precomputed"]CODE
LOWpython-package/insightface/app/privateframe/__init__.py30__all__ = [CODE
LOW…kage/insightface/app/privateframe/box_stabilization.py298__all__ = ["stabilize_observations"]CODE
LOW…e/insightface/app/privateframe/bidirectional_fusion.py207__all__ = [CODE
LOW…thon-package/insightface/app/privateframe/scene_cut.py288__all__ = ["SceneCutDetector"]CODE
LOW…kage/insightface/app/privateframe/endpoint_matching.py361__all__ = ["find_conflict_groups", "localization_match_settings", "match_endpoint_candidates", "plan_rechecks", "region_CODE
LOW…-package/insightface/app/privateframe/model_catalog.py216__all__ = [CODE
LOWpython-package/insightface/app/privateframe/cli.py1626__all__ = ["command_parser", "main"]CODE
LOWpython-package/insightface/app/privateframe/pipeline.py1164__all__ = [CODE
LOWpython-package/insightface/app/privateframe/geometry.py181__all__ = [CODE
LOWpython-package/insightface/app/privateframe/scan.py201__all__ = ["ScanRunner"]CODE
LOWpython-package/insightface/app/privateframe/tracker.py402__all__ = ["BoxKalman"]CODE
LOW…thon-package/insightface/app/privateframe/artifacts.py112__all__ = [CODE
LOW…thon-package/insightface/app/privateframe/streaming.py65logger = logging.getLogger(__name__)CODE
LOW…thon-package/insightface/app/privateframe/streaming.py5205__all__ = ["ObjectState", "StreamingEngine", "run_stream"]CODE
LOWpython-package/insightface/app/privateframe/roi_flow.py351__all__ = [CODE
LOWpython-package/insightface/app/privateframe/video.py92__all__ = [CODE
LOWpython-package/insightface/app/privateframe/doctor.py2304__all__ = [CODE
LOW…n-package/insightface/app/privateframe/packet_cache.py576__all__ = [CODE
LOW…n-package/insightface/app/privateframe/output_paths.py50__all__ = ["PrivateFrameOutputPaths", "default_output_paths"]CODE
LOWpython-package/insightface/addons/__init__.py6__all__ = ["ADDON_CATALOG", "Liveness", "ensure_addon"]CODE
LOWpython-package/insightface/model_zoo/landmark.py17__all__ = [CODE
LOWpython-package/insightface/model_zoo/face_verifier.py204__all__ = ["FaceVerifier"]CODE
LOW…hon-package/insightface/model_zoo/onnxruntime_utils.py81__all__ = [CODE
LOWpython-package/insightface/model_zoo/arcface_onnx.py15__all__ = [CODE
LOWpython-package/insightface/model_zoo/attribute.py15__all__ = [CODE
LOWpython-package/insightface/model_zoo/model_license.py835__all__ = [CODE
LOWpython-package/insightface/model_zoo/coreml_cache.py825__all__ = [CODE
LOWpython-package/insightface/model_zoo/model_zoo.py44__all__ = ["get_model"]CODE
LOWpython-package/insightface/model_zoo/model_zoo.py46logger = logging.getLogger(__name__)CODE
LOWpython-package/insightface/model_zoo/__init__.py31__all__ = [CODE
LOW…thon-package/insightface/model_zoo/package_manifest.py428__all__ = [CODE
122 more matches not shown…
AI Structural Patterns133 hits · 131 pts
SeverityFileLineSnippetContext
LOW…ckage/inspireface/ci/pypi/tests/test_prepare_wheels.py37CODE
LOWpython-package/insightface/app/privateframe/pipeline.py1015CODE
LOWpython-package/insightface/gui/core/tooltips.py86CODE
LOWpython-package/insightface/gui/core/storage.py248CODE
LOWpython-package/insightface/gui/core/storage.py357CODE
LOWpython-package/insightface/gui/core/storage.py399CODE
LOW…hon-package/insightface/gui/pages/privateframe_page.py236CODE
LOWserver/backend/insightface_server/app.py967CODE
LOWserver/backend/insightface_server/services/rtsp.py827CODE
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
73 more matches not shown…
Self-Referential Comments20 hits · 64 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
MEDIUM⚡cpp-package/inspireface/tools/output_error_table.py17# Define a function to parse the error codes between anchors in a given C header file contentCOMMENT
MEDIUM⚡cpp-package/inspireface/tools/output_error_table.py19 # Define the start and end anchor tagsCOMMENT
MEDIUM…/quick_test_linux_x86_usual_python_native_interface.sh17# 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
MEDIUM…age/inspireface/command/build_android_rk356x_rk3588.sh7 # Define the new main directoriesCOMMENT
MEDIUM…age/inspireface/command/build_android_rk356x_rk3588.sh30 # Create a specific directory for each architecture under the main directoryCOMMENT
MEDIUMcpp-package/inspireface/command/build.sh72# Create the build directory and navigate into itCOMMENT
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.py150 Load image data from an OpenCV image (numpy ndarray). Args: image (np.ndarray): The image STRING
HIGH…/inspireface/python/inspireface/modules/inspireface.py683 Detects faces in the given image and returns a list of FaceInformation objects containing detailed face data. STRING
HIGH…/inspireface/python/inspireface/modules/inspireface.py1284 Launches the InspireFace system with the specified resource directory. Args: model_name (str): the namSTRING
HIGH…/inspireface/python/inspireface/modules/inspireface.py1722 Updates an existing face identity in the feature hub. Args: face_identity (FaceIdentity): The face ideSTRING
HIGH…/inspireface/python/inspireface/modules/inspireface.py1740 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.py1759 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
Cross-Language Confusion12 hits · 55 pts
SeverityFileLineSnippetContext
HIGH…p-package/inspireface/cpp/test/apple/verify_install.py92objc.write_text('@import InspireFace;\nint main() { @autoreleasepool { NSError *error = nil; IFImageStream *s = [[IFImagCODE
HIGH…face/cpp/inspireface/platform/jni/portable/generate.py224 f' if (!value || std::strcmp(value, "{abi}") != 0)',CODE
HIGH⚡python-package/tests/privateframe/test_cli.py540 "!!set {one: null}",CODE
HIGH…ckage/insightface/app/privateframe/config_reference.py348 "streaming": "Frame limits count video frames and time limits use seconds of source video. max_missed_seconds must bCODE
HIGHpython-package/insightface/model_zoo/coreml_cache.py554 exactly ``name``, ``dtype``, and ``shape``. Symbolic, null, zero, andSTRING
HIGHserver/tests/api/test_documentation_contract.py147 assert '"status":"input_rejected","is_live":null,"live_score":null' in result["description"]CODE
HIGHserver/backend/insightface_server/app.py652 is_live=false) and unsuitable input (status=input_rejected, is_live=null,STRING
HIGHserver/backend/insightface_server/app.py653 live_score=null); neither is a detection error. An omitted liveness fieldSTRING
HIGHserver/backend/insightface_server/api/responses.py65 Unsuitable input: {"status":"input_rejected","is_live":null,"live_score":null}.STRING
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
Redundant / Tautological Comments18 hits · 28 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.py1300 # Check if ModelScope is available when neededCOMMENT
LOW…/inspireface/python/inspireface/modules/inspireface.py1331 # Check if ModelScope is available when neededCOMMENT
LOW…/inspireface/python/inspireface/modules/inspireface.py1353 # Check if ModelScope is available when neededCOMMENT
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
LOW…age/inspireface/command/build_android_rk356x_rk3588.sh10 # Check if the base path existsCOMMENT
LOW…inspireface/command/build_cross_rv1106_armhf_uclibc.sh40# Check if MNN-2.3.0 directory already existsCOMMENT
LOW…package/inspireface/command/download_models_general.sh49# Check if argument is providedCOMMENT
LOWcpp-package/inspireface/command/build_linux_tensorrt.sh62 # Check if it is UbuntuCOMMENT
LOW⚡python-package/setup.py123# Check if running on macOS (Darwin)COMMENT
LOW⚡python-package/setup.py127 # Check if Homebrew is installedCOMMENT
LOW⚡python-package/setup.py136 # 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
AI Slop Vocabulary6 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUM…ckage/inspireface/python/sample_python_api_testcase.py2"""Convenience entry point for the comprehensive Python API sample suite."""STRING
MEDIUMcpp-package/inspireface/python/sample_testcase/run.py1"""Runner for the comprehensive InspireFace Python API sample testcase suite."""STRING
MEDIUM…kage/insightface/app/privateframe/box_stabilization.py233 """Return observations with robust zero-phase box stabilization applied.STRING
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
Overly Generic Function Names6 hits · 6 pts
SeverityFileLineSnippetContext
LOW…n-package/tests/gui/test_global_model_configuration.py485 def run_task(self, title, fn, on_result=None, **_kwargs):CODE
LOW…n-package/tests/gui/test_global_model_configuration.py566 def run_task(self, title, fn, on_result=None, **kwargs):CODE
LOWpython-package/tests/gui/test_privateframe_page.py299 def run_task(CODE
LOWpython-package/insightface/gui/main_window.py751 def run_task(CODE
LOW⚡…ackage/insightface/gui/dialogs/model_manager_dialog.py56 def run_task(CODE
LOWpython-package/insightface/gui/pages/base.py101 def run_task(CODE
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
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.py62 image_path.write_bytes(b"placeholder")CODE