Official Code for DragGAN (SIGGRAPH 2023)
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 167 finding(s).
Are imports declared and package/API names verified? 75 finding(s).
Are wrappers, guards, and repeated structures necessary? 546 finding(s).
Which changes need focused human review? 697 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | legacy.py | 20 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | legacy.py | 60 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | legacy.py | 71 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | legacy.py | 84 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | legacy.py | 105 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | legacy.py | 206 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | legacy.py | 291 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | legacy.py | 318 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | legacy.py | 323 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | visualizer_drag.py | 27 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | visualizer_drag.py | 251 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | visualizer_drag.py | 347 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | visualizer_drag.py | 400 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | visualizer_drag.py | 405 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | gen_images.py | 23 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | gen_images.py | 41 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | gen_images.py | 55 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | gen_images.py | 69 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | gen_images.py | 145 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | gen_images.py | 150 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 16 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 43 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 58 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 66 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 77 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 97 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 107 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 144 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 164 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 177 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 193 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/misc.py | 266 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/persistence.py | 25 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/persistence.py | 33 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/persistence.py | 132 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/persistence.py | 145 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/persistence.py | 177 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/persistence.py | 204 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/persistence.py | 229 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/persistence.py | 251 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/custom_ops.py | 21 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/custom_ops.py | 26 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/custom_ops.py | 42 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/custom_ops.py | 54 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/custom_ops.py | 157 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/training_stats.py | 21 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/training_stats.py | 32 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/training_stats.py | 53 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/training_stats.py | 101 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/training_stats.py | 111 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/training_stats.py | 232 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM | torch_utils/training_stats.py | 268 | #---------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | torch_utils/ops/grid_sample_gradfix.py | 20 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | torch_utils/ops/grid_sample_gradfix.py | 24 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | torch_utils/ops/grid_sample_gradfix.py | 31 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | torch_utils/ops/grid_sample_gradfix.py | 36 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/ops/grid_sample_gradfix.py | 53 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/ops/grid_sample_gradfix.py | 77 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/ops/bias_act.py | 19 | #---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | torch_utils/ops/bias_act.py | 33 | #---------------------------------------------------------------------------- | COMMENT |
| 365 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | visualizer_drag.py | 10 | CODE | |
| LOW | gradio_utils/__init__.py | 1 | CODE | |
| LOW | gradio_utils/__init__.py | 1 | CODE | |
| LOW | gradio_utils/__init__.py | 1 | CODE | |
| LOW | gradio_utils/__init__.py | 1 | CODE | |
| LOW | gradio_utils/__init__.py | 1 | CODE | |
| LOW | gradio_utils/__init__.py | 1 | CODE | |
| LOW | torch_utils/custom_ops.py | 19 | CODE | |
| LOW | viz/drag_widget.py | 3 | CODE | |
| LOW | viz/drag_widget.py | 5 | CODE | |
| LOW | viz/latent_widget.py | 10 | CODE | |
| LOW | viz/latent_widget.py | 12 | CODE | |
| LOW | viz/capture_widget.py | 16 | CODE | |
| LOW | viz/capture_widget.py | 17 | CODE | |
| LOW | viz/renderer.py | 9 | CODE | |
| LOW | viz/renderer.py | 11 | CODE | |
| LOW | viz/renderer.py | 13 | CODE | |
| LOW | viz/renderer.py | 22 | CODE | |
| LOW | viz/pickle_widget.py | 15 | CODE | |
| LOW | stylegan_human/stylemixing_video.py | 8 | CODE | |
| LOW | stylegan_human/stylemixing_video.py | 16 | CODE | |
| LOW | stylegan_human/stylemixing_video.py | 18 | CODE | |
| LOW | stylegan_human/stylemixing_video.py | 19 | CODE | |
| LOW | stylegan_human/style_mixing.py | 13 | CODE | |
| LOW | stylegan_human/interpolation.py | 8 | CODE | |
| LOW | stylegan_human/alignment.py | 14 | CODE | |
| LOW | stylegan_human/alignment.py | 18 | CODE | |
| LOW | stylegan_human/edit.py | 14 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 6 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 7 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 8 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 14 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 4 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 5 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 6 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 12 | CODE | |
| LOW | stylegan_human/torch_utils/op_edit/__init__.py | 3 | CODE | |
| LOW | stylegan_human/torch_utils/op_edit/__init__.py | 3 | CODE | |
| LOW | stylegan_human/torch_utils/op_edit/__init__.py | 4 | CODE | |
| LOW | stylegan_human/openpose/src/body.py | 4 | CODE | |
| LOW | stylegan_human/openpose/src/body.py | 7 | CODE | |
| LOW | stylegan_human/openpose/src/body.py | 9 | CODE | |
| LOW | stylegan_human/openpose/src/util.py | 4 | CODE | |
| LOW | stylegan_human/openpose/src/util.py | 5 | CODE | |
| LOW | stylegan_human/openpose/src/util.py | 6 | CODE | |
| LOW | stylegan_human/openpose/src/util.py | 8 | CODE | |
| LOW | stylegan_human/training_scripts/sg3/train.py | 26 | CODE | |
| LOW | stylegan_human/training_scripts/sg3/training/dataset.py | 20 | CODE | |
| LOW | stylegan_human/training_scripts/sg3/training/dataset.py | 21 | CODE | |
| LOW | stylegan_human/training_scripts/sg2/train.py | 22 | CODE | |
| LOW | stylegan_human/utils/ImagesDataset.py | 4 | CODE | |
| LOW | stylegan_human/utils/face_alignment.py | 8 | CODE | |
| LOW | stylegan_human/utils/models_utils.py | 5 | CODE | |
| LOW | stylegan_human/edit/edit_helper.py | 3 | CODE | |
| LOW | stylegan_human/PP_HumanSeg/deploy/infer.py | 27 | CODE | |
| LOW | stylegan_human/pti/training/coaches/multi_id_coach.py | 5 | CODE | |
| LOW | stylegan_human/pti/training/coaches/base_coach.py | 3 | CODE | |
| LOW | stylegan_human/pti/training/projectors/w_projector.py | 16 | CODE | |
| LOW | stylegan_human/pti/pti_configs/paths_config.py | 1 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/psp.py | 2 | CODE | |
| 15 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | visualizer_drag.py | 304 | except RuntimeError: | CODE |
| HIGH | torch_utils/persistence.py | 141 | except TypeError: | CODE |
| HIGH | training/dataset.py | 81 | except: | CODE |
| HIGH | stylegan_human/training/dataset.py | 81 | except: | CODE |
| HIGH | stylegan_human/training_scripts/sg3/training/dataset.py | 90 | except: | CODE |
| HIGH | stylegan_human/utils/face_alignment.py | 265 | except Exception: | CODE |
| HIGH | stylegan_human/dnnlib/tflib/optimizer.py | 143 | except tf.errors.NotFoundError: | CODE |
| HIGH | dnnlib/util.py | 173 | except ValueError: | CODE |
| HIGH | dnnlib/util.py | 254 | except: | CODE |
| HIGH | dnnlib/util.py | 270 | except ImportError: | CODE |
| HIGH | gui_utils/gl_utils.py | 170 | except: | CODE |
| HIGH | gui_utils/gl_utils.py | 287 | except: | CODE |
| HIGH | gui_utils/glfw_window.py | 56 | except: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | torch_utils/ops/filtered_lrelu.py | 56 | CODE | |
| LOW | torch_utils/ops/filtered_lrelu.py | 121 | CODE | |
| LOW | training/networks_stylegan3.py | 401 | CODE | |
| LOW | training/networks_stylegan2.py | 33 | CODE | |
| LOW | training/networks_stylegan2.py | 135 | CODE | |
| LOW | training/networks_stylegan2.py | 772 | CODE | |
| LOW | training/augment.py | 123 | CODE | |
| LOW | training/training_loop.py | 90 | CODE | |
| LOW | training/loss.py | 26 | CODE | |
| LOW | viz/renderer.py | 208 | CODE | |
| LOW | viz/renderer.py | 272 | CODE | |
| LOW | stylegan_human/stylemixing_video.py | 49 | CODE | |
| LOW | stylegan_human/alignment.py | 98 | CODE | |
| LOW | stylegan_human/insetgan.py | 117 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 52 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 72 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 90 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 121 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 288 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 319 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 466 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 624 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 54 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 75 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 94 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 126 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 307 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 344 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 495 | CODE | |
| LOW | stylegan_human/torch_utils/models_face.py | 652 | CODE | |
| LOW | stylegan_human/torch_utils/op_edit/upfirdn2d.py | 126 | CODE | |
| LOW | stylegan_human/torch_utils/ops/filtered_lrelu.py | 64 | CODE | |
| LOW | stylegan_human/torch_utils/ops/filtered_lrelu.py | 129 | CODE | |
| LOW | stylegan_human/training/networks_stylegan3.py | 401 | CODE | |
| LOW | stylegan_human/training/networks_stylegan2.py | 33 | CODE | |
| LOW | stylegan_human/training/networks_stylegan2.py | 135 | CODE | |
| LOW | stylegan_human/training/networks_stylegan2.py | 765 | CODE | |
| LOW | stylegan_human/training/augment.py | 123 | CODE | |
| LOW | stylegan_human/training/training_loop.py | 90 | CODE | |
| LOW | stylegan_human/training/loss.py | 26 | CODE | |
| LOW | …an/training_scripts/sg3/training/networks_stylegan3.py | 415 | CODE | |
| LOW | …an/training_scripts/sg3/training/networks_stylegan2.py | 34 | CODE | |
| LOW | …an/training_scripts/sg3/training/networks_stylegan2.py | 136 | CODE | |
| LOW | …an/training_scripts/sg3/training/networks_stylegan2.py | 277 | CODE | |
| LOW | …an/training_scripts/sg3/training/networks_stylegan2.py | 584 | CODE | |
| LOW | …an/training_scripts/sg3/training/networks_stylegan2.py | 786 | CODE | |
| LOW | stylegan_human/training_scripts/sg2/train.py | 35 | CODE | |
| LOW | stylegan_human/edit/edit_helper.py | 56 | CODE | |
| LOW | …egan_human/pti/training/projectors/w_plus_projector.py | 22 | CODE | |
| LOW | stylegan_human/pti/training/projectors/w_projector.py | 22 | CODE | |
| LOW | …egan_human/pti/pti_models/e4e/encoders/psp_encoders.py | 121 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/encoders/helpers.py | 19 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/stylegan2/model.py | 48 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/stylegan2/model.py | 69 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/stylegan2/model.py | 88 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/stylegan2/model.py | 120 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/stylegan2/model.py | 301 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/stylegan2/model.py | 338 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/stylegan2/model.py | 473 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/stylegan2/model.py | 619 | CODE | |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | training/networks_stylegan3.py | 0 | generator architecture from the paper "alias-free generative adversarial networks". | STRING |
| HIGH | stylegan_human/training/networks_stylegan3.py | 0 | generator architecture from the paper "alias-free generative adversarial networks". | STRING |
| HIGH | …an/training_scripts/sg3/training/networks_stylegan3.py | 0 | generator architecture from the paper "alias-free generative adversarial networks". | STRING |
| HIGH | training/networks_stylegan2.py | 0 | network architectures from the paper "analyzing and improving the image quality of stylegan". matches the original imple | STRING |
| HIGH | stylegan_human/training/networks_stylegan2.py | 0 | network architectures from the paper "analyzing and improving the image quality of stylegan". matches the original imple | STRING |
| HIGH | …an/training_scripts/sg3/training/networks_stylegan2.py | 0 | network architectures from the paper "analyzing and improving the image quality of stylegan". matches the original imple | STRING |
| HIGH | training/dataset.py | 0 | streaming images and labels from datasets created with dataset_tool.py. | STRING |
| HIGH | stylegan_human/training/dataset.py | 0 | streaming images and labels from datasets created with dataset_tool.py. | STRING |
| HIGH | stylegan_human/training_scripts/sg3/training/dataset.py | 0 | streaming images and labels from datasets created with dataset_tool.py. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | legacy.py | 86 | CODE | |
| LOW | visualizer_drag.py | 133 | CODE | |
| LOW | visualizer_drag_gradio.py | 446 | CODE | |
| LOW | torch_utils/misc.py | 82 | CODE | |
| LOW | torch_utils/custom_ops.py | 59 | CODE | |
| LOW | training/networks_stylegan2.py | 33 | CODE | |
| LOW | training/training_loop.py | 90 | CODE | |
| LOW | training/loss.py | 63 | CODE | |
| LOW | viz/drag_widget.py | 91 | CODE | |
| LOW | viz/latent_widget.py | 31 | CODE | |
| LOW | viz/capture_widget.py | 30 | CODE | |
| LOW | viz/renderer.py | 133 | CODE | |
| LOW | viz/pickle_widget.py | 72 | CODE | |
| LOW | viz/pickle_widget.py | 136 | CODE | |
| LOW | stylegan_human/edit.py | 55 | CODE | |
| LOW | stylegan_human/torch_utils/models.py | 466 | CODE | |
| LOW | stylegan_human/torch_utils/custom_ops.py | 61 | CODE | |
| LOW | stylegan_human/torch_utils/custom_ops.py | 142 | CODE | |
| LOW | stylegan_human/openpose/src/body.py | 23 | CODE | |
| LOW | stylegan_human/training/networks_stylegan2.py | 33 | CODE | |
| LOW | stylegan_human/training/training_loop.py | 90 | CODE | |
| LOW | stylegan_human/training/loss.py | 63 | CODE | |
| LOW | …an/training_scripts/sg3/training/networks_stylegan2.py | 34 | CODE | |
| LOW | stylegan_human/training_scripts/sg2/train.py | 35 | CODE | |
| LOW | …egan_human/pti/training/projectors/w_plus_projector.py | 22 | CODE | |
| LOW | stylegan_human/pti/training/projectors/w_projector.py | 22 | CODE | |
| LOW | stylegan_human/pti/pti_models/e4e/psp.py | 56 | CODE | |
| LOW | …egan_human/pti/pti_models/e4e/encoders/psp_encoders.py | 95 | CODE | |
| LOW | …egan_human/pti/pti_models/e4e/encoders/psp_encoders.py | 173 | CODE | |
| LOW | stylegan_human/dnnlib/tflib/custom_ops.py | 89 | CODE | |
| LOW | stylegan_human/dnnlib/tflib/autosummary.py | 79 | CODE | |
| LOW | stylegan_human/dnnlib/tflib/autosummary.py | 120 | CODE | |
| LOW | stylegan_human/dnnlib/tflib/tfutil.py | 166 | CODE | |
| LOW | stylegan_human/dnnlib/tflib/tfutil.py | 196 | CODE | |
| LOW | stylegan_human/dnnlib/tflib/network.py | 355 | CODE | |
| LOW | stylegan_human/dnnlib/tflib/optimizer.py | 158 | CODE | |
| LOW | dnnlib/util.py | 396 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | torch_utils/custom_ops.py | 81 | if os.name == 'nt' and os.system("where cl.exe >nul 2>nul") != 0: | COMMENT |
| LOW | torch_utils/__init__.py | 1 | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | torch_utils/ops/bias_act.cpp | 1 | // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | torch_utils/ops/upfirdn2d.cpp | 1 | // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | torch_utils/ops/filtered_lrelu.cpp | 1 | // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | torch_utils/ops/grid_sample_gradfix.py | 1 | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | torch_utils/ops/__init__.py | 1 | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | torch_utils/ops/filtered_lrelu.h | 1 | // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | torch_utils/ops/conv2d_gradfix.py | 1 | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | training/__init__.py | 1 | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | viz/__init__.py | 1 | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | stylegan_human/torch_utils/custom_ops.py | 81 | COMMENT | |
| LOW | stylegan_human/torch_utils/custom_ops.py | 161 | # Compile and load. | COMMENT |
| LOW | stylegan_human/torch_utils/custom_ops.py | 181 | # | COMMENT |
| LOW | stylegan_human/torch_utils/__init__.py | 1 | # Copyright (c) SenseTime Research. All rights reserved. | COMMENT |
| LOW | stylegan_human/torch_utils/models_face.py | 701 | # def forward(self, input): | COMMENT |
| LOW | stylegan_human/torch_utils/ops/bias_act.cpp | 1 | // Copyright (c) SenseTime Research. All rights reserved. | COMMENT |
| LOW | stylegan_human/torch_utils/ops/upfirdn2d.cpp | 1 | // Copyright (c) SenseTime Research. All rights reserved. | COMMENT |
| LOW | stylegan_human/torch_utils/ops/filtered_lrelu.cpp | 1 | // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | stylegan_human/torch_utils/ops/filtered_lrelu.h | 1 | // Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | stylegan_human/torch_utils/ops/upfirdn2d.h | 1 | // Copyright (c) SenseTime Research. All rights reserved. | COMMENT |
| LOW | stylegan_human/torch_utils/ops/conv2d_gradfix.py | 1 | # Copyright (c) SenseTime Research. All rights reserved. | COMMENT |
| LOW | stylegan_human/training/__init__.py | 1 | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | stylegan_human/utils/face_alignment.py | 81 | # if shrink > 1: | COMMENT |
| LOW | stylegan_human/utils/face_alignment.py | 101 | # int(np.ceil(max(quad[:, 1])))) | COMMENT |
| LOW | stylegan_human/edit/__init__.py | 1 | # Copyright (c) SenseTime Research. All rights reserved. | COMMENT |
| LOW | …HumanSeg/pretrained_model/download_pretrained_model.py | 1 | # coding: utf8 | COMMENT |
| LOW | stylegan_human/PP_HumanSeg/deploy/infer.py | 1 | # Copyright (c) SenseTime Research. All rights reserved. | COMMENT |
| LOW | …uman/PP_HumanSeg/export_model/download_export_model.py | 1 | # coding: utf8 | COMMENT |
| LOW | stylegan_human/dnnlib/__init__.py | 1 | # Copyright (c) SenseTime Research. All rights reserved. | COMMENT |
| LOW | stylegan_human/dnnlib/tflib/ops/__init__.py | 1 | # Copyright (c) SenseTime Research. All rights reserved. | COMMENT |
| LOW | dnnlib/util.py | 401 | # Doesn't look like an URL scheme so interpret it as a local filename. | COMMENT |
| LOW | dnnlib/__init__.py | 1 | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| LOW | gui_utils/__init__.py | 1 | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | visualizer_drag_gradio.py | 350 | def on_change_pretrained_dropdown(pretrained_value, global_state): | STRING |
| LOW | visualizer_drag_gradio.py | 386 | def on_change_update_image_seed(seed, global_state): | STRING |
| LOW | gradio_utils/utils.py | 128 | def on_change_single_global_state(keys, | CODE |
| LOW | torch_utils/persistence.py | 179 | def _reconstruct_persistent_obj(meta): | STRING |
| LOW | training/training_loop.py | 31 | def setup_snapshot_image_grid(training_set, random_seed=0): | CODE |
| LOW | stylegan_human/interpolation.py | 65 | def make_latent_interp_animation(G, code1, code2, img1, img2, num_interps, noise_mode, save_mid_image, truncation_psi,de | CODE |
| LOW | stylegan_human/torch_utils/persistence.py | 181 | def _reconstruct_persistent_obj(meta): | STRING |
| LOW | stylegan_human/training/training_loop.py | 31 | def setup_snapshot_image_grid(training_set, random_seed=0): | CODE |
| LOW⚡ | stylegan_human/training_scripts/sg3/train.py | 120 | def parse_comma_separated_list(s): | CODE |
| LOW⚡ | stylegan_human/training_scripts/sg2/train.py | 35 | def setup_training_loop_kwargs( | CODE |
| LOW | …egan_human/pti/pti_models/e4e/encoders/psp_encoders.py | 165 | def get_deltas_starting_dimensions(self): | CODE |
| LOW | stylegan_human/dnnlib/util.py | 294 | def get_module_dir_by_obj_name(obj_name: str) -> str: | CODE |
| LOW⚡ | stylegan_human/dnnlib/util.py | 305 | def get_top_level_function_name(obj: Any) -> str: | CODE |
| LOW⚡ | stylegan_human/dnnlib/util.py | 317 | def list_dir_recursively_with_ignore(dir_path: str, ignores: List[str] = None, add_base_to_relative: bool = False) -> Li | CODE |
| LOW | stylegan_human/dnnlib/util.py | 350 | def copy_files_and_create_dirs(files: List[Tuple[str, str]]) -> None: | CODE |
| LOW | stylegan_human/dnnlib/tflib/custom_ops.py | 51 | def _get_cuda_gpu_arch_string(): | CODE |
| LOW | stylegan_human/dnnlib/tflib/tfutil.py | 222 | def create_var_with_large_initial_value(initial_value: np.ndarray, *args, **kwargs): | CODE |
| LOW | stylegan_human/dnnlib/tflib/network.py | 343 | def setup_as_moving_average_of(self, src_net: "Network", beta: TfExpressionEx = 0.99, beta_nontrainable: TfExpressio | CODE |
| LOW | stylegan_human/dnnlib/tflib/network.py | 557 | def _handle_legacy_output_transforms(output_transform, dynamic_kwargs): | CODE |
| LOW | stylegan_human/dnnlib/tflib/network.py | 577 | def _legacy_output_transform_func(*expr, out_mul=1.0, out_add=0.0, out_shrink=1, out_dtype=None): | CODE |
| LOW | dnnlib/util.py | 306 | def get_module_dir_by_obj_name(obj_name: str) -> str: | CODE |
| LOW⚡ | dnnlib/util.py | 317 | def get_top_level_function_name(obj: Any) -> str: | CODE |
| LOW⚡ | dnnlib/util.py | 329 | def list_dir_recursively_with_ignore(dir_path: str, ignores: List[str] = None, add_base_to_relative: bool = False) -> Li | CODE |
| LOW | dnnlib/util.py | 362 | def copy_files_and_create_dirs(files: List[Tuple[str, str]]) -> None: | CODE |
| LOW | gui_utils/text_utils.py | 96 | def _get_array_impl_dropshadow(string, *, font=None, size=32, radius: int, offset_x: int, offset_y: int, line_pad: int=N | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gradio_utils/__init__.py | 5 | __all__ = [ | CODE |
| LOW | stylegan_human/dnnlib/util.py | 121 | def set_cache_dir(path: str) -> None: | CODE |
| LOW | stylegan_human/dnnlib/tflib/tfutil.py | 196 | def set_vars(var_to_value_dict: dict) -> None: | CODE |
| LOW | stylegan_human/dnnlib/tflib/network.py | 252 | def set_var(self, var_or_local_name: Union[TfExpression, str], new_value: Union[int, float, np.ndarray]) -> None: | CODE |
| LOW | dnnlib/util.py | 120 | def set_cache_dir(path: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/download_model.py | 54 | except Exception as e: | CODE |
| MEDIUM | scripts/download_model.py | 55 | print(f"An error occurred: {e}") | CODE |
| LOW | stylegan_human/utils/face_alignment.py | 265 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | stylegan_human/legacy.py | 31 | ## We comment out this part, if you want to convert TF pickle, you can use the original script from StyleGAN2-ada-py | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | visualizer_drag_gradio.py | 62 | """This function is called only ones with Gradio App is started. | STRING |
| MEDIUM | stylegan_human/pti/pti_models/e4e/latent_codes_pool.py | 6 | """This class implements latent codes buffer that stores previously generated w latent codes. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | stylegan_human/dnnlib/tflib/optimizer.py | 48 | use_loss_scaling: bool = False, # Enable dynamic loss scaling for robust mix | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/download_model.py | 26 | # Check if request was successful | COMMENT |