AI Slop Code RIsk Monitor

AUTOMATIC1111/stable-diffusion-webui

Stable Diffusion web UI

16.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for AUTOMATIC1111/stable-diffusion-webui, a Python project with 165,043 GitHub stars. SynthScan examined 54,662 lines of code across 296 source files, recording 724 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 16.6 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

16.6
Adjusted Signal
16.6
Raw Pattern Score
100%
Time Factor
2026-03-02
Last Push
165.0K
Stars
Python
Language
54.7K
Lines of Code
296
Files
724
Pattern Hits
2026-10-12
Scan Date
0.10
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 30.0/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.0/100 · LOW

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

Agent Over-Engineering Ratio 46.1/100 · MEDIUM

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

PR Review Velocity Impact 58.3/100 · HIGH

Which changes need focused human review? 724 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 1HIGH 30MEDIUM 37LOW 656

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 724 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.

Excessive Try-Catch Wrapping220 hits · 266 pts
SeverityFileLineSnippetContext
LOWextensions-builtin/SwinIR/scripts/swinir_model.py43 except Exception as e:CODE
LOWextensions-builtin/SwinIR/scripts/swinir_model.py79 except Exception:CODE
LOW…sing-for-training/scripts/postprocessing_focal_crop.py37 except Exception:CODE
LOWextensions-builtin/ScuNET/scripts/scunet_model.py31 except Exception:CODE
LOWextensions-builtin/ScuNET/scripts/scunet_model.py42 except Exception as e:CODE
LOWextensions-builtin/Lora/networks.py325 except Exception as e:CODE
LOWextensions-builtin/Lora/network.py39 except Exception as e:CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py453 except Exception:CODE
LOWextensions-builtin/LDSR/ldsr_model_arch.py244 except Exception:CODE
LOWextensions-builtin/LDSR/scripts/ldsr_model.py54 except Exception:CODE
MEDIUMextensions-builtin/LDSR/scripts/ldsr_model.py51def do_upscale(self, img, path):CODE
LOWscripts/xyz_grid.py729 except Exception as e:CODE
LOWscripts/prompts_from_file.py142 except Exception:CODE
LOWmodules/extras.py270 except Exception as e:STRING
LOWmodules/ui_extra_networks.py135 except Exception as err:CODE
LOWmodules/ui_extra_networks.py163 except Exception as e:CODE
LOWmodules/sd_hijack_optimizations.py162 except Exception:CODE
LOW⚡modules/sd_hijack_optimizations.py474 except Exception as e:CODE
LOWmodules/sd_models.py84 except Exception as e:CODE
LOWmodules/sd_models.py136except Exception:CODE
LOWmodules/sd_models.py304 except Exception:CODE
LOWmodules/sd_models.py306 except Exception:CODE
LOWmodules/sd_models.py695 except Exception as e:CODE
LOWmodules/sd_models.py822 except Exception as e:CODE
LOWmodules/sd_models.py982 except Exception:CODE
LOWmodules/options.py166 except Exception as e:CODE
LOWmodules/options.py203 except Exception:CODE
MEDIUMmodules/options.py197def load(self, filename):CODE
LOWmodules/gfpgan_model.py68 except Exception:CODE
LOWmodules/ui_loadsave.py32 except Exception as e:CODE
LOW⚡modules/script_callbacks.py258 except Exception:CODE
LOW⚡modules/script_callbacks.py266 except Exception:CODE
LOW⚡modules/script_callbacks.py274 except Exception:CODE
LOW⚡modules/script_callbacks.py284 except Exception:CODE
LOW⚡modules/script_callbacks.py294 except Exception:CODE
LOW⚡modules/script_callbacks.py302 except Exception:CODE
LOW⚡modules/script_callbacks.py310 except Exception:CODE
LOW⚡modules/script_callbacks.py318 except Exception:CODE
LOW⚡modules/script_callbacks.py326 except Exception:CODE
LOW⚡modules/script_callbacks.py334 except Exception:CODE
LOW⚡modules/script_callbacks.py342 except Exception:CODE
LOW⚡modules/script_callbacks.py350 except Exception:CODE
LOW⚡modules/script_callbacks.py358 except Exception:CODE
LOW⚡modules/script_callbacks.py366 except Exception:CODE
LOW⚡modules/script_callbacks.py374 except Exception:CODE
LOW⚡modules/script_callbacks.py382 except Exception:CODE
LOW⚡modules/script_callbacks.py390 except Exception:CODE
LOW⚡modules/script_callbacks.py398 except Exception:CODE
LOW⚡modules/script_callbacks.py408 except Exception:CODE
LOW⚡modules/script_callbacks.py420 except Exception:CODE
LOW⚡modules/script_callbacks.py430 except Exception:CODE
LOWmodules/xpu_specific.py9except Exception:CODE
LOWmodules/logging_config.py21 except Exception:CODE
MEDIUMmodules/logging_config.py13def emit(self, record):CODE
LOWmodules/safe.py147 except Exception:CODE
MEDIUMmodules/safe.py79def check_pt(filename, extra_handler):CODE
LOWmodules/sd_hijack.py187 except Exception as e:CODE
MEDIUMmodules/sd_hijack.py184def apply_optimizations(self, option=None):CODE
LOWmodules/ngrok.py25 except Exception as e:CODE
LOWmodules/util.py128 except Exception:CODE
160 more matches not shown…
Hyper-Verbose Identifiers210 hits · 212 pts
SeverityFileLineSnippetContext
LOWscript.js111function scheduleAfterUiUpdateCallbacks() {CODE
LOWtest/test_img2img.py54def test_inpainting_masked_performed(url_img2img, simple_img2img_request, mask_basic_image_base64):CODE
LOWtest/test_img2img.py59def test_inpainting_with_inverted_masked_performed(url_img2img, simple_img2img_request, mask_basic_image_base64):CODE
LOWtest/test_extras.py4def test_simple_upscaling_performed(base_url, img2img_basic_image_base64):CODE
LOWtest/test_extras.py30def test_interrogate_performed(base_url, img2img_basic_image_base64):CODE
LOWextensions-builtin/Lora/ui_edit_user_metadata.py117 def put_values_into_components(self, name):CODE
LOWextensions-builtin/Lora/ui_edit_user_metadata.py145 def generate_random_prompt_from_tags(self, tags):CODE
LOWextensions-builtin/Lora/ui_edit_user_metadata.py160 def create_extra_default_items_in_left_column(self):CODE
LOWextensions-builtin/Lora/ui_extra_networks_lora.py86 def allowed_directories_for_previews(self):CODE
LOWextensions-builtin/Lora/ui_extra_networks_lora.py89 def create_user_metadata_editor(self, ui, tabname):CODE
LOWextensions-builtin/Lora/networks.py56def convert_diffusers_name_to_compvis(key, is_sd2):CODE
LOWextensions-builtin/Lora/networks.py122def assign_network_names_to_compvis_modules(sd_model):CODE
LOWextensions-builtin/Lora/networks.py273def purge_networks_from_memory():CODE
LOWextensions-builtin/Lora/networks.py369def allowed_layer_without_weight(layer):CODE
LOWextensions-builtin/Lora/networks.py391def network_restore_weights_from_backup(self: Union[torch.nn.Conv2d, torch.nn.Linear, torch.nn.GroupNorm, torch.nn.LayerCODE
LOWextensions-builtin/Lora/networks.py572def network_reset_cached_weight(self: Union[torch.nn.Conv2d, torch.nn.Linear]):CODE
LOWextensions-builtin/Lora/networks.py675def update_available_networks_by_names(names: list[str]):CODE
LOW…ons-builtin/soft-inpainting/scripts/soft_inpainting.py36def processing_uses_inpainting(p):CODE
LOW…ons-builtin/soft-inpainting/scripts/soft_inpainting.py247def weighted_histogram_filter(img, kernel, kernel_center, percentile_min=0.0, percentile_max=1.0, min_width=1.0):CODE
LOW…ons-builtin/soft-inpainting/scripts/soft_inpainting.py281 def weighted_histogram_filter_single(idx):CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py529 def _get_denoise_row_from_list(self, samples, desc='', force_no_decoder_quantization=False):CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py765 def differentiable_decode_first_stage(self, z, predict_cids=False, force_not_quantize=False):CODE
LOWextensions-builtin/LDSR/ldsr_model_arch.py194def make_convolutional_sample(batch, model, custom_steps=None, eta=1.0, quantize_x0=False, custom_shape=None, temperaturCODE
LOWextensions-builtin/hypertile/hypertile.py222def largest_tile_size_available(width: int, height: int) -> int:CODE
LOWextensions-builtin/hypertile/hypertile.py234def iterative_closest_divisors(hw:int, aspect_ratio:float) -> tuple[int, int]:CODE
LOWscripts/postprocessing_upscale.py15def limit_size_by_one_dimention(w, h, limit):CODE
LOWscripts/postprocessing_upscale.py59 def on_selected_upscale_method(upscale_method):CODE
LOWscripts/loopback.py50 def calculate_denoising_strength(loop):CODE
LOWscripts/img2imgalt.py66def find_noise_for_image_sigma_adjustment(p, cond, uncond, cfg_scale, steps):CODE
LOWscripts/xyz_grid.py89def confirm_checkpoints_or_none(p, xs):CODE
LOWscripts/xyz_grid.py518 def get_dropdown_update_from_params(axis, params):CODE
LOW⚡javascript/ui.js130function setSubmitButtonsVisibility(tabname, showInterrupt, showSkip, showInterrupting) {CODE
LOW⚡javascript/ui.js140function showSubmitInterruptingPlaceholder(tabname) {CODE
LOW⚡javascript/ui.js144function showRestoreProgressButton(tabname, show) {CODE
LOWjavascript/edit-attention.js14 function selectCurrentParenthesisBlock(OPEN, CLOSE) {CODE
LOWjavascript/ui_settings_hints.js42function settingsHintsShowQuicksettings() {CODE
LOWjavascript/extraNetworks.js131function extraNetworksMovePromptToTab(tabname, id, showPrompt, showNegativePrompt) {CODE
LOWjavascript/extraNetworks.js157function extraNetworksShowControlsForPage(tabname, tabname_full) {CODE
LOWjavascript/extraNetworks.js165function extraNetworksUnrelatedTabSelected(tabname) { // called from python when user selects an unrelated tab (generateCODE
LOWjavascript/extraNetworks.js209function tryToRemoveExtraNetworkFromPrompt(textarea, text, isNeg) {CODE
LOWjavascript/extraNetworks.js279function extraNetworksSearchButton(tabname, extra_networks_tabname, event) {CODE
LOWjavascript/extraNetworks.js288function extraNetworksTreeProcessFileClick(event, btn, tabname, extra_networks_tabname) {CODE
LOWjavascript/extraNetworks.js301function extraNetworksTreeProcessDirectoryClick(event, btn, tabname, extra_networks_tabname) {CODE
LOWjavascript/extraNetworks.js398function extraNetworksControlSortOnClick(event, tabname, extra_networks_tabname) {CODE
LOWjavascript/extraNetworks.js413function extraNetworksControlSortDirOnClick(event, tabname, extra_networks_tabname) {CODE
LOWjavascript/extraNetworks.js434function extraNetworksControlTreeViewOnClick(event, tabname, extra_networks_tabname) {CODE
LOWjavascript/extraNetworks.js452function extraNetworksControlRefreshOnClick(event, tabname, extra_networks_tabname) {CODE
LOWjavascript/extraNetworks.js510function extraNetworksFlattenMetadata(obj) {CODE
LOWjavascript/extraNetworks.js561function extraNetworksShowMetadata(text) {CODE
LOWjavascript/extraNetworks.js608function extraNetworksCopyCardPath(event) {CODE
LOWjavascript/extraNetworks.js613function extraNetworksRequestMetadata(event, extraPage) {CODE
LOWjavascript/extraNetworks.js633function extraNetworksEditUserMetadata(event, tabname, extraPage) {CODE
LOWjavascript/extraNetworks.js656function extraNetworksRefreshSingleCard(page, tabname, name) {CODE
LOWjavascript/extraNetworks.js691function scheduleAfterScriptsCallbacks() {CODE
LOWjavascript/contextMenus.js76 function addContextMenuEventListener() {CODE
LOWjavascript/token-counters.js67function toggleTokenCountingVisibility(id, id_counter, id_button) {CODE
LOWmodules/sd_models_xl.py55def encode_embedding_init_text(self: sgm.modules.GeneralConditioner, init_text, nvpt):CODE
LOWmodules/sd_models_xl.py78def get_target_prompt_token_count(self, token_count):CODE
LOWmodules/ui_extra_networks.py25def allowed_preview_extensions_with_extra(extra_extensions=None):CODE
LOWmodules/ui_extra_networks.py29def allowed_preview_extensions():CODE
150 more matches not shown…
Empty Error Handlers28 hits · 140 pts
SeverityFileLineSnippetContext
HIGHextensions-builtin/LDSR/ldsr_model_arch.py244except Exception:CODE
HIGHmodules/ui_extra_networks.py682except OSError:CODE
HIGHmodules/sd_models.py136except Exception:CODE
HIGHmodules/sd_models.py712except ValueError:CODE
HIGHmodules/sd_models.py304except Exception:CODE
HIGHmodules/shared_init.py23except FileNotFoundError:CODE
HIGHmodules/ui_loadsave.py30except FileNotFoundError:CODE
HIGHmodules/xpu_specific.py9except Exception:CODE
HIGHmodules/sd_hijack.py164except AttributeError:CODE
HIGHmodules/sd_hijack.py149except AttributeError:CODE
HIGHmodules/util.py66except ValueError:CODE
HIGHmodules/modelloader.py87except Exception:CODE
HIGHmodules/modelloader.py112except Exception:CODE
HIGHmodules/infotext_utils.py483except OSError:CODE
HIGHmodules/ui_common.py26except Exception:CODE
HIGHmodules/ui_common.py176except Exception:CODE
HIGHmodules/extensions.py149except FileNotFoundError:CODE
HIGHmodules/upscaler.py47except Exception:CODE
HIGHmodules/images.py827except Exception:CODE
HIGHmodules/images.py835except Exception:CODE
HIGHmodules/images.py866except Exception:CODE
HIGHmodules/images.py559except ValueError:CODE
HIGHmodules/import_hook.py15except ImportError:CODE
HIGHmodules/postprocessing.py106except FileNotFoundError:CODE
HIGHmodules/launch_utils.py250except FileNotFoundError:CODE
HIGHmodules/launch_utils.py364except OSError:CODE
HIGHmodules/sd_hijack_utils.py16except ImportError:CODE
HIGHmodules/api/api.py144except Exception:CODE
Deep Nesting105 hits · 102 pts
SeverityFileLineSnippetContext
LOWwebui.py48CODE
LOW…extra-options-section/scripts/extra_options_section.py21CODE
LOWextensions-builtin/Lora/ui_edit_user_metadata.py21CODE
LOWextensions-builtin/Lora/ui_extra_networks_lora.py18CODE
LOWextensions-builtin/Lora/networks.py56CODE
LOWextensions-builtin/Lora/networks.py158CODE
LOWextensions-builtin/Lora/networks.py281CODE
LOWextensions-builtin/Lora/networks.py411CODE
LOWextensions-builtin/Lora/network.py112CODE
LOWextensions-builtin/Lora/network_lora.py34CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py508CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py653CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py1244CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py1395CODE
LOWextensions-builtin/hypertile/hypertile.py318CODE
LOWscripts/postprocessing_upscale.py30CODE
LOWscripts/loopback.py25CODE
LOWscripts/xyz_grid.py287CODE
LOWscripts/xyz_grid.py538CODE
LOWscripts/xyz_grid.py547CODE
LOWmodules/extras.py88CODE
LOWmodules/ui_extra_networks.py511CODE
LOWmodules/sd_models.py284CODE
LOWmodules/sd_models.py410CODE
LOWmodules/sd_hijack_clip_old.py5CODE
LOWmodules/ui_loadsave.py36CODE
LOWmodules/ui_loadsave.py41CODE
LOWmodules/script_callbacks.py150CODE
LOWmodules/sd_hijack.py275CODE
LOWmodules/sd_samplers_common.py37CODE
LOWmodules/util.py31CODE
LOWmodules/ui.py113CODE
LOWmodules/ui.py253CODE
LOWmodules/interrogate.py185CODE
LOWmodules/modelloader.py44CODE
LOWmodules/sd_samplers_kdiffusion.py79CODE
LOWmodules/ui_checkpoint_merger.py30CODE
LOWmodules/infotext_utils.py476CODE
LOWmodules/infotext_utils.py477CODE
LOWmodules/ui_common.py64CODE
LOWmodules/ui_common.py164CODE
LOWmodules/config_states.py18CODE
LOWmodules/config_states.py146CODE
LOWmodules/sd_hijack_clip.py81CODE
LOWmodules/scripts_postprocessing.py172CODE
LOWmodules/img2img.py20CODE
LOWmodules/img2img.py152CODE
LOWmodules/sd_samplers_extra.py7CODE
LOWmodules/localization.py26CODE
LOWmodules/extensions.py228CODE
LOWmodules/face_restoration_utils.py58CODE
LOWmodules/upscaler_utils.py51CODE
LOWmodules/upscaler_utils.py91CODE
LOWmodules/ui_postprocessing.py7CODE
LOWmodules/images.py36CODE
LOWmodules/images.py252CODE
LOWmodules/images.py565CODE
LOWmodules/images.py624CODE
LOWmodules/images.py505CODE
LOWmodules/styles.py132CODE
45 more matches not shown…
Unused Imports84 hits · 83 pts
SeverityFileLineSnippetContext
LOWwebui.py1CODE
LOWtest/conftest.py36CODE
LOWextensions-builtin/Lora/networks.py1CODE
LOWextensions-builtin/Lora/network.py1CODE
LOWextensions-builtin/Lora/scripts/lora_script.py8CODE
LOWextensions-builtin/LDSR/scripts/ldsr_model.py7CODE
LOWextensions-builtin/LDSR/scripts/ldsr_model.py8CODE
LOWextensions-builtin/hypertile/hypertile.py7CODE
LOWmodules/sd_models_xl.py1CODE
LOWmodules/sd_hijack_optimizations.py1CODE
LOWmodules/sd_models.py133CODE
LOWmodules/sd_emphasis.py1CODE
LOWmodules/gfpgan_model.py1CODE
LOWmodules/script_callbacks.py1CODE
LOWmodules/xpu_specific.py7CODE
LOWmodules/shared_cmd_options.py5CODE
LOWmodules/shared_cmd_options.py5CODE
LOWmodules/shared_cmd_options.py5CODE
LOWmodules/shared_cmd_options.py5CODE
LOWmodules/shared_cmd_options.py5CODE
LOWmodules/shared_cmd_options.py5CODE
LOWmodules/shared_cmd_options.py5CODE
LOWmodules/paths.py3CODE
LOWmodules/paths.py3CODE
LOWmodules/paths.py3CODE
LOWmodules/paths.py3CODE
LOWmodules/paths.py3CODE
LOWmodules/paths.py60CODE
LOWmodules/shared_options.py5CODE
LOWmodules/shared_options.py5CODE
LOWmodules/shared_options.py5CODE
LOWmodules/shared_options.py5CODE
LOWmodules/shared_options.py5CODE
LOWmodules/shared_options.py5CODE
LOWmodules/shared_options.py5CODE
LOWmodules/shared_options.py5CODE
LOWmodules/sd_samplers.py1CODE
LOWmodules/initialize.py15CODE
LOWmodules/initialize.py17CODE
LOWmodules/initialize.py23CODE
LOWmodules/initialize.py26CODE
LOWmodules/initialize.py26CODE
LOWmodules/initialize.py26CODE
LOWmodules/initialize.py29CODE
LOWmodules/initialize.py32CODE
LOWmodules/initialize.py39CODE
LOWmodules/initialize.py39CODE
LOWmodules/initialize.py39CODE
LOWmodules/ui.py12CODE
LOWmodules/ui.py13CODE
LOWmodules/ui.py15CODE
LOWmodules/modelloader.py1CODE
LOWmodules/infotext_utils.py1CODE
LOWmodules/codeformer_model.py1CODE
LOWmodules/sd_models_types.py6CODE
LOWmodules/shared.py7CODE
LOWmodules/shared.py7CODE
LOWmodules/shared.py7CODE
LOWmodules/shared.py7CODE
LOWmodules/shared.py7CODE
24 more matches not shown…
AI Structural Patterns50 hits · 50 pts
SeverityFileLineSnippetContext
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py45CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py425CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py1068CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py1099CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py1157CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py1210CODE
LOWextensions-builtin/LDSR/sd_hijack_ddpm_v1.py1244CODE
LOWextensions-builtin/LDSR/ldsr_model_arch.py176CODE
LOWextensions-builtin/LDSR/ldsr_model_arch.py194CODE
LOWextensions-builtin/LDSR/sd_hijack_autoencoder.py21CODE
LOWscripts/postprocessing_upscale.py121CODE
LOWscripts/postprocessing_upscale.py131CODE
LOWscripts/custom_code.py15CODE
LOWscripts/loopback.py140CODE
LOWscripts/poor_mans_outpainting.py145CODE
LOWscripts/img2imgalt.py218CODE
LOWscripts/sd_upscale.py101CODE
LOWmodules/options.py14CODE
LOWmodules/safe.py20CODE
LOWmodules/xlmr.py12CODE
LOWmodules/xlmr.py82CODE
LOWmodules/rng.py96CODE
LOWmodules/sd_vae.py185CODE
LOWmodules/extensions.py190CODE
LOWmodules/upscaler_utils.py162CODE
LOWmodules/images.py624CODE
LOWmodules/sysinfo.py127CODE
LOWmodules/xlmr_m18.py11CODE
LOWmodules/xlmr_m18.py87CODE
LOWmodules/processing.py517CODE
LOWmodules/sd_samplers_timesteps_impl.py167CODE
LOWmodules/hypernetworks/hypernetwork.py148CODE
LOWmodules/models/diffusion/ddpm_edit.py54CODE
LOWmodules/models/diffusion/ddpm_edit.py460CODE
LOWmodules/models/diffusion/ddpm_edit.py1089CODE
LOWmodules/models/diffusion/ddpm_edit.py1120CODE
LOWmodules/models/diffusion/ddpm_edit.py1178CODE
LOWmodules/models/diffusion/ddpm_edit.py1231CODE
LOWmodules/models/diffusion/ddpm_edit.py1265CODE
LOWmodules/models/diffusion/uni_pc/uni_pc.py373CODE
LOWmodules/models/diffusion/uni_pc/uni_pc.py746CODE
LOWmodules/models/diffusion/uni_pc/sampler.py30CODE
LOWmodules/models/sd3/mmdit.py14CODE
LOWmodules/models/sd3/mmdit.py191CODE
LOWmodules/models/sd3/mmdit.py336CODE
LOWmodules/models/sd3/mmdit.py472CODE
LOWmodules/models/sd3/other_impls.py246CODE
LOWmodules/models/sd3/sd3_impls.py306CODE
LOWmodules/textual_inversion/dataset.py21CODE
LOWmodules/textual_inversion/dataset.py33CODE
Self-Referential Comments5 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMmodules/sd_models_types.py10 """This class is not actually instantinated, but its fields are created and fieeld by webui"""STRING
MEDIUMmodules/styles.py157 # Create a list of all distinct paths, including the default pathCOMMENT
MEDIUMmodules/processing.py367 # Create the concatenated conditioning tensor to be fed to `c_concat`COMMENT
MEDIUMmodules/models/sd3/mmdit.py1### This file contains impls for MM-DiT, the core model component of SD3COMMENT
MEDIUMmodules/models/sd3/other_impls.py1### This file contains impls for underlying related models (CLIP, T5, etc)COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALmodules/sd_models.py616 sd_config.model.params.noise_aug_config.params.clip_stats_path = sd_config.model.params.noise_aug_config.params.CODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHmodules/ui_settings.py325 _js="function(v){ var res = desiredCheckpointName; desiredCheckpointName = ''; return [res || v, null]; }",CODE
HIGHmodules/ui_settings.py325 _js="function(v){ var res = desiredCheckpointName; desiredCheckpointName = ''; return [res || v, null]; }",CODE
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWextensions-builtin/SwinIR/scripts/swinir_model.py12logger = logging.getLogger(__name__)CODE
LOWextensions-builtin/hypertile/hypertile.py217def set_hypertile_seed(seed: int) -> None:CODE
LOWmodules/gfpgan_model.py17logger = logging.getLogger(__name__)CODE
LOWmodules/modelloader.py17logger = logging.getLogger(__name__)CODE
LOWmodules/codeformer_model.py16logger = logging.getLogger(__name__)CODE
LOWmodules/face_restoration_utils.py17logger = logging.getLogger(__name__)CODE
LOWmodules/upscaler_utils.py11logger = logging.getLogger(__name__)CODE
LOWmodules/textual_inversion/image_embedding.py12logger = logging.getLogger(__name__)CODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWwebui-user.sh1#!/bin/bashCOMMENT
LOWwebui-user.sh21# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)COMMENT
LOWwebui-user.sh41COMMENT
LOWextensions-builtin/LDSR/vqvae_quantize.py1# Vendored from https://raw.githubusercontent.com/CompVis/taming-transformers/24268930bf1dce879235a7fddd0b2355b84d7ea6/tCOMMENT
LOWmodules/sub_quadratic_attention.py1# original source:COMMENT
LOWmodules/launch_utils.py321 if args.use_ipex:COMMENT
AI Slop Vocabulary3 hits · 4 pts
SeverityFileLineSnippetContext
LOWextensions-builtin/LDSR/vqvae_quantize.py85 inds[inds >= self.used.shape[0]] = 0 # simply set to zeroCODE
LOWmodules/ui_common.py28 # if the json parse or anything else fails, just return the old html_infoCOMMENT
LOWmodules/models/sd3/mmdit.py532 # just use a buffer alreadyCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmodules/sd_hijack.py124 #Check if we have weights availableCOMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOW.github/ISSUE_TEMPLATE/bug_report.yml35 > Please fill this form with as much information as possible. Don't forget to "Upload Sysinfo" and "What browserCODE