Stable Diffusion web UI
641 matches across 12 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | extensions-builtin/SwinIR/scripts/swinir_model.py | 43 | except Exception as e: |
| LOW | extensions-builtin/SwinIR/scripts/swinir_model.py | 79 | except Exception: |
| LOW | …sing-for-training/scripts/postprocessing_focal_crop.py | 37 | except Exception: |
| LOW | extensions-builtin/ScuNET/scripts/scunet_model.py | 31 | except Exception: |
| LOW | extensions-builtin/ScuNET/scripts/scunet_model.py | 42 | except Exception as e: |
| LOW | extensions-builtin/Lora/networks.py | 325 | except Exception as e: |
| LOW | extensions-builtin/Lora/network.py | 39 | except Exception as e: |
| LOW | extensions-builtin/LDSR/sd_hijack_ddpm_v1.py | 453 | except Exception: |
| LOW | extensions-builtin/LDSR/ldsr_model_arch.py | 244 | except Exception: |
| LOW | extensions-builtin/LDSR/scripts/ldsr_model.py | 54 | except Exception: |
| MEDIUM | extensions-builtin/LDSR/scripts/ldsr_model.py | 51 | def do_upscale(self, img, path): |
| LOW | scripts/xyz_grid.py | 729 | except Exception as e: |
| LOW | scripts/prompts_from_file.py | 142 | except Exception: |
| LOW | modules/extras.py | 270 | except Exception as e: |
| LOW | modules/ui_extra_networks.py | 135 | except Exception as err: |
| LOW | modules/ui_extra_networks.py | 163 | except Exception as e: |
| LOW | modules/sd_hijack_optimizations.py | 162 | except Exception: |
| LOW | modules/sd_hijack_optimizations.py | 474 | except Exception as e: |
| LOW | modules/sd_models.py | 84 | except Exception as e: |
| LOW | modules/sd_models.py | 136 | except Exception: |
| LOW | modules/sd_models.py | 304 | except Exception: |
| LOW | modules/sd_models.py | 306 | except Exception: |
| LOW | modules/sd_models.py | 695 | except Exception as e: |
| LOW | modules/sd_models.py | 822 | except Exception as e: |
| LOW | modules/sd_models.py | 982 | except Exception: |
| LOW | modules/options.py | 166 | except Exception as e: |
| LOW | modules/options.py | 203 | except Exception: |
| MEDIUM | modules/options.py | 197 | def load(self, filename): |
| LOW | modules/gfpgan_model.py | 68 | except Exception: |
| LOW | modules/ui_loadsave.py | 32 | except Exception as e: |
| LOW | modules/script_callbacks.py | 258 | except Exception: |
| LOW | modules/script_callbacks.py | 266 | except Exception: |
| LOW | modules/script_callbacks.py | 274 | except Exception: |
| LOW | modules/script_callbacks.py | 284 | except Exception: |
| LOW | modules/script_callbacks.py | 294 | except Exception: |
| LOW | modules/script_callbacks.py | 302 | except Exception: |
| LOW | modules/script_callbacks.py | 310 | except Exception: |
| LOW | modules/script_callbacks.py | 318 | except Exception: |
| LOW | modules/script_callbacks.py | 326 | except Exception: |
| LOW | modules/script_callbacks.py | 334 | except Exception: |
| LOW | modules/script_callbacks.py | 342 | except Exception: |
| LOW | modules/script_callbacks.py | 350 | except Exception: |
| LOW | modules/script_callbacks.py | 358 | except Exception: |
| LOW | modules/script_callbacks.py | 366 | except Exception: |
| LOW | modules/script_callbacks.py | 374 | except Exception: |
| LOW | modules/script_callbacks.py | 382 | except Exception: |
| LOW | modules/script_callbacks.py | 390 | except Exception: |
| LOW | modules/script_callbacks.py | 398 | except Exception: |
| LOW | modules/script_callbacks.py | 408 | except Exception: |
| LOW | modules/script_callbacks.py | 420 | except Exception: |
| LOW | modules/script_callbacks.py | 430 | except Exception: |
| LOW | modules/xpu_specific.py | 9 | except Exception: |
| LOW | modules/logging_config.py | 21 | except Exception: |
| MEDIUM | modules/logging_config.py | 13 | def emit(self, record): |
| LOW | modules/safe.py | 147 | except Exception: |
| MEDIUM | modules/safe.py | 79 | def check_pt(filename, extra_handler): |
| LOW | modules/sd_hijack.py | 187 | except Exception as e: |
| MEDIUM | modules/sd_hijack.py | 184 | def apply_optimizations(self, option=None): |
| LOW | modules/ngrok.py | 25 | except Exception as e: |
| LOW | modules/util.py | 128 | except Exception: |
| 160 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | script.js | 111 | function scheduleAfterUiUpdateCallbacks() { |
| LOW | test/test_img2img.py | 54 | def test_inpainting_masked_performed(url_img2img, simple_img2img_request, mask_basic_image_base64): |
| LOW | test/test_img2img.py | 59 | def test_inpainting_with_inverted_masked_performed(url_img2img, simple_img2img_request, mask_basic_image_base64): |
| LOW | test/test_extras.py | 4 | def test_simple_upscaling_performed(base_url, img2img_basic_image_base64): |
| LOW | test/test_extras.py | 30 | def test_interrogate_performed(base_url, img2img_basic_image_base64): |
| LOW | extensions-builtin/Lora/ui_edit_user_metadata.py | 117 | def put_values_into_components(self, name): |
| LOW | extensions-builtin/Lora/ui_edit_user_metadata.py | 145 | def generate_random_prompt_from_tags(self, tags): |
| LOW | extensions-builtin/Lora/ui_edit_user_metadata.py | 160 | def create_extra_default_items_in_left_column(self): |
| LOW | extensions-builtin/Lora/ui_extra_networks_lora.py | 86 | def allowed_directories_for_previews(self): |
| LOW | extensions-builtin/Lora/ui_extra_networks_lora.py | 89 | def create_user_metadata_editor(self, ui, tabname): |
| LOW | extensions-builtin/Lora/networks.py | 56 | def convert_diffusers_name_to_compvis(key, is_sd2): |
| LOW | extensions-builtin/Lora/networks.py | 122 | def assign_network_names_to_compvis_modules(sd_model): |
| LOW | extensions-builtin/Lora/networks.py | 273 | def purge_networks_from_memory(): |
| LOW | extensions-builtin/Lora/networks.py | 369 | def allowed_layer_without_weight(layer): |
| LOW | extensions-builtin/Lora/networks.py | 391 | def network_restore_weights_from_backup(self: Union[torch.nn.Conv2d, torch.nn.Linear, torch.nn.GroupNorm, torch.nn.Layer |
| LOW | extensions-builtin/Lora/networks.py | 572 | def network_reset_cached_weight(self: Union[torch.nn.Conv2d, torch.nn.Linear]): |
| LOW | extensions-builtin/Lora/networks.py | 675 | def update_available_networks_by_names(names: list[str]): |
| LOW | …ons-builtin/soft-inpainting/scripts/soft_inpainting.py | 36 | def processing_uses_inpainting(p): |
| LOW | …ons-builtin/soft-inpainting/scripts/soft_inpainting.py | 247 | def weighted_histogram_filter(img, kernel, kernel_center, percentile_min=0.0, percentile_max=1.0, min_width=1.0): |
| LOW | …ons-builtin/soft-inpainting/scripts/soft_inpainting.py | 281 | def weighted_histogram_filter_single(idx): |
| LOW | extensions-builtin/LDSR/sd_hijack_ddpm_v1.py | 529 | def _get_denoise_row_from_list(self, samples, desc='', force_no_decoder_quantization=False): |
| LOW | extensions-builtin/LDSR/sd_hijack_ddpm_v1.py | 765 | def differentiable_decode_first_stage(self, z, predict_cids=False, force_not_quantize=False): |
| LOW | extensions-builtin/LDSR/ldsr_model_arch.py | 194 | def make_convolutional_sample(batch, model, custom_steps=None, eta=1.0, quantize_x0=False, custom_shape=None, temperatur |
| LOW | extensions-builtin/hypertile/hypertile.py | 222 | def largest_tile_size_available(width: int, height: int) -> int: |
| LOW | extensions-builtin/hypertile/hypertile.py | 234 | def iterative_closest_divisors(hw:int, aspect_ratio:float) -> tuple[int, int]: |
| LOW | scripts/postprocessing_upscale.py | 15 | def limit_size_by_one_dimention(w, h, limit): |
| LOW | scripts/postprocessing_upscale.py | 59 | def on_selected_upscale_method(upscale_method): |
| LOW | scripts/loopback.py | 50 | def calculate_denoising_strength(loop): |
| LOW | scripts/img2imgalt.py | 66 | def find_noise_for_image_sigma_adjustment(p, cond, uncond, cfg_scale, steps): |
| LOW | scripts/xyz_grid.py | 89 | def confirm_checkpoints_or_none(p, xs): |
| LOW | scripts/xyz_grid.py | 518 | def get_dropdown_update_from_params(axis, params): |
| LOW | javascript/ui.js | 130 | function setSubmitButtonsVisibility(tabname, showInterrupt, showSkip, showInterrupting) { |
| LOW | javascript/ui.js | 140 | function showSubmitInterruptingPlaceholder(tabname) { |
| LOW | javascript/ui.js | 144 | function showRestoreProgressButton(tabname, show) { |
| LOW | javascript/edit-attention.js | 14 | function selectCurrentParenthesisBlock(OPEN, CLOSE) { |
| LOW | javascript/ui_settings_hints.js | 42 | function settingsHintsShowQuicksettings() { |
| LOW | javascript/extraNetworks.js | 131 | function extraNetworksMovePromptToTab(tabname, id, showPrompt, showNegativePrompt) { |
| LOW | javascript/extraNetworks.js | 157 | function extraNetworksShowControlsForPage(tabname, tabname_full) { |
| LOW | javascript/extraNetworks.js | 165 | function extraNetworksUnrelatedTabSelected(tabname) { // called from python when user selects an unrelated tab (generate |
| LOW | javascript/extraNetworks.js | 209 | function tryToRemoveExtraNetworkFromPrompt(textarea, text, isNeg) { |
| LOW | javascript/extraNetworks.js | 279 | function extraNetworksSearchButton(tabname, extra_networks_tabname, event) { |
| LOW | javascript/extraNetworks.js | 288 | function extraNetworksTreeProcessFileClick(event, btn, tabname, extra_networks_tabname) { |
| LOW | javascript/extraNetworks.js | 301 | function extraNetworksTreeProcessDirectoryClick(event, btn, tabname, extra_networks_tabname) { |
| LOW | javascript/extraNetworks.js | 398 | function extraNetworksControlSortOnClick(event, tabname, extra_networks_tabname) { |
| LOW | javascript/extraNetworks.js | 413 | function extraNetworksControlSortDirOnClick(event, tabname, extra_networks_tabname) { |
| LOW | javascript/extraNetworks.js | 434 | function extraNetworksControlTreeViewOnClick(event, tabname, extra_networks_tabname) { |
| LOW | javascript/extraNetworks.js | 452 | function extraNetworksControlRefreshOnClick(event, tabname, extra_networks_tabname) { |
| LOW | javascript/extraNetworks.js | 510 | function extraNetworksFlattenMetadata(obj) { |
| LOW | javascript/extraNetworks.js | 561 | function extraNetworksShowMetadata(text) { |
| LOW | javascript/extraNetworks.js | 608 | function extraNetworksCopyCardPath(event) { |
| LOW | javascript/extraNetworks.js | 613 | function extraNetworksRequestMetadata(event, extraPage) { |
| LOW | javascript/extraNetworks.js | 633 | function extraNetworksEditUserMetadata(event, tabname, extraPage) { |
| LOW | javascript/extraNetworks.js | 656 | function extraNetworksRefreshSingleCard(page, tabname, name) { |
| LOW | javascript/extraNetworks.js | 691 | function scheduleAfterScriptsCallbacks() { |
| LOW | javascript/contextMenus.js | 76 | function addContextMenuEventListener() { |
| LOW | javascript/token-counters.js | 67 | function toggleTokenCountingVisibility(id, id_counter, id_button) { |
| LOW | modules/sd_models_xl.py | 55 | def encode_embedding_init_text(self: sgm.modules.GeneralConditioner, init_text, nvpt): |
| LOW | modules/sd_models_xl.py | 78 | def get_target_prompt_token_count(self, token_count): |
| LOW | modules/ui_extra_networks.py | 25 | def allowed_preview_extensions_with_extra(extra_extensions=None): |
| LOW | modules/ui_extra_networks.py | 29 | def allowed_preview_extensions(): |
| 150 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | webui.py | 48 | |
| LOW | …extra-options-section/scripts/extra_options_section.py | 21 | |
| LOW | extensions-builtin/Lora/ui_edit_user_metadata.py | 21 | |
| LOW | extensions-builtin/Lora/ui_extra_networks_lora.py | 18 | |
| LOW | extensions-builtin/Lora/networks.py | 56 | |
| LOW | extensions-builtin/Lora/networks.py | 158 | |
| LOW | extensions-builtin/Lora/networks.py | 281 | |
| LOW | extensions-builtin/Lora/networks.py | 411 | |
| LOW | extensions-builtin/Lora/network.py | 112 | |
| LOW | extensions-builtin/Lora/network_lora.py | 34 | |
| LOW | extensions-builtin/LDSR/sd_hijack_ddpm_v1.py | 508 | |
| LOW | extensions-builtin/LDSR/sd_hijack_ddpm_v1.py | 653 | |
| LOW | extensions-builtin/LDSR/sd_hijack_ddpm_v1.py | 1244 | |
| LOW | extensions-builtin/LDSR/sd_hijack_ddpm_v1.py | 1395 | |
| LOW | extensions-builtin/hypertile/hypertile.py | 318 | |
| LOW | scripts/postprocessing_upscale.py | 30 | |
| LOW | scripts/loopback.py | 25 | |
| LOW | scripts/xyz_grid.py | 287 | |
| LOW | scripts/xyz_grid.py | 538 | |
| LOW | scripts/xyz_grid.py | 547 | |
| LOW | modules/extras.py | 88 | |
| LOW | modules/ui_extra_networks.py | 511 | |
| LOW | modules/sd_models.py | 284 | |
| LOW | modules/sd_models.py | 410 | |
| LOW | modules/sd_hijack_clip_old.py | 5 | |
| LOW | modules/ui_loadsave.py | 36 | |
| LOW | modules/ui_loadsave.py | 41 | |
| LOW | modules/script_callbacks.py | 150 | |
| LOW | modules/sd_hijack.py | 275 | |
| LOW | modules/sd_samplers_common.py | 37 | |
| LOW | modules/util.py | 31 | |
| LOW | modules/ui.py | 113 | |
| LOW | modules/ui.py | 253 | |
| LOW | modules/interrogate.py | 185 | |
| LOW | modules/modelloader.py | 44 | |
| LOW | modules/sd_samplers_kdiffusion.py | 79 | |
| LOW | modules/ui_checkpoint_merger.py | 30 | |
| LOW | modules/infotext_utils.py | 476 | |
| LOW | modules/infotext_utils.py | 477 | |
| LOW | modules/ui_common.py | 64 | |
| LOW | modules/ui_common.py | 164 | |
| LOW | modules/config_states.py | 18 | |
| LOW | modules/config_states.py | 146 | |
| LOW | modules/sd_hijack_clip.py | 81 | |
| LOW | modules/scripts_postprocessing.py | 172 | |
| LOW | modules/img2img.py | 20 | |
| LOW | modules/img2img.py | 152 | |
| LOW | modules/sd_samplers_extra.py | 7 | |
| LOW | modules/localization.py | 26 | |
| LOW | modules/extensions.py | 228 | |
| LOW | modules/face_restoration_utils.py | 58 | |
| LOW | modules/upscaler_utils.py | 51 | |
| LOW | modules/upscaler_utils.py | 91 | |
| LOW | modules/ui_postprocessing.py | 7 | |
| LOW | modules/images.py | 36 | |
| LOW | modules/images.py | 252 | |
| LOW | modules/images.py | 565 | |
| LOW | modules/images.py | 624 | |
| LOW | modules/images.py | 505 | |
| LOW | modules/styles.py | 132 | |
| 45 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | webui.py | 1 | |
| LOW | test/conftest.py | 36 | |
| LOW | extensions-builtin/Lora/networks.py | 1 | |
| LOW | extensions-builtin/Lora/network.py | 1 | |
| LOW | extensions-builtin/Lora/scripts/lora_script.py | 8 | |
| LOW | extensions-builtin/LDSR/scripts/ldsr_model.py | 7 | |
| LOW | extensions-builtin/LDSR/scripts/ldsr_model.py | 8 | |
| LOW | extensions-builtin/hypertile/hypertile.py | 7 | |
| LOW | modules/sd_models_xl.py | 1 | |
| LOW | modules/sd_hijack_optimizations.py | 1 | |
| LOW | modules/sd_models.py | 133 | |
| LOW | modules/sd_emphasis.py | 1 | |
| LOW | modules/gfpgan_model.py | 1 | |
| LOW | modules/script_callbacks.py | 1 | |
| LOW | modules/xpu_specific.py | 7 | |
| LOW | modules/shared_cmd_options.py | 5 | |
| LOW | modules/shared_cmd_options.py | 5 | |
| LOW | modules/shared_cmd_options.py | 5 | |
| LOW | modules/shared_cmd_options.py | 5 | |
| LOW | modules/shared_cmd_options.py | 5 | |
| LOW | modules/shared_cmd_options.py | 5 | |
| LOW | modules/shared_cmd_options.py | 5 | |
| LOW | modules/paths.py | 3 | |
| LOW | modules/paths.py | 3 | |
| LOW | modules/paths.py | 3 | |
| LOW | modules/paths.py | 3 | |
| LOW | modules/paths.py | 3 | |
| LOW | modules/paths.py | 60 | |
| LOW | modules/shared_options.py | 5 | |
| LOW | modules/shared_options.py | 5 | |
| LOW | modules/shared_options.py | 5 | |
| LOW | modules/shared_options.py | 5 | |
| LOW | modules/shared_options.py | 5 | |
| LOW | modules/shared_options.py | 5 | |
| LOW | modules/shared_options.py | 5 | |
| LOW | modules/shared_options.py | 5 | |
| LOW | modules/sd_samplers.py | 1 | |
| LOW | modules/initialize.py | 15 | |
| LOW | modules/initialize.py | 17 | |
| LOW | modules/initialize.py | 23 | |
| LOW | modules/initialize.py | 26 | |
| LOW | modules/initialize.py | 26 | |
| LOW | modules/initialize.py | 26 | |
| LOW | modules/initialize.py | 29 | |
| LOW | modules/initialize.py | 32 | |
| LOW | modules/initialize.py | 39 | |
| LOW | modules/initialize.py | 39 | |
| LOW | modules/initialize.py | 39 | |
| LOW | modules/ui.py | 12 | |
| LOW | modules/ui.py | 13 | |
| LOW | modules/ui.py | 15 | |
| LOW | modules/modelloader.py | 1 | |
| LOW | modules/infotext_utils.py | 1 | |
| LOW | modules/codeformer_model.py | 1 | |
| LOW | modules/sd_models_types.py | 6 | |
| LOW | modules/shared.py | 7 | |
| LOW | modules/shared.py | 7 | |
| LOW | modules/shared.py | 7 | |
| LOW | modules/shared.py | 7 | |
| LOW | modules/shared.py | 7 | |
| 24 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | modules/script_callbacks.py | 0 | latent image representation in the process of being denoised |
| HIGH | modules/script_callbacks.py | 0 | latent image representation in the process of being denoised |
| HIGH | modules/script_callbacks.py | 0 | latent image representation in the process of being denoised |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | modules/sd_models_types.py | 10 | """This class is not actually instantinated, but its fields are created and fieeld by webui""" |
| MEDIUM | modules/styles.py | 157 | # Create a list of all distinct paths, including the default path |
| MEDIUM | modules/processing.py | 367 | # Create the concatenated conditioning tensor to be fed to `c_concat` |
| MEDIUM | modules/models/sd3/mmdit.py | 1 | ### This file contains impls for MM-DiT, the core model component of SD3 |
| MEDIUM | modules/models/sd3/other_impls.py | 1 | ### This file contains impls for underlying related models (CLIP, T5, etc) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | modules/sd_models.py | 616 | sd_config.model.params.noise_aug_config.params.clip_stats_path = sd_config.model.params.noise_aug_config.params. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | modules/ui_settings.py | 325 | _js="function(v){ var res = desiredCheckpointName; desiredCheckpointName = ''; return [res || v, null]; }", |
| HIGH | modules/ui_settings.py | 325 | _js="function(v){ var res = desiredCheckpointName; desiredCheckpointName = ''; return [res || v, null]; }", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | webui-user.sh | 1 | #!/bin/bash |
| LOW | webui-user.sh | 21 | # python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv) |
| LOW | webui-user.sh | 41 | |
| LOW | extensions-builtin/LDSR/vqvae_quantize.py | 1 | # Vendored from https://raw.githubusercontent.com/CompVis/taming-transformers/24268930bf1dce879235a7fddd0b2355b84d7ea6/t |
| LOW | modules/sub_quadratic_attention.py | 1 | # original source: |
| LOW | modules/launch_utils.py | 321 | if args.use_ipex: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | extensions-builtin/LDSR/vqvae_quantize.py | 85 | inds[inds >= self.used.shape[0]] = 0 # simply set to zero |
| LOW | modules/ui_common.py | 28 | # if the json parse or anything else fails, just return the old html_info |
| LOW | modules/models/sd3/mmdit.py | 532 | # just use a buffer already |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | modules/sd_hijack.py | 124 | #Check if we have weights available |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/ISSUE_TEMPLATE/bug_report.yml | 35 | > Please fill this form with as much information as possible. Don't forget to "Upload Sysinfo" and "What browser |