AI Slop Code Risk Monitor

TencentARC/GFPGAN

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

GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration.

13.8 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for TencentARC/GFPGAN, a Python project with 37,738 GitHub stars. SynthScan examined 6,526 lines of code across 47 source files, recording 54 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 13.8 (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.

13.8
Adjusted Signal
13.8
Raw Pattern Score
100%
Time Factor
2024-07-26
Last Push
37.7K
Stars
Python
Language
6.5K
Lines of Code
47
Files
54
Pattern Hits
2026-11-27
Scan Date
0.17
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-11-27.

Cognitive Ownership Risk 25.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 5.2/100 · LOW

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

Agent Over-Engineering Ratio 41.1/100 · MEDIUM

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

PR Review Velocity Impact 52.8/100 · HIGH

Which changes need focused human review? 54 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 0HIGH 8MEDIUM 2LOW 44

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 54 distinct pattern matches across 8 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 Repetition8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHgfpgan/archs/stylegan2_bilinear_arch.py0forward function for stylegan2generatorbilinearsft. args: styles (list[tensor]): sample codes of styles. conditions (lisSTRING
HIGHgfpgan/archs/stylegan2_clean_arch.py0forward function for stylegan2generatorbilinearsft. args: styles (list[tensor]): sample codes of styles. conditions (lisSTRING
HIGHgfpgan/archs/gfpganv1_arch.py0forward function for stylegan2generatorbilinearsft. args: styles (list[tensor]): sample codes of styles. conditions (lisSTRING
HIGHgfpgan/archs/gfpganv1_clean_arch.py0forward function for stylegan2generatorbilinearsft. args: styles (list[tensor]): sample codes of styles. conditions (lisSTRING
HIGHgfpgan/archs/gfpgan_bilinear_arch.py0forward function for stylegan2generatorbilinearsft. args: styles (list[tensor]): sample codes of styles. conditions (lisSTRING
HIGHgfpgan/archs/gfpganv1_arch.py0forward function for gfpganbilinear. args: x (tensor): input images. return_latents (bool): whether to return style lateSTRING
HIGHgfpgan/archs/gfpganv1_clean_arch.py0forward function for gfpganbilinear. args: x (tensor): input images. return_latents (bool): whether to return style lateSTRING
HIGHgfpgan/archs/gfpgan_bilinear_arch.py0forward function for gfpganbilinear. args: x (tensor): input images. return_latents (bool): whether to return style lateSTRING
AI Structural Patterns21 hits · 21 pts
SeverityFileLineSnippetContext
LOWsetup.py32CODE
LOWgfpgan/archs/stylegan2_bilinear_arch.py153CODE
LOWgfpgan/archs/stylegan2_bilinear_arch.py205CODE
LOWgfpgan/archs/stylegan2_bilinear_arch.py270CODE
LOWgfpgan/archs/stylegan2_bilinear_arch.py520CODE
LOWgfpgan/archs/stylegan2_bilinear_arch.py613CODE
LOWgfpgan/archs/arcface_arch.py53CODE
LOWgfpgan/archs/arcface_arch.py100CODE
LOWgfpgan/archs/arcface_arch.py146CODE
LOWgfpgan/archs/stylegan2_clean_arch.py99CODE
LOWgfpgan/archs/stylegan2_clean_arch.py138CODE
LOWgfpgan/archs/stylegan2_clean_arch.py191CODE
LOWgfpgan/archs/gfpganv1_arch.py217CODE
LOWgfpgan/archs/gfpganv1_arch.py243CODE
LOWgfpgan/archs/restoreformer_arch.py260CODE
LOWgfpgan/archs/restoreformer_arch.py364CODE
LOWgfpgan/archs/restoreformer_arch.py469CODE
LOWgfpgan/archs/restoreformer_arch.py575CODE
LOWgfpgan/archs/gfpganv1_clean_arch.py149CODE
LOWgfpgan/archs/gfpganv1_clean_arch.py174CODE
LOWgfpgan/archs/gfpgan_bilinear_arch.py156CODE
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWcog_predict.py152CODE
LOWcog_predict.py66CODE
LOWinference_gfpgan.py12CODE
LOWgfpgan/utils.py32CODE
LOWgfpgan/models/gfpgan_model.py489CODE
LOWgfpgan/archs/arcface_arch.py183CODE
LOWscripts/convert_gfpganv_to_clean.py8CODE
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWgfpgan/__init__.py2CODE
LOWgfpgan/__init__.py3CODE
LOWgfpgan/__init__.py4CODE
LOWgfpgan/__init__.py5CODE
LOWgfpgan/train.py5CODE
LOWgfpgan/train.py6CODE
LOWgfpgan/train.py7CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMcog_predict.py2# This file is used for deploying replicate modelsCOMMENT
MEDIUMcog.yaml1# This file is used for constructing replicate envCOMMENT
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcog_predict.py23except Exception:CODE
LOWcog_predict.py136 except Exception as error:CODE
LOWcog_predict.py145 except Exception as error:CODE
LOWcog_predict.py160 except Exception as e:CODE
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_gfpgan_arch.py101def test_facialcomponentdiscriminator():CODE
LOWtests/test_ffhq_degradation_dataset.py7def test_ffhq_degradation_dataset():CODE
LOWgfpgan/models/gfpgan_model.py554 def _log_validation_metric_values(self, current_iter, dataset_name, tb_logger):CODE
LOWgfpgan/data/ffhq_degradation_dataset.py120 def get_component_coordinates(self, index, status):CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWgfpgan/archs/restoreformer_arch.py61 # min_encodings shape: torch.Size([2048, 512])COMMENT