AI Slop Code Risk Monitor

XingangPan/DragGAN

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

Official Code for DragGAN (SIGGRAPH 2023)

51.8 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for XingangPan/DragGAN, a Python project with 35,832 GitHub stars. SynthScan examined 30,054 lines of code across 163 source files, recording 697 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 51.8 (High 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.

51.8
Adjusted Signal
51.8
Raw Pattern Score
100%
Time Factor
2024-05-18
Last Push
35.8K
Stars
Python
Language
30.1K
Lines of Code
163
Files
697
Pattern Hits
2026-11-27
Scan Date
0.13
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 24.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 11.7/100 · LOW

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

Agent Over-Engineering Ratio 90.3/100 · CRITICAL

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

PR Review Velocity Impact 93.8/100 · CRITICAL

Which changes need focused human review? 697 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 22MEDIUM 430LOW 245

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 697 distinct pattern matches across 14 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.

Decorative Section Separators425 hits · 1194 pts
SeverityFileLineSnippetContext
MEDIUMlegacy.py20#----------------------------------------------------------------------------COMMENT
MEDIUMlegacy.py60#----------------------------------------------------------------------------COMMENT
MEDIUMlegacy.py71#----------------------------------------------------------------------------COMMENT
MEDIUMlegacy.py84#----------------------------------------------------------------------------COMMENT
MEDIUMlegacy.py105#----------------------------------------------------------------------------COMMENT
MEDIUMlegacy.py206#----------------------------------------------------------------------------COMMENT
MEDIUMlegacy.py291#----------------------------------------------------------------------------COMMENT
MEDIUMlegacy.py318#----------------------------------------------------------------------------COMMENT
MEDIUMlegacy.py323#----------------------------------------------------------------------------COMMENT
MEDIUMvisualizer_drag.py27#----------------------------------------------------------------------------COMMENT
MEDIUMvisualizer_drag.py251#----------------------------------------------------------------------------COMMENT
MEDIUMvisualizer_drag.py347#----------------------------------------------------------------------------COMMENT
MEDIUMvisualizer_drag.py400#----------------------------------------------------------------------------COMMENT
MEDIUMvisualizer_drag.py405#----------------------------------------------------------------------------COMMENT
MEDIUMgen_images.py23#----------------------------------------------------------------------------COMMENT
MEDIUMgen_images.py41#----------------------------------------------------------------------------COMMENT
MEDIUMgen_images.py55#----------------------------------------------------------------------------COMMENT
MEDIUMgen_images.py69#----------------------------------------------------------------------------COMMENT
MEDIUMgen_images.py145#----------------------------------------------------------------------------COMMENT
MEDIUMgen_images.py150#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py16#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py43#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py58#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py66#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py77#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py97#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py107#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py144#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py164#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py177#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py193#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/misc.py266#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/persistence.py25#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/persistence.py33#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/persistence.py132#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/persistence.py145#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/persistence.py177#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/persistence.py204#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/persistence.py229#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/persistence.py251#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/custom_ops.py21#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/custom_ops.py26#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/custom_ops.py42#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/custom_ops.py54#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/custom_ops.py157#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/training_stats.py21#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/training_stats.py32#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/training_stats.py53#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/training_stats.py101#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/training_stats.py111#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/training_stats.py232#----------------------------------------------------------------------------STRING
MEDIUMtorch_utils/training_stats.py268#----------------------------------------------------------------------------STRING
MEDIUM⚡torch_utils/ops/grid_sample_gradfix.py20#----------------------------------------------------------------------------COMMENT
MEDIUM⚡torch_utils/ops/grid_sample_gradfix.py24#----------------------------------------------------------------------------COMMENT
MEDIUM⚡torch_utils/ops/grid_sample_gradfix.py31#----------------------------------------------------------------------------COMMENT
MEDIUM⚡torch_utils/ops/grid_sample_gradfix.py36#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/ops/grid_sample_gradfix.py53#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/ops/grid_sample_gradfix.py77#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/ops/bias_act.py19#----------------------------------------------------------------------------COMMENT
MEDIUMtorch_utils/ops/bias_act.py33#----------------------------------------------------------------------------COMMENT
365 more matches not shown…
Unused Imports75 hits · 74 pts
SeverityFileLineSnippetContext
LOWvisualizer_drag.py10CODE
LOWgradio_utils/__init__.py1CODE
LOWgradio_utils/__init__.py1CODE
LOWgradio_utils/__init__.py1CODE
LOWgradio_utils/__init__.py1CODE
LOWgradio_utils/__init__.py1CODE
LOWgradio_utils/__init__.py1CODE
LOWtorch_utils/custom_ops.py19CODE
LOWviz/drag_widget.py3CODE
LOWviz/drag_widget.py5CODE
LOWviz/latent_widget.py10CODE
LOWviz/latent_widget.py12CODE
LOWviz/capture_widget.py16CODE
LOWviz/capture_widget.py17CODE
LOWviz/renderer.py9CODE
LOWviz/renderer.py11CODE
LOWviz/renderer.py13CODE
LOWviz/renderer.py22CODE
LOWviz/pickle_widget.py15CODE
LOWstylegan_human/stylemixing_video.py8CODE
LOWstylegan_human/stylemixing_video.py16CODE
LOWstylegan_human/stylemixing_video.py18CODE
LOWstylegan_human/stylemixing_video.py19CODE
LOWstylegan_human/style_mixing.py13CODE
LOWstylegan_human/interpolation.py8CODE
LOWstylegan_human/alignment.py14CODE
LOWstylegan_human/alignment.py18CODE
LOWstylegan_human/edit.py14CODE
LOWstylegan_human/torch_utils/models.py6CODE
LOWstylegan_human/torch_utils/models.py7CODE
LOWstylegan_human/torch_utils/models.py8CODE
LOWstylegan_human/torch_utils/models.py14CODE
LOWstylegan_human/torch_utils/models_face.py4CODE
LOWstylegan_human/torch_utils/models_face.py5CODE
LOWstylegan_human/torch_utils/models_face.py6CODE
LOWstylegan_human/torch_utils/models_face.py12CODE
LOWstylegan_human/torch_utils/op_edit/__init__.py3CODE
LOWstylegan_human/torch_utils/op_edit/__init__.py3CODE
LOWstylegan_human/torch_utils/op_edit/__init__.py4CODE
LOWstylegan_human/openpose/src/body.py4CODE
LOWstylegan_human/openpose/src/body.py7CODE
LOWstylegan_human/openpose/src/body.py9CODE
LOWstylegan_human/openpose/src/util.py4CODE
LOWstylegan_human/openpose/src/util.py5CODE
LOWstylegan_human/openpose/src/util.py6CODE
LOWstylegan_human/openpose/src/util.py8CODE
LOWstylegan_human/training_scripts/sg3/train.py26CODE
LOWstylegan_human/training_scripts/sg3/training/dataset.py20CODE
LOWstylegan_human/training_scripts/sg3/training/dataset.py21CODE
LOWstylegan_human/training_scripts/sg2/train.py22CODE
LOWstylegan_human/utils/ImagesDataset.py4CODE
LOWstylegan_human/utils/face_alignment.py8CODE
LOWstylegan_human/utils/models_utils.py5CODE
LOWstylegan_human/edit/edit_helper.py3CODE
LOWstylegan_human/PP_HumanSeg/deploy/infer.py27CODE
LOWstylegan_human/pti/training/coaches/multi_id_coach.py5CODE
LOWstylegan_human/pti/training/coaches/base_coach.py3CODE
LOWstylegan_human/pti/training/projectors/w_projector.py16CODE
LOWstylegan_human/pti/pti_configs/paths_config.py1CODE
LOWstylegan_human/pti/pti_models/e4e/psp.py2CODE
15 more matches not shown…
Empty Error Handlers13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHvisualizer_drag.py304except RuntimeError:CODE
HIGHtorch_utils/persistence.py141except TypeError:CODE
HIGHtraining/dataset.py81except:CODE
HIGHstylegan_human/training/dataset.py81except:CODE
HIGHstylegan_human/training_scripts/sg3/training/dataset.py90except:CODE
HIGHstylegan_human/utils/face_alignment.py265except Exception:CODE
HIGHstylegan_human/dnnlib/tflib/optimizer.py143except tf.errors.NotFoundError:CODE
HIGHdnnlib/util.py173except ValueError:CODE
HIGHdnnlib/util.py254except:CODE
HIGHdnnlib/util.py270except ImportError:CODE
HIGHgui_utils/gl_utils.py170except:CODE
HIGHgui_utils/gl_utils.py287except:CODE
HIGHgui_utils/glfw_window.py56except:CODE
AI Structural Patterns66 hits · 65 pts
SeverityFileLineSnippetContext
LOWtorch_utils/ops/filtered_lrelu.py56CODE
LOWtorch_utils/ops/filtered_lrelu.py121CODE
LOWtraining/networks_stylegan3.py401CODE
LOWtraining/networks_stylegan2.py33CODE
LOWtraining/networks_stylegan2.py135CODE
LOWtraining/networks_stylegan2.py772CODE
LOWtraining/augment.py123CODE
LOWtraining/training_loop.py90CODE
LOWtraining/loss.py26CODE
LOWviz/renderer.py208CODE
LOWviz/renderer.py272CODE
LOWstylegan_human/stylemixing_video.py49CODE
LOWstylegan_human/alignment.py98CODE
LOWstylegan_human/insetgan.py117CODE
LOWstylegan_human/torch_utils/models.py52CODE
LOWstylegan_human/torch_utils/models.py72CODE
LOWstylegan_human/torch_utils/models.py90CODE
LOWstylegan_human/torch_utils/models.py121CODE
LOWstylegan_human/torch_utils/models.py288CODE
LOWstylegan_human/torch_utils/models.py319CODE
LOWstylegan_human/torch_utils/models.py466CODE
LOWstylegan_human/torch_utils/models.py624CODE
LOWstylegan_human/torch_utils/models_face.py54CODE
LOWstylegan_human/torch_utils/models_face.py75CODE
LOWstylegan_human/torch_utils/models_face.py94CODE
LOWstylegan_human/torch_utils/models_face.py126CODE
LOWstylegan_human/torch_utils/models_face.py307CODE
LOWstylegan_human/torch_utils/models_face.py344CODE
LOWstylegan_human/torch_utils/models_face.py495CODE
LOWstylegan_human/torch_utils/models_face.py652CODE
LOWstylegan_human/torch_utils/op_edit/upfirdn2d.py126CODE
LOWstylegan_human/torch_utils/ops/filtered_lrelu.py64CODE
LOWstylegan_human/torch_utils/ops/filtered_lrelu.py129CODE
LOWstylegan_human/training/networks_stylegan3.py401CODE
LOWstylegan_human/training/networks_stylegan2.py33CODE
LOWstylegan_human/training/networks_stylegan2.py135CODE
LOWstylegan_human/training/networks_stylegan2.py765CODE
LOWstylegan_human/training/augment.py123CODE
LOWstylegan_human/training/training_loop.py90CODE
LOWstylegan_human/training/loss.py26CODE
LOW…an/training_scripts/sg3/training/networks_stylegan3.py415CODE
LOW…an/training_scripts/sg3/training/networks_stylegan2.py34CODE
LOW…an/training_scripts/sg3/training/networks_stylegan2.py136CODE
LOW…an/training_scripts/sg3/training/networks_stylegan2.py277CODE
LOW…an/training_scripts/sg3/training/networks_stylegan2.py584CODE
LOW…an/training_scripts/sg3/training/networks_stylegan2.py786CODE
LOWstylegan_human/training_scripts/sg2/train.py35CODE
LOWstylegan_human/edit/edit_helper.py56CODE
LOW…egan_human/pti/training/projectors/w_plus_projector.py22CODE
LOWstylegan_human/pti/training/projectors/w_projector.py22CODE
LOW…egan_human/pti/pti_models/e4e/encoders/psp_encoders.py121CODE
LOWstylegan_human/pti/pti_models/e4e/encoders/helpers.py19CODE
LOWstylegan_human/pti/pti_models/e4e/stylegan2/model.py48CODE
LOWstylegan_human/pti/pti_models/e4e/stylegan2/model.py69CODE
LOWstylegan_human/pti/pti_models/e4e/stylegan2/model.py88CODE
LOWstylegan_human/pti/pti_models/e4e/stylegan2/model.py120CODE
LOWstylegan_human/pti/pti_models/e4e/stylegan2/model.py301CODE
LOWstylegan_human/pti/pti_models/e4e/stylegan2/model.py338CODE
LOWstylegan_human/pti/pti_models/e4e/stylegan2/model.py473CODE
LOWstylegan_human/pti/pti_models/e4e/stylegan2/model.py619CODE
6 more matches not shown…
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHtraining/networks_stylegan3.py0generator architecture from the paper "alias-free generative adversarial networks".STRING
HIGHstylegan_human/training/networks_stylegan3.py0generator architecture from the paper "alias-free generative adversarial networks".STRING
HIGH…an/training_scripts/sg3/training/networks_stylegan3.py0generator architecture from the paper "alias-free generative adversarial networks".STRING
HIGHtraining/networks_stylegan2.py0network architectures from the paper "analyzing and improving the image quality of stylegan". matches the original impleSTRING
HIGHstylegan_human/training/networks_stylegan2.py0network architectures from the paper "analyzing and improving the image quality of stylegan". matches the original impleSTRING
HIGH…an/training_scripts/sg3/training/networks_stylegan2.py0network architectures from the paper "analyzing and improving the image quality of stylegan". matches the original impleSTRING
HIGHtraining/dataset.py0streaming images and labels from datasets created with dataset_tool.py.STRING
HIGHstylegan_human/training/dataset.py0streaming images and labels from datasets created with dataset_tool.py.STRING
HIGHstylegan_human/training_scripts/sg3/training/dataset.py0streaming images and labels from datasets created with dataset_tool.py.STRING
Deep Nesting37 hits · 36 pts
SeverityFileLineSnippetContext
LOWlegacy.py86CODE
LOWvisualizer_drag.py133CODE
LOWvisualizer_drag_gradio.py446CODE
LOWtorch_utils/misc.py82CODE
LOWtorch_utils/custom_ops.py59CODE
LOWtraining/networks_stylegan2.py33CODE
LOWtraining/training_loop.py90CODE
LOWtraining/loss.py63CODE
LOWviz/drag_widget.py91CODE
LOWviz/latent_widget.py31CODE
LOWviz/capture_widget.py30CODE
LOWviz/renderer.py133CODE
LOWviz/pickle_widget.py72CODE
LOWviz/pickle_widget.py136CODE
LOWstylegan_human/edit.py55CODE
LOWstylegan_human/torch_utils/models.py466CODE
LOWstylegan_human/torch_utils/custom_ops.py61CODE
LOWstylegan_human/torch_utils/custom_ops.py142CODE
LOWstylegan_human/openpose/src/body.py23CODE
LOWstylegan_human/training/networks_stylegan2.py33CODE
LOWstylegan_human/training/training_loop.py90CODE
LOWstylegan_human/training/loss.py63CODE
LOW…an/training_scripts/sg3/training/networks_stylegan2.py34CODE
LOWstylegan_human/training_scripts/sg2/train.py35CODE
LOW…egan_human/pti/training/projectors/w_plus_projector.py22CODE
LOWstylegan_human/pti/training/projectors/w_projector.py22CODE
LOWstylegan_human/pti/pti_models/e4e/psp.py56CODE
LOW…egan_human/pti/pti_models/e4e/encoders/psp_encoders.py95CODE
LOW…egan_human/pti/pti_models/e4e/encoders/psp_encoders.py173CODE
LOWstylegan_human/dnnlib/tflib/custom_ops.py89CODE
LOWstylegan_human/dnnlib/tflib/autosummary.py79CODE
LOWstylegan_human/dnnlib/tflib/autosummary.py120CODE
LOWstylegan_human/dnnlib/tflib/tfutil.py166CODE
LOWstylegan_human/dnnlib/tflib/tfutil.py196CODE
LOWstylegan_human/dnnlib/tflib/network.py355CODE
LOWstylegan_human/dnnlib/tflib/optimizer.py158CODE
LOWdnnlib/util.py396CODE
Over-Commented Block34 hits · 34 pts
SeverityFileLineSnippetContext
LOWtorch_utils/custom_ops.py81 if os.name == 'nt' and os.system("where cl.exe >nul 2>nul") != 0:COMMENT
LOWtorch_utils/__init__.py1# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtorch_utils/ops/bias_act.cpp1// Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtorch_utils/ops/upfirdn2d.cpp1// Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtorch_utils/ops/filtered_lrelu.cpp1// Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtorch_utils/ops/grid_sample_gradfix.py1# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtorch_utils/ops/__init__.py1# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtorch_utils/ops/filtered_lrelu.h1// Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtorch_utils/ops/conv2d_gradfix.py1# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtraining/__init__.py1# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWviz/__init__.py1# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWstylegan_human/torch_utils/custom_ops.py81COMMENT
LOWstylegan_human/torch_utils/custom_ops.py161 # Compile and load.COMMENT
LOWstylegan_human/torch_utils/custom_ops.py181 #COMMENT
LOWstylegan_human/torch_utils/__init__.py1# Copyright (c) SenseTime Research. All rights reserved.COMMENT
LOWstylegan_human/torch_utils/models_face.py701# def forward(self, input):COMMENT
LOWstylegan_human/torch_utils/ops/bias_act.cpp1// Copyright (c) SenseTime Research. All rights reserved.COMMENT
LOWstylegan_human/torch_utils/ops/upfirdn2d.cpp1// Copyright (c) SenseTime Research. All rights reserved.COMMENT
LOWstylegan_human/torch_utils/ops/filtered_lrelu.cpp1// Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWstylegan_human/torch_utils/ops/filtered_lrelu.h1// Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWstylegan_human/torch_utils/ops/upfirdn2d.h1// Copyright (c) SenseTime Research. All rights reserved.COMMENT
LOWstylegan_human/torch_utils/ops/conv2d_gradfix.py1# Copyright (c) SenseTime Research. All rights reserved.COMMENT
LOWstylegan_human/training/__init__.py1# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWstylegan_human/utils/face_alignment.py81 # if shrink > 1:COMMENT
LOWstylegan_human/utils/face_alignment.py101 # int(np.ceil(max(quad[:, 1]))))COMMENT
LOWstylegan_human/edit/__init__.py1# Copyright (c) SenseTime Research. All rights reserved.COMMENT
LOW…HumanSeg/pretrained_model/download_pretrained_model.py1# coding: utf8COMMENT
LOWstylegan_human/PP_HumanSeg/deploy/infer.py1# Copyright (c) SenseTime Research. All rights reserved.COMMENT
LOW…uman/PP_HumanSeg/export_model/download_export_model.py1# coding: utf8COMMENT
LOWstylegan_human/dnnlib/__init__.py1# Copyright (c) SenseTime Research. All rights reserved.COMMENT
LOWstylegan_human/dnnlib/tflib/ops/__init__.py1# Copyright (c) SenseTime Research. All rights reserved.COMMENT
LOWdnnlib/util.py401 # Doesn't look like an URL scheme so interpret it as a local filename.COMMENT
LOWdnnlib/__init__.py1# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWgui_utils/__init__.py1# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
Hyper-Verbose Identifiers25 hits · 26 pts
SeverityFileLineSnippetContext
LOWvisualizer_drag_gradio.py350 def on_change_pretrained_dropdown(pretrained_value, global_state):STRING
LOWvisualizer_drag_gradio.py386 def on_change_update_image_seed(seed, global_state):STRING
LOWgradio_utils/utils.py128def on_change_single_global_state(keys,CODE
LOWtorch_utils/persistence.py179def _reconstruct_persistent_obj(meta):STRING
LOWtraining/training_loop.py31def setup_snapshot_image_grid(training_set, random_seed=0):CODE
LOWstylegan_human/interpolation.py65def make_latent_interp_animation(G, code1, code2, img1, img2, num_interps, noise_mode, save_mid_image, truncation_psi,deCODE
LOWstylegan_human/torch_utils/persistence.py181def _reconstruct_persistent_obj(meta):STRING
LOWstylegan_human/training/training_loop.py31def setup_snapshot_image_grid(training_set, random_seed=0):CODE
LOW⚡stylegan_human/training_scripts/sg3/train.py120def parse_comma_separated_list(s):CODE
LOW⚡stylegan_human/training_scripts/sg2/train.py35def setup_training_loop_kwargs(CODE
LOW…egan_human/pti/pti_models/e4e/encoders/psp_encoders.py165 def get_deltas_starting_dimensions(self):CODE
LOWstylegan_human/dnnlib/util.py294def get_module_dir_by_obj_name(obj_name: str) -> str:CODE
LOW⚡stylegan_human/dnnlib/util.py305def get_top_level_function_name(obj: Any) -> str:CODE
LOW⚡stylegan_human/dnnlib/util.py317def list_dir_recursively_with_ignore(dir_path: str, ignores: List[str] = None, add_base_to_relative: bool = False) -> LiCODE
LOWstylegan_human/dnnlib/util.py350def copy_files_and_create_dirs(files: List[Tuple[str, str]]) -> None:CODE
LOWstylegan_human/dnnlib/tflib/custom_ops.py51def _get_cuda_gpu_arch_string():CODE
LOWstylegan_human/dnnlib/tflib/tfutil.py222def create_var_with_large_initial_value(initial_value: np.ndarray, *args, **kwargs):CODE
LOWstylegan_human/dnnlib/tflib/network.py343 def setup_as_moving_average_of(self, src_net: "Network", beta: TfExpressionEx = 0.99, beta_nontrainable: TfExpressioCODE
LOWstylegan_human/dnnlib/tflib/network.py557def _handle_legacy_output_transforms(output_transform, dynamic_kwargs):CODE
LOWstylegan_human/dnnlib/tflib/network.py577def _legacy_output_transform_func(*expr, out_mul=1.0, out_add=0.0, out_shrink=1, out_dtype=None):CODE
LOWdnnlib/util.py306def get_module_dir_by_obj_name(obj_name: str) -> str:CODE
LOW⚡dnnlib/util.py317def get_top_level_function_name(obj: Any) -> str:CODE
LOW⚡dnnlib/util.py329def list_dir_recursively_with_ignore(dir_path: str, ignores: List[str] = None, add_base_to_relative: bool = False) -> LiCODE
LOWdnnlib/util.py362def copy_files_and_create_dirs(files: List[Tuple[str, str]]) -> None:CODE
LOWgui_utils/text_utils.py96def _get_array_impl_dropshadow(string, *, font=None, size=32, radius: int, offset_x: int, offset_y: int, line_pad: int=NCODE
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOWgradio_utils/__init__.py5__all__ = [CODE
LOWstylegan_human/dnnlib/util.py121def set_cache_dir(path: str) -> None:CODE
LOWstylegan_human/dnnlib/tflib/tfutil.py196def set_vars(var_to_value_dict: dict) -> None:CODE
LOWstylegan_human/dnnlib/tflib/network.py252 def set_var(self, var_or_local_name: Union[TfExpression, str], new_value: Union[int, float, np.ndarray]) -> None:CODE
LOWdnnlib/util.py120def set_cache_dir(path: str) -> None:CODE
Excessive Try-Catch Wrapping3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/download_model.py54 except Exception as e:CODE
MEDIUMscripts/download_model.py55 print(f"An error occurred: {e}")CODE
LOWstylegan_human/utils/face_alignment.py265 except Exception:CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMstylegan_human/legacy.py31 ## We comment out this part, if you want to convert TF pickle, you can use the original script from StyleGAN2-ada-pyCOMMENT
Self-Referential Comments2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUMvisualizer_drag_gradio.py62 """This function is called only ones with Gradio App is started.STRING
MEDIUMstylegan_human/pti/pti_models/e4e/latent_codes_pool.py6 """This class implements latent codes buffer that stores previously generated w latent codes.STRING
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMstylegan_human/dnnlib/tflib/optimizer.py48 use_loss_scaling: bool = False, # Enable dynamic loss scaling for robust mixCODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/download_model.py26 # Check if request was successfulCOMMENT