AI Slop Code RIsk Monitor

deepfakes/faceswap

Deepfakes Software For All

11.9 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for deepfakes/faceswap, a Python project with 57,574 GitHub stars. SynthScan examined 98,865 lines of code across 371 source files, recording 832 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 11.9 (Moderate 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.

11.9
Adjusted Signal
11.9
Raw Pattern Score
100%
Time Factor
2026-08-05
Last Push
57.6K
Stars
Python
Language
98.9K
Lines of Code
371
Files
832
Pattern Hits
2026-10-12
Scan Date
0.20
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 11.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 13.0/100 · LOW

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

Agent Over-Engineering Ratio 33.2/100 · MEDIUM

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

PR Review Velocity Impact 47.1/100 · MEDIUM

Which changes need focused human review? 832 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 4HIGH 72MEDIUM 15LOW 741

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 832 distinct pattern matches across 16 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.

Cross-File Repetition64 hits · 320 pts
SeverityFileLineSnippetContext
HIGHtools/sort/sort.py0the entry point for triggering the training process. should only be called from :class:`lib.cli.launcher.scriptexecutor`STRING
HIGHtools/mask/mask.py0the entry point for triggering the training process. should only be called from :class:`lib.cli.launcher.scriptexecutor`STRING
HIGHscripts/train.py0the entry point for triggering the training process. should only be called from :class:`lib.cli.launcher.scriptexecutor`STRING
HIGHplugins/train/model/phaze_a_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/train/model/realface_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/train/model/dfl_sae_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/train/model/dfaker_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/train/model/unbalanced_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/train/model/dlight_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/train/model/villain_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/train/model/original_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/train/model/dfl_h128_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/detect/retinaface_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/detect/s3fd_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/detect/mtcnn_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/detect/cv2_dnn_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/identity/vggface2_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/identity/t_face_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/align/fan_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/align/hrnet_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/mask/unet_dfl_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/mask/custom_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/mask/bisenet_fp_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/mask/vgg_obstructed_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/mask/vgg_clear_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/color/color_transfer_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/color/match_hist_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/color/manual_balance_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/writer/patch_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/writer/pillow_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/writer/ffmpeg_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/writer/gif_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/writer/opencv_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/mask/mask_blend_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/convert/scaling/sharpen_defaults.py0the default options for the faceswap sharpen scaling plugin. defaults files should be named `<plugin_name>_defaults.py` STRING
HIGHplugins/extract/detect/retinaface.py0run model to get predictions parameters ---------- batch a batch of images ready to feed the model returns ------- the bSTRING
HIGHplugins/extract/detect/cv2_dnn.py0run model to get predictions parameters ---------- batch a batch of images ready to feed the model returns ------- the bSTRING
HIGHplugins/extract/detect/s3fd.py0run model to get predictions parameters ---------- batch a batch of images ready to feed the model returns ------- the bSTRING
HIGHplugins/extract/detect/mtcnn.py0run model to get predictions parameters ---------- batch a batch of images ready to feed the model returns ------- the bSTRING
HIGHplugins/extract/identity/vggface2.py0format the detected faces for prediction parameters ---------- batch the batch of aligned faces in the correct format foSTRING
HIGHplugins/extract/identity/t_face.py0format the detected faces for prediction parameters ---------- batch the batch of aligned faces in the correct format foSTRING
HIGHplugins/extract/mask/bisenet_fp.py0format the detected faces for prediction parameters ---------- batch the batch of aligned faces in the correct format foSTRING
HIGHplugins/extract/mask/vgg_obstructed.py0format the detected faces for prediction parameters ---------- batch the batch of aligned faces in the correct format foSTRING
HIGHplugins/extract/mask/vgg_clear.py0format the detected faces for prediction parameters ---------- batch the batch of aligned faces in the correct format foSTRING
HIGHplugins/extract/align/hrnet.py0format the roi faces detection boxes for prediction parameters ---------- batch the batch of face detection bounding boxSTRING
HIGHplugins/extract/align/cv2_dnn.py0format the roi faces detection boxes for prediction parameters ---------- batch the batch of face detection bounding boxSTRING
HIGHplugins/extract/align/fan.py0format the roi faces detection boxes for prediction parameters ---------- batch the batch of face detection bounding boxSTRING
HIGHplugins/extract/align/hrnet.py0predict the 68 point landmarks parameters ---------- feed the batch to feed into the aligner returns ------- the predictSTRING
HIGHplugins/extract/align/fan.py0predict the 68 point landmarks parameters ---------- feed the batch to feed into the aligner returns ------- the predictSTRING
HIGHplugins/extract/align/cv2_dnn.py0predict the 68 point landmarks parameters ---------- feed the batch to feed into the aligner returns ------- the predictSTRING
HIGHplugins/extract/mask/bisenet_fp.py0neural network to process face image into a segmentation mask of the faceSTRING
HIGHplugins/extract/mask/vgg_obstructed.py0neural network to process face image into a segmentation mask of the faceSTRING
HIGHplugins/extract/mask/unet_dfl.py0neural network to process face image into a segmentation mask of the faceSTRING
HIGHplugins/extract/mask/vgg_clear.py0neural network to process face image into a segmentation mask of the faceSTRING
HIGHplugins/extract/mask/bisenet_fp.py0get the masks from the model parameters ---------- batch the batch to feed into the masker returns ------- the predictedSTRING
HIGHplugins/extract/mask/vgg_obstructed.py0get the masks from the model parameters ---------- batch the batch to feed into the masker returns ------- the predictedSTRING
HIGHplugins/extract/mask/unet_dfl.py0get the masks from the model parameters ---------- batch the batch to feed into the masker returns ------- the predictedSTRING
HIGHplugins/extract/mask/vgg_clear.py0get the masks from the model parameters ---------- batch the batch to feed into the masker returns ------- the predictedSTRING
HIGHtests/lib/model/losses/loss_test.py0tests for faceswap feature losses. adapted from keras tests.STRING
HIGHtests/lib/model/losses/perceptual_loss_test.py0tests for faceswap feature losses. adapted from keras tests.STRING
4 more matches not shown…
Modern Structural Boilerplate271 hits · 272 pts
SeverityFileLineSnippetContext
LOWsetup.py27logger = logging.getLogger(__name__)CODE
LOWsetup.py88 def set_backend(self, backend: T.Literal["nvidia", "apple_silicon", "cpu", "rocm"]) -> None:CODE
LOWsetup.py99 def set_requirements(self, requirements: str) -> None:CODE
LOWsetup.py216 def set_config(self) -> None:CODE
LOWupdate_deps.py14logger = logging.getLogger(__name__)CODE
LOWtools/sort/info_loader.py19logger = logging.getLogger(__name__)CODE
LOWtools/sort/info_loader.py181 def update_png_header(self, filename: str, alignments: PNGAlignments) -> None:CODE
LOWtools/sort/sort.py24logger = logging.getLogger(__name__)CODE
LOWtools/sort/sort_methods_aligned.py22logger = logging.getLogger(__name__)CODE
LOWtools/sort/sort_methods.py32logger = logging.getLogger(__name__)CODE
LOWtools/mask/mask.py26logger = logging.getLogger(__name__)CODE
LOWtools/mask/mask_import.py27logger = logging.getLogger(__name__)CODE
LOWtools/mask/loader.py20logger = logging.getLogger(__name__)CODE
LOWtools/mask/mask_output.py27logger = logging.getLogger(__name__)CODE
LOWtools/mask/mask_generate.py25logger = logging.getLogger(__name__)CODE
LOWtools/mask/mask_generate.py147 def _update_from_face(self, media: FrameFaces) -> None:CODE
LOWtools/mask/mask_generate.py172 def _update_from_frame(self, media: FrameFaces) -> None:CODE
LOWtools/effmpeg/effmpeg.py23logger = logging.getLogger(__name__)CODE
LOWtools/effmpeg/effmpeg.py157 def _set_output(self) -> None:CODE
LOWtools/effmpeg/effmpeg.py168 def _set_ref_video(self) -> None:CODE
LOWtools/effmpeg/effmpeg.py207 def _set_times(self) -> None:CODE
LOWtools/effmpeg/effmpeg.py216 def _set_fps(self) -> None:CODE
LOWtools/manual/globals.py20logger = logging.getLogger(__name__)CODE
LOWtools/manual/globals.py232 def set_face_index(self, index: int) -> None:CODE
LOWtools/manual/globals.py244 def set_frame_count(self, count: int) -> None:CODE
LOWtools/manual/globals.py256 def set_current_frame(self, image: np.ndarray, filename: str) -> None:CODE
LOWtools/manual/globals.py277 def set_frame_display_dims(self, width: int, height: int) -> None:CODE
LOWtools/manual/globals.py300 def set_zoomed(self, state: bool) -> None:CODE
LOWtools/manual/manual.py34logger = logging.getLogger(__name__)CODE
LOWtools/manual/manual.py289 def _set_initial_layout(self) -> None:CODE
LOWtools/manual/manual.py397 def _set_tk_callbacks(self) -> None:CODE
LOWtools/manual/manual.py413 def _update_options(self, *args) -> None: # pylint:disable=unused-argumentCODE
LOWtools/manual/manual.py539 def set_normalization_method(self, method: T.Literal["none", "clahe", "hist", "mean"]) -> None:CODE
LOWtools/manual/thumbnails.py24logger = logging.getLogger(__name__)CODE
LOWtools/manual/thumbnails.py220 def _set_thumbnail(self, filename: str, frame: np.ndarray, frame_index: int) -> None:CODE
LOWtools/manual/detected_faces.py28logger = logging.getLogger(__name__)CODE
LOWtools/manual/face_viewer/viewport.py22logger = logging.getLogger(__name__)CODE
LOWtools/manual/face_viewer/viewport.py155 def _update_viewport(self, refresh_annotations: bool) -> None:CODE
LOWtools/manual/face_viewer/viewport.py741 def update_mask(self, mask: np.ndarray | None) -> None:CODE
LOWtools/manual/face_viewer/frame.py29logger = logging.getLogger(__name__)CODE
LOWtools/manual/face_viewer/frame.py96 def _update_viewport(self, event: tk.Event) -> None: # pylint:disable=unused-argumentCODE
LOWtools/manual/face_viewer/frame.py136 def set_annotation_display(self, key: str) -> None:CODE
LOWtools/manual/face_viewer/frame.py385 def _update_mask_type(self) -> None:CODE
LOWtools/manual/face_viewer/frame.py446 def _update_mesh_color(self) -> None:CODE
LOWtools/manual/face_viewer/frame.py459 def _update_box_color(self) -> None:CODE
LOWtools/manual/face_viewer/interact.py18logger = logging.getLogger(__name__)CODE
LOWtools/manual/face_viewer/interact.py271 def _set_active_objects(self) -> None:CODE
LOWtools/manual/face_viewer/interact.py346 def _update_on_edit(self) -> None:CODE
LOWtools/manual/face_viewer/interact.py355 def _update_face(self) -> None:CODE
LOWtools/manual/frame_viewer/control.py15logger = logging.getLogger(__name__)CODE
LOWtools/manual/frame_viewer/frame.py20logger = logging.getLogger(__name__)CODE
LOWtools/manual/frame_viewer/editor/mask.py168 def update_annotation(self) -> None:CODE
LOWtools/manual/frame_viewer/editor/mask.py192 def _set_face_meta_data(self, mask: align.Mask, face_index: int) -> None:CODE
LOWtools/manual/frame_viewer/editor/mask.py389 def _update_roi_box(self, mask: align.Mask, face_index: int, color: str) -> None:CODE
LOWtools/manual/frame_viewer/editor/mask.py417 def _update_cursor(self, event: tk.Event) -> None:CODE
LOWtools/manual/frame_viewer/editor/_base.py14logger = logging.getLogger(__name__)CODE
LOWtools/model/model.py26logger = logging.getLogger(__name__)CODE
LOWtools/preview/preview.py38logger = logging.getLogger(__name__)CODE
LOWtools/preview/preview.py195 def set_busy(self) -> None:CODE
LOWtools/preview/preview.py241 def set_needs_patch(self) -> None:CODE
211 more matches not shown…
Unused Imports241 hits · 241 pts
SeverityFileLineSnippetContext
LOWsetup.py4CODE
LOWsetup.py25CODE
LOWtools/sort/info_loader.py2CODE
LOWtools/sort/sort.py3CODE
LOWtools/sort/sort_methods_aligned.py5CODE
LOWtools/sort/sort_methods.py7CODE
LOWtools/mask/mask.py3CODE
LOWtools/mask/mask.py23CODE
LOWtools/mask/mask_import.py3CODE
LOWtools/mask/loader.py4CODE
LOWtools/mask/mask_output.py3CODE
LOWtools/mask/mask_generate.py3CODE
LOWtools/mask/mask_generate.py20CODE
LOWtools/mask/mask_generate.py21CODE
LOWtools/manual/globals.py3CODE
LOWtools/manual/manual.py3CODE
LOWtools/manual/thumbnails.py3CODE
LOWtools/manual/detected_faces.py5CODE
LOWtools/manual/face_viewer/viewport.py3CODE
LOWtools/manual/face_viewer/frame.py3CODE
LOWtools/manual/face_viewer/interact.py3CODE
LOWtools/manual/frame_viewer/frame.py17CODE
LOWtools/manual/frame_viewer/frame.py17CODE
LOWtools/manual/frame_viewer/frame.py17CODE
LOWtools/manual/frame_viewer/frame.py17CODE
LOWtools/manual/frame_viewer/frame.py17CODE
LOWtools/manual/frame_viewer/frame.py17CODE
LOWtools/manual/frame_viewer/editor/mask.py3CODE
LOWtools/manual/frame_viewer/editor/__init__.py4CODE
LOWtools/manual/frame_viewer/editor/__init__.py5CODE
LOWtools/manual/frame_viewer/editor/__init__.py6CODE
LOWtools/manual/frame_viewer/editor/__init__.py7CODE
LOWtools/manual/frame_viewer/editor/__init__.py7CODE
LOWtools/manual/frame_viewer/editor/__init__.py8CODE
LOWtools/model/model.py3CODE
LOWtools/model/model.py18CODE
LOWtools/model/model.py18CODE
LOWtools/preview/preview.py3CODE
LOWtools/preview/viewer.py3CODE
LOWtools/preview/control_panels.py3CODE
LOWtools/alignments/media.py3CODE
LOWtools/alignments/alignments.py14CODE
LOWtools/alignments/alignments.py14CODE
LOWtools/alignments/alignments.py14CODE
LOWtools/alignments/alignments.py15CODE
LOWtools/alignments/alignments.py15CODE
LOWtools/alignments/alignments.py15CODE
LOWtools/alignments/alignments.py16CODE
LOWtools/alignments/alignments.py16CODE
LOWtools/alignments/jobs_frames.py3CODE
LOWtools/alignments/jobs.py3CODE
LOWtools/alignments/jobs_faces.py3CODE
LOWplugins/plugin_loader.py3CODE
LOWplugins/train/model/phaze_a.py5CODE
LOWplugins/train/model/_base/io.py11CODE
LOWplugins/train/model/_base/__init__.py4CODE
LOWplugins/train/model/_base/__init__.py4CODE
LOWplugins/train/model/_base/model.py6CODE
LOWplugins/train/model/_base/settings.py12CODE
LOWplugins/train/model/_base/settings.py25CODE
181 more matches not shown…
Hyper-Verbose Identifiers114 hits · 115 pts
SeverityFileLineSnippetContext
LOWtools/sort/sort_methods.py167 def _binning_linear_threshold(self, units: str = "", multiplier: int = 1) -> list[list[str]]:CODE
LOWtools/mask/mask_import.py146 def _file_list_to_frame_number(self, file_list: list[str]) -> dict[int, str]:CODE
LOWtools/manual/globals.py186 def var_update_active_viewport(self) -> tk.BooleanVar:CODE
LOWtools/manual/face_viewer/frame.py394 def _bind_mouse_wheel_scrolling(self) -> None:CODE
LOWtools/manual/face_viewer/frame.py734 def transport_index_from_frame(self, frame_index: int) -> int | None:CODE
LOWtools/manual/frame_viewer/control.py58 def _update_total_frame_count(self, *args): # pylint:disable=unused-argumentCODE
LOWtools/manual/frame_viewer/frame.py255 def _add_filter_threshold_slider(self, frame):CODE
LOWtools/manual/frame_viewer/frame.py455 def _set_selected_action_tkvar(self):CODE
LOWtools/manual/frame_viewer/frame.py503 def _disable_enable_copy_buttons(self, *args): # pylint:disable=unused-argumentCODE
LOWtools/manual/frame_viewer/frame.py516 def _disable_enable_reload_button(self, *args): # pylint:disable=unused-argumentCODE
LOWtools/manual/frame_viewer/frame.py595 def _display_optional_buttons(self, *args): # pylint:disable=unused-argumentCODE
LOWtools/manual/frame_viewer/editor/mask.py138 def _set_tk_mask_change_callback(self) -> tk.StringVar:CODE
LOWtools/manual/frame_viewer/editor/mask.py144 def _set_tk_cursor_shape_change_callback(self) -> tk.StringVar:CODE
LOWtools/manual/frame_viewer/editor/mask.py332 def _update_mask_image_zoomed(self,CODE
LOWtools/manual/frame_viewer/editor/mask.py355 def _update_mask_image_full_frame(self,CODE
LOWtools/manual/frame_viewer/editor/_base.py576 def _add_annotation_format_controls(self):CODE
LOWtools/manual/frame_viewer/editor/landmarks.py211 def _update_cursor_point_mode(self, item_id):CODE
LOWtools/manual/frame_viewer/editor/landmarks.py234 def _update_cursor_select_mode(self, event):CODE
LOWtools/manual/frame_viewer/editor/landmarks.py337 def _snap_selection_to_points(self):CODE
LOWtools/manual/frame_viewer/editor/bounding_box.py116 def _update_anchor_annotation(self, face_index, bounding_box, color):CODE
LOWtools/manual/frame_viewer/editor/bounding_box.py202 def _check_cursor_bounding_box(self, event):CODE
LOWtools/manual/frame_viewer/editor/extract_box.py72 def _update_anchor_annotation(self, face_index, extract_box, color):CODE
LOWtools/preview/preview.py522 def _generate_converter_arguments(arguments: Namespace,CODE
LOWtools/preview/preview.py597 def _update_converter_arguments(self) -> None:CODE
LOWtools/preview/control_panels.py359 def _get_control_panel_options(self,CODE
LOWtools/alignments/alignments.py70 def _get_alignments_locations(self) -> dict[str, list[str | None]]:CODE
LOWplugins/plugin_loader.py267 def get_available_convert_plugins(convert_category: str, add_none: bool = True) -> list[str]:CODE
LOWplugins/train/model/phaze_a.py321 def _validate_encoder_architecture(self) -> None:CODE
LOWplugins/train/model/realface.py61 def get_dense_width_upscalers_numbers(self):CODE
LOWplugins/train/model/_base/io.py124 def multiple_models_in_folder(self) -> list[str] | None:CODE
LOWplugins/train/model/_base/io.py585 def _get_optimizer_and_group_ids(self) -> tuple[K_Optimizer,CODE
LOWplugins/train/model/_base/settings.py83 def _set_keras_mixed_precision(cls, enable: bool) -> None:CODE
LOWplugins/train/model/_base/settings.py125 def _get_mixed_precision_layers(self, layers: list[dict]) -> list[str]:CODE
LOWplugins/train/model/_base/settings.py190 def get_mixed_precision_layers(self,CODE
LOWplugins/train/model/_base/inference.py62 def _get_valid_inputs_for_layer(self, layer) -> list[keras.Layer]:CODE
LOWplugins/train/model/_base/state.py169 def add_mixed_precision_layers(self, layers: list[str]) -> None:CODE
LOWplugins/train/trainer/distributed.py119 def _handle_torch_gpu_mismatch_warning(CODE
LOWplugins/convert/writer/pillow.py37 def _check_transparency_format(self) -> None:CODE
LOWplugins/convert/writer/opencv.py38 def _check_transparency_format(self) -> None:CODE
LOWtests/tools/preview/viewer_test.py47 def get_faces_display_instance(self, columns: int = 5, face_size: int = 256) -> FacesDisplay:CODE
LOWtests/tools/preview/viewer_test.py111 def test_set_display_dimensions(self) -> None:CODE
LOWtests/tools/preview/viewer_test.py310 def test__crop_destination_faces(self,CODE
LOWtests/tools/alignments/media_test.py802 def test_get_roi_size_for_frame(self,CODE
LOWtests/lib/utils_test.py353def fixture_get_model_instance(monkeypatch: pytest.MonkeyPatch,CODE
LOWtests/lib/utils_test.py387def test_get_model_model_filename_input(CODE
LOWtests/lib/utils_test.py410def test_get_model_attributes(get_model_instance: GetModel) -> None:CODE
LOWtests/lib/utils_test.py426def test_get_model_properties(get_model_instance: GetModel) -> None:CODE
LOWtests/lib/utils_test.py486def test_get_model__download_model(mocker: pytest_mock.MockerFixture,CODE
LOWtests/lib/utils_test.py519def test_get_model__write_zipfile(mocker: pytest_mock.MockerFixture,CODE
LOWtests/lib/utils_test.py555def test_get_model__unzip_model(mocker: pytest_mock.MockerFixture,CODE
LOWtests/lib/utils_test.py578def test_get_model__write_model(mocker: pytest_mock.MockerFixture,CODE
LOWtests/lib/training/data_augmentation_test.py105def test_constants_get_transform(config: dict[str, T.Any],CODE
LOWtests/lib/training/data_augmentation_test.py123def test_constants_get_warp_to_landmarks(size: int, batch_size: int) -> None:CODE
LOWtests/lib/training/data_augmentation_test.py196def test_constants_from_config(size: int,CODE
LOWtests/lib/training/data_augmentation_test.py230def test_image_augmentation_init(size: int,CODE
LOWtests/lib/training/data_augmentation_test.py250def test_image_augmentation_random_lab(size: int,CODE
LOWtests/lib/training/data_augmentation_test.py271def test_image_augmentation_random_clahe(size: int, # pylint:disable=too-many-localsCODE
LOWtests/lib/training/data_augmentation_test.py322def test_image_augmentation_color_adjust(size: int,CODE
LOWtests/lib/training/data_augmentation_test.py347def test_image_augmentation_transform(size: int,CODE
LOWtests/lib/training/data_augmentation_test.py392def test_image_augmentation_random_flip(size: int,CODE
54 more matches not shown…
Deep Nesting49 hits · 49 pts
SeverityFileLineSnippetContext
LOWsetup.py735CODE
LOWtools/effmpeg/effmpeg.py91CODE
LOWtools/effmpeg/effmpeg.py216CODE
LOWtools/effmpeg/effmpeg.py365CODE
LOWtools/effmpeg/effmpeg.py465CODE
LOWtools/effmpeg/effmpeg.py483CODE
LOWtools/manual/detected_faces.py508CODE
LOWtools/manual/detected_faces.py548CODE
LOWtools/manual/face_viewer/viewport.py155CODE
LOWtools/manual/frame_viewer/frame.py563CODE
LOWtools/manual/frame_viewer/frame.py595CODE
LOWtools/preview/control_panels.py460CODE
LOWtools/preview/control_panels.py617CODE
LOWtools/alignments/alignments.py157CODE
LOWtools/alignments/jobs_faces.py118CODE
LOWtools/alignments/jobs_faces.py422CODE
LOWplugins/plugin_loader.py22CODE
LOWplugins/train/model/phaze_a.py215CODE
LOWplugins/train/model/_base/io.py450CODE
LOWplugins/extract/detect/retinaface.py67CODE
LOWplugins/extract/align/hrnet.py553CODE
LOWplugins/extract/align/hrnet.py618CODE
LOWplugins/convert/writer/patch.py129CODE
LOWtests/utils.py81CODE
LOWtests/lib/config/ini_test.py210CODE
LOWtests/lib/model/layers_test.py21CODE
LOWscripts/extract.py267CODE
LOWscripts/extract.py1001CODE
LOWlib/utils.py775CODE
LOWlib/serializer.py264CODE
LOWlib/serializer.py302CODE
LOWlib/video.py787CODE
LOWlib/image.py241CODE
LOWlib/config/config.py229CODE
LOWlib/config/config.py142CODE
LOWlib/config/objects.py109CODE
LOWlib/training/tensorboard.py197CODE
LOWlib/system/ml_libs.py547CODE
LOWlib/align/aligned_face.py303CODE
LOWlib/gui/options.py349CODE
LOWlib/gui/wrapper.py676CODE
LOWlib/gui/display_analysis.py331CODE
LOWlib/gui/menu.py532CODE
LOWlib/gui/control_helper.py359CODE
LOWlib/gui/control_helper.py1123CODE
LOWlib/gui/control_helper.py1419CODE
LOWlib/gui/analysis/event_reader.py559CODE
LOWlib/model/optimizers/adabelief.py160CODE
LOWlib/gpu_stats/rocm.py332CODE
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHsetup.py209except ValueError:CODE
HIGHtools/effmpeg/effmpeg.py508except KeyboardInterrupt:CODE
HIGHtests/lib/gui/stats/event_reader_test.py301except PermissionError:CODE
HIGHlib/cli/launcher.py198except SystemExit:CODE
HIGHlib/gui/display_analysis.py503except tk.TclError:CODE
HIGHlib/gui/custom_widgets.py364except AttributeError:CODE
HIGHlib/infer/plugin_utils.py146except AttributeError:CODE
Excessive Try-Catch Wrapping30 hits · 30 pts
SeverityFileLineSnippetContext
LOWtools/sort/sort_methods.py778 except Exception:CODE
LOWplugins/plugin_loader.py45 except Exception: # pylint:disable=broad-exceptCODE
LOWplugins/convert/writer/patch.py152 except Exception as err: # pylint:disable=broad-exceptCODE
LOWplugins/convert/writer/pillow.py85 except Exception as err: # pylint:disable=broad-exceptCODE
LOWplugins/convert/writer/opencv.py84 except Exception as err: # pylint:disable=broad-exceptCODE
LOWscripts/train.py266 except Exception as err:CODE
LOWscripts/train.py524 except Exception as err:CODE
LOWscripts/extract.py318 except Exception:CODE
LOWscripts/extract.py338 except Exception:CODE
LOWlib/convert.py190 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/logger.py113 except Exception: # pylint:disable=broad-exceptCODE
LOWlib/logger.py558 except Exception: # pylint:disable=broad-exceptCODE
LOWlib/utils.py771 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/serializer.py140 except Exception as err:CODE
LOWlib/serializer.py168 except Exception as err:CODE
LOWlib/image.py145 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/image.py1361 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/multithreading.py154 except Exception: # pylint:disable=broad-exceptCODE
LOWlib/multithreading.py341 except Exception:CODE
LOWlib/cli/launcher.py200 except Exception: # pylint:disable=broad-exceptCODE
LOWlib/system/sysinfo.py151 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/system/sysinfo.py237 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/gui/menu.py264 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/gui/utils/misc.py76 except Exception: # pylint:disable=broad-exceptCODE
LOWlib/gui/utils/image.py363 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/model/layers.py763 except Exception as e:CODE
LOWlib/infer/plugin_utils.py161 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/gpu_stats/rocm.py355 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/gpu_stats/nvidia.py56 except Exception as err: # pylint:disable=broad-exceptCODE
LOWlib/gpu_stats/apple_silicon.py73 except Exception as err: # pylint:disable=broad-exceptCODE
Hallucination Indicators4 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALtools/manual/detected_faces.py510 :attr:`~tools.manual.manual.TkGlobals.var_filter_mode.get()`."""STRING
CRITICALtools/manual/detected_faces.py550 :attr:`~tools.manual.manual.TkGlobals.var_filter_mode.get()`. """STRING
CRITICALtools/preview/control_panels.py243 "color": app._patch.converter.cli_arguments.color_adjustment.replace("-", "_"),CODE
CRITICALtools/preview/control_panels.py244 "mask_type": app._patch.converter.cli_arguments.mask_type.replace("-", "_"),CODE
AI Structural Patterns23 hits · 23 pts
SeverityFileLineSnippetContext
LOWplugins/extract/detect/retinaface.py660CODE
LOWplugins/extract/align/hrnet.py282CODE
LOWplugins/extract/align/hrnet.py362CODE
LOWplugins/extract/align/hrnet.py428CODE
LOWplugins/extract/align/fan.py192CODE
LOWplugins/extract/mask/bisenet_fp.py224CODE
LOWplugins/extract/mask/bisenet_fp.py402CODE
LOWscripts/fs_media.py204CODE
LOWlib/align/aligned_face.py137CODE
LOWlib/align/detected_face.py55CODE
LOWlib/align/detected_face.py414CODE
LOWlib/gui/control_helper.py153CODE
LOWlib/gui/control_helper.py544CODE
LOWlib/model/normalization.py183CODE
LOWlib/model/normalization.py413CODE
LOWlib/model/normalization.py687CODE
LOWlib/model/losses/feature_loss.py290CODE
LOWlib/model/losses/flip.py81CODE
LOWlib/model/optimizers/keras_legacy.py131CODE
LOWlib/model/optimizers/adabelief.py83CODE
LOWlib/model/networks/clip.py498CODE
LOWlib/model/networks/clip.py538CODE
LOWlib/infer/objects.py753CODE
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUM.install/macos/faceswap_setup_macos.sh444 # Create a shortcut to launch into the GUICOMMENT
MEDIUM.install/macos/faceswap_setup_macos.sh455 # Create a simple .app wrapper to launch GUICOMMENT
MEDIUM.install/linux/faceswap_setup_x64.sh459 # Create a shortcut to launch into the GUICOMMENT
MEDIUM.install/linux/faceswap_setup_x64.sh469 # Create a shell script to launch the GUI and add a desktop shortcutCOMMENT
MEDIUMtools/manual/frame_viewer/editor/mask.py250 # Create a bounding box rectangle ROICOMMENT
MEDIUMlib/gui/theme.py370 # Create the elements with the new imagesCOMMENT
MEDIUMlib/gui/custom_widgets.py318 # Create a new Tcl command whose name is the widget's path name, andCOMMENT
AI Slop Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM.install/macos/faceswap_setup_macos.sh259 # Options pertaining to additional apps that are requiredCOMMENT
MEDIUM.install/macos/faceswap_setup_macos.sh270 # Options pertaining to the installation of condaCOMMENT
MEDIUM.install/macos/faceswap_setup_macos.sh305 # Options pertaining to the installation of faceswapCOMMENT
MEDIUM.install/linux/faceswap_setup_x64.sh276 # Options pertaining to the installation of condaCOMMENT
MEDIUM.install/linux/faceswap_setup_x64.sh309 # Options pertaining to the installation of faceswapCOMMENT
MEDIUMplugins/convert/color/color_transfer.py118 # space, being sure to utilize the 8-bit unsigned integer dataCOMMENT
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOW.install/macos/faceswap_setup_macos.sh208 # Check if conda is in PATHCOMMENT
LOW.install/macos/faceswap_setup_macos.sh392 # Check if an environment with the given name existsCOMMENT
LOW.install/linux/faceswap_setup_x64.sh226 # Check if conda is in PATHCOMMENT
LOW.install/linux/faceswap_setup_x64.sh399 # Check if an environment with the given name existsCOMMENT
LOWtools/sort/sort.py236 # Check if non-dissimilarity sort method and group method are not the sameCOMMENT
LOWlib/utils.py77 # Check if environment variable is set, if so use thatCOMMENT
LOWlib/training/preview_tk.py925 if not self._initialized: # Set initialized to True for GUICODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWplugins/extract/detect/mtcnn.py141# found atCOMMENT
LOWplugins/extract/mask/bisenet_fp.py161# Permission is hereby granted, free of charge, to any person obtaining a copyCOMMENT
LOWdocs/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOW.github/workflows/pytest.yml41 steps:COMMENT
LOWlib/model/optimizers/lion.py1#! /usr/env/bin/python3COMMENT
LOWlib/model/optimizers/adabelief.py1#! /usr/env/bin/python3COMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHlib/video.py732 self._graph.push(frame.reformat(format=vid.pix_fmt))CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMlib/model/optimizers/lion.py16# ==============================================================================COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMplugins/train/trainer/distributed.py111 logger.warning("Batch size %s is sub-optimal for %s GPUs. You may want to adjust your "CODE