Repository Analysis

AUTOMATIC1111/stable-diffusion-webui

Stable Diffusion web UI

14.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of AUTOMATIC1111/stable-diffusion-webui, a Python project with 164,240 GitHub stars. SynthScan v2.0 examined 54,662 lines of code across 296 source files, recording 696 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 14.1 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

14.1
Adjusted Score
14.1
Raw Score
100%
Time Factor
2026-03-02
Last Push
164.2K
Stars
Python
Language
54.7K
Lines of Code
296
Files
696
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 2MEDIUM 37LOW 656

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 696 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Excessive Try-Catch Wrapping220 hits · 267 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
LOWmodules/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
LOWmodules/script_callbacks.py258 except Exception:CODE
LOWmodules/script_callbacks.py266 except Exception:CODE
LOWmodules/script_callbacks.py274 except Exception:CODE
LOWmodules/script_callbacks.py284 except Exception:CODE
LOWmodules/script_callbacks.py294 except Exception:CODE
LOWmodules/script_callbacks.py302 except Exception:CODE
LOWmodules/script_callbacks.py310 except Exception:CODE
LOWmodules/script_callbacks.py318 except Exception:CODE
LOWmodules/script_callbacks.py326 except Exception:CODE
LOWmodules/script_callbacks.py334 except Exception:CODE
LOWmodules/script_callbacks.py342 except Exception:CODE
LOWmodules/script_callbacks.py350 except Exception:CODE
LOWmodules/script_callbacks.py358 except Exception:CODE
LOWmodules/script_callbacks.py366 except Exception:CODE
LOWmodules/script_callbacks.py374 except Exception:CODE
LOWmodules/script_callbacks.py382 except Exception:CODE
LOWmodules/script_callbacks.py390 except Exception:CODE
LOWmodules/script_callbacks.py398 except Exception:CODE
LOWmodules/script_callbacks.py408 except Exception:CODE
LOWmodules/script_callbacks.py420 except Exception:CODE
LOWmodules/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
LOWjavascript/ui.js130function setSubmitButtonsVisibility(tabname, showInterrupt, showSkip, showInterrupting) {CODE
LOWjavascript/ui.js140function showSubmitInterruptingPlaceholder(tabname) {CODE
LOWjavascript/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…
Deep Nesting105 hits · 104 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