AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
136.38k stars 25.99k forks source link

[Bug]: No way to avoid --autolaunch #13173

Open evoluder opened 10 months ago

evoluder commented 10 months ago

Is there an existing issue for this?

What happened?

Autolaunch seems to be enabled by default now, but there does not seem to be a --no_autolaunch to avoid it. This feature is ultra annoying in some environments.

Steps to reproduce the problem

run batch file to start sd, a browser window is attempted to be opened

no command line argument can avoid this, at least not one documented in help files

What should have happened?

a cli argument to avoid the autolaunch should have been implemented once it became default, or becoming default is a bug

Sysinfo

{ "Platform": "Windows-10-10.0.19045-SP0", "Python": "3.10.6", "Version": "v1.6.0", "Commit": "5ef669de080814067961f28357256e8fe27544f4", "Script path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui", "Data path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui", "Extensions dir": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions", "Checksum": "2bffc25817ed3ee87b49dab2f6db9125368eeb6e6117660865eefe117bd455ac", "Commandline": [ "launch.py", "--opt-sdp-attention", "--medvram" ], "Torch env info": { "torch_version": "2.0.0+cu118", "is_debug_build": "False", "cuda_compiled_version": "11.8", "gcc_version": null, "clang_version": null, "cmake_version": null, "os": "Microsoft Windows 10 Pro", "libc_version": "N/A", "python_version": "3.10.6 | packaged by conda-forge | (main, Oct 24 2022, 16:02:16) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)", "python_platform": "Windows-10-10.0.19045-SP0", "is_cuda_available": "True", "cuda_runtime_version": null, "cuda_module_loading": "LAZY", "nvidia_driver_version": "537.13", "nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 3060", "cudnn_version": null, "pip_version": "pip3", "pip_packages": [ "numpy==1.23.5", "open-clip-torch==2.20.0", "pytorch-lightning==1.9.4", "torch==2.0.0+cu118", "torchdiffeq==0.2.3", "torchmetrics==0.11.1", "torchsde==0.2.5", "torchvision==0.15.1+cu118" ], "conda_packages": [ "cudatoolkit 11.3.1 h59b6b97_2 ", "numpy 1.23.3 pypi_0 pypi", "pytorch-lightning 1.4.2 pypi_0 pypi", "torch 1.13.1 pypi_0 pypi", "torch-fidelity 0.3.0 pypi_0 pypi", "torchmetrics 0.6.0 pypi_0 pypi", "torchvision 0.14.1 pypi_0 pypi" ], "hip_compiled_version": "N/A", "hip_runtime_version": "N/A", "miopen_runtime_version": "N/A", "caching_allocator_config": "", "is_xnnpack_available": "True", "cpu_info": [ "Architecture=9", "CurrentClockSpeed=3701", "DeviceID=CPU0", "Family=107", "L2CacheSize=8192", "L2CacheSpeed=", "Manufacturer=AuthenticAMD", "MaxClockSpeed=3701", "Name=AMD Ryzen 9 3950X 16-Core Processor ", "ProcessorType=3", "Revision=28928" ] }, "Exceptions": [ { "exception": "cannot import name 'create_toprow' from 'modules.ui' (C:\Users\anon\Downloads\newstable\stable-diffusion-webui\modules\ui.py)", "traceback": [ [ "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\modules\scripts.py, line 382, load_scripts", "script_module = script_loading.load_module(scriptfile.path)" ], [ "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\modules\script_loading.py, line 10, load_module", "module_spec.loader.exec_module(module)" ], [ ", line 883, exec_module", "" ], [ ", line 241, _call_with_frames_removed", "" ], [ "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\TemporalKit\scripts\sd-TemporalKit-UI.py, line 23, ", "from modules.ui import create_toprow, create_sampler_and_steps_selection" ] ] } ], "CPU": { "model": "AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD", "count logical": 32, "count physical": 16 }, "RAM": { "total": "64GB", "used": "19GB", "free": "45GB" }, "Extensions": [ { "name": "Abysz-LAB-Ext", "path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\Abysz-LAB-Ext", "version": "deff0d4b", "branch": "main", "remote": "https://github.com/AbyszOne/Abysz-LAB-Ext.git" }, { "name": "TemporalKit", "path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\TemporalKit", "version": "3f5ef883", "branch": "main", "remote": "https://github.com/CiaraStrawberry/TemporalKit.git" }, { "name": "a1111-sd-webui-lycoris", "path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\a1111-sd-webui-lycoris", "version": "df9c0093", "branch": "main", "remote": "https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris.git" }, { "name": "deforum", "path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\deforum", "version": "86921f79", "branch": "automatic1111-webui", "remote": "https://github.com/deforum-art/deforum-for-automatic1111-webui" }, { "name": "openpose-editor", "path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\openpose-editor", "version": "722bca6f", "branch": "master", "remote": "https://github.com/fkunn1326/openpose-editor.git" }, { "name": "sd-webui-controlnet", "path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\sd-webui-controlnet", "version": "c03c05e2", "branch": "main", "remote": "https://github.com/Mikubill/sd-webui-controlnet.git" }, { "name": "seed_travel", "path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\seed_travel", "version": "055213df", "branch": "main", "remote": "https://github.com/yownas/seed_travel.git" }, { "name": "ultimate-upscale-for-automatic1111", "path": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\ultimate-upscale-for-automatic1111", "version": "c99f382b", "branch": "master", "remote": "https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git" } ], "Inactive extensions": [], "Environment": { "COMMANDLINE_ARGS": "--opt-sdp-attention --medvram", "GRADIO_ANALYTICS_ENABLED": "False" }, "Config": { "samples_save": true, "samples_format": "png", "samples_filename_pattern": "", "save_images_add_number": true, "grid_save": true, "grid_format": "png", "grid_extended_filename": false, "grid_only_if_multiple": true, "grid_prevent_empty_spots": false, "n_rows": -1, "enable_pnginfo": true, "save_txt": false, "save_images_before_face_restoration": true, "save_images_before_highres_fix": true, "save_images_before_color_correction": false, "jpeg_quality": 80, "export_for_4chan": false, "use_original_name_batch": true, "use_upscaler_name_as_suffix": false, "save_selected_only": true, "do_not_add_watermark": false, "temp_dir": "", "clean_temp_dir_at_start": false, "outdir_samples": "", "outdir_txt2img_samples": "outputs\txt2img-images", "outdir_img2img_samples": "outputs\img2img-images", "outdir_extras_samples": "outputs\extras-images", "outdir_grids": "", "outdir_txt2img_grids": "outputs\txt2img-grids", "outdir_img2img_grids": "outputs\img2img-grids", "outdir_save": "log\images", "save_to_dirs": true, "grid_save_to_dirs": true, "use_save_to_dirs_for_ui": false, "directories_filename_pattern": "[date]", "directories_max_prompt_words": 8, "ESRGAN_tile": 192, "ESRGAN_tile_overlap": 8, "realesrgan_enabled_models": [ "R-ESRGAN 4x+", "R-ESRGAN 4x+ Anime6B", "R-ESRGAN General 4xV3" ], "upscaler_for_img2img": null, "face_restoration_model": "CodeFormer", "code_former_weight": 0.25, "face_restoration_unload": false, "show_warnings": false, "memmon_poll_rate": 8, "samples_log_stdout": false, "multiple_tqdm": true, "print_hypernet_extra": false, "unload_models_when_training": false, "pin_memory": false, "save_optimizer_state": false, "save_training_settings_to_txt": true, "dataset_filename_word_regex": "", "dataset_filename_join_string": " ", "training_image_repeats_per_epoch": 1, "training_write_csv_every": 500, "training_xattention_optimizations": false, "training_enable_tensorboard": false, "training_tensorboard_save_images": false, "training_tensorboard_flush_every": 120, "sd_model_checkpoint": "meinahentai_v4.safetensors [8145104977]", "sd_checkpoint_cache": 0, "sd_vae_checkpoint_cache": 0, "sd_vae": "None", "sd_vae_as_default": false, "inpainting_mask_weight": 1.0, "initial_noise_multiplier": 1.0, "img2img_color_correction": true, "img2img_fix_steps": true, "img2img_background_color": "#ffffff", "enable_quantization": false, "enable_emphasis": true, "enable_batch_seeds": true, "comma_padding_backtrack": 20, "CLIP_stop_at_last_layers": 2, "upcast_attn": false, "use_old_emphasis_implementation": false, "use_old_karras_scheduler_sigmas": false, "use_old_hires_fix_width_height": false, "interrogate_keep_models_in_memory": false, "interrogate_return_ranks": false, "interrogate_clip_num_beams": 1, "interrogate_clip_min_length": 24, "interrogate_clip_max_length": 48, "interrogate_clip_dict_limit": 1500, "interrogate_clip_skip_categories": [], "interrogate_deepbooru_score_threshold": 0.5, "deepbooru_sort_alpha": true, "deepbooru_use_spaces": false, "deepbooru_escape": true, "deepbooru_filter_tags": "", "extra_networks_default_view": "cards", "extra_networks_default_multiplier": 1.0, "sd_hypernetwork": "None", "return_grid": true, "do_not_show_images": false, "add_model_hash_to_info": true, "add_model_name_to_info": true, "disable_weights_auto_swap": true, "send_seed": true, "send_size": true, "font": "", "js_modal_lightbox": true, "js_modal_lightbox_initially_zoomed": true, "show_progress_in_title": true, "samplers_in_dropdown": true, "dimensions_and_batch_together": true, "keyedit_precision_attention": 0.1, "keyedit_precision_extra": 0.05, "quicksettings": "sd_model_checkpoint, initial_noise_multiplier, img2img_color_correction", "ui_reorder": "inpaint, sampler, checkboxes, hires_fix, dimensions, cfg, seed, batch, override_settings, scripts", "ui_extra_networks_tab_reorder": "", "localization": "None", "show_progressbar": true, "live_previews_enable": true, "show_progress_grid": true, "show_progress_every_n_steps": 10, "show_progress_type": "Full", "live_preview_content": "Prompt", "live_preview_refresh_period": 1000, "hide_samplers": [], "eta_ddim": 0.0, "eta_ancestral": 1.0, "ddim_discretize": "uniform", "s_churn": 0.3, "s_tmin": 0.0, "s_noise": 1.0, "eta_noise_seed_delta": 0, "always_discard_next_to_last_sigma": false, "postprocessing_enable_in_main_ui": [], "postprocessing_operation_order": [], "upscaling_max_images_in_cache": 5, "disabled_extensions": [], "sd_checkpoint_hash": "814510497782af7b2ed8b7cfcd9c4011a2ad9e93ddc0ee00b7041a53209ff45a", "ldsr_steps": 100, "ldsr_cached": false, "SWIN_tile": 192, "SWIN_tile_overlap": 8, "sd_lora": "None", "lora_apply_to_outputs": false, "img_downscale_threshold": 4.0, "target_side_length": 4000.0, "no_dpmpp_sde_batch_determinism": false, "control_net_model_config": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\sd-webui-controlnet\models\cldm_v15.yaml", "control_net_model_adapter_config": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\sd-webui-controlnet\models\sketch_adapter_v14.yaml", "control_net_detectedmap_dir": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\sd-webui-controlnet\detected_maps", "control_net_models_path": "", "control_net_max_models_num": 3, "control_net_model_cache_size": 3, "control_net_control_transfer": false, "control_net_no_detectmap": true, "control_net_detectmap_autosaving": false, "control_net_only_midctrl_hires": true, "control_net_allow_script_control": false, "control_net_skip_img2img_processing": false, "control_net_monocular_depth_optim": false, "control_net_only_mid_control": false, "control_net_cfg_based_guidance": false, "disable_all_extensions": "none", "uni_pc_order": 3, "restore_config_state_file": "", "quicksettings_list": [ "sd_model_checkpoint", "initial_noise_multiplier", "img2img_color_correction", "CLIP_stop_at_last_layers", "sd_vae" ], "save_mask": false, "save_mask_composite": false, "webp_lossless": false, "img_max_size_mp": 200.0, "save_init_img": false, "outdir_init_images": "outputs/init-images", "SCUNET_tile": 256, "SCUNET_tile_overlap": 8, "randn_source": "GPU", "dont_fix_second_order_samplers_schedule": false, "lora_functional": false, "extra_networks_card_width": 0.0, "extra_networks_card_height": 0.0, "extra_networks_add_text_separator": " ", "lora_preferred_name": "Alias from file", "return_mask": false, "return_mask_composite": false, "js_modal_lightbox_gamepad": true, "js_modal_lightbox_gamepad_repeat": 250.0, "keyedit_delimiters": ".,\/!?%^*;:{}=`~()", "hidden_tabs": [], "gradio_theme": "Default", "add_version_to_infotext": true, "s_min_uncond": 0, "uni_pc_variant": "bh1", "uni_pc_skip_type": "time_uniform", "uni_pc_lower_order_final": true, "deforum_enable_persistent_settings": false, "deforum_persistent_settings_path": "models/Deforum/deforum_persistent_settings.txt", "deforum_ffmpeg_location": "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\venv\lib\site-packages\imageio_ffmpeg\binaries\ffmpeg-win64-v4.2.2.exe", "deforum_ffmpeg_crf": 17, "deforum_ffmpeg_preset": "slow", "deforum_debug_mode_enabled": false, "deforum_save_gen_info_as_srt": false, "deforum_embed_srt": false, "deforum_save_gen_info_as_srt_params": [ "Noise Schedule" ], "control_net_modules_path": "", "control_net_sync_field_args": false, "controlnet_show_batch_images_in_ui": false, "controlnet_increment_seed_during_batch": false, "controlnet_disable_control_type": false, "dp_ignore_whitespace": false, "dp_write_raw_template": false, "dp_write_prompts_to_file": false, "dp_parser_variant_start": "{", "dp_parser_variant_end": "}", "dp_parser_wildcard_wrap": "__", "dp_limit_jinja_prompts": false, "dp_auto_purge_cache": false, "dp_magicprompt_default_model": "Gustavosta/MagicPrompt-Stable-Diffusion", "dp_magicprompt_batch_size": 1, "list_hidden_files": true, "cross_attention_optimization": "Automatic", "token_merging_ratio": 0, "token_merging_ratio_img2img": 0, "token_merging_ratio_hr": 0, "extra_networks_show_hidden_directories": true, "extra_networks_hidden_models": "When searched", "lora_add_hashes_to_infotext": true, "img2img_editor_height": 720, "ui_tab_order": [], "hires_fix_show_sampler": false, "hires_fix_show_prompts": false, "live_previews_image_format": "png", "sd_lyco": "None", "def_img_cfg": "1.5", "controlnet_disable_openpose_edit": false, "ui_reorder_list": [ "inpaint", "sampler", "checkboxes", "hires_fix", "dimensions", "cfg", "seed", "batch", "override_settings", "scripts" ], "sd_vae_overrides_per_model_preferences": true }, "Startup": { "total": 22.290237188339233, "records": { "initial startup": 0.001001119613647461, "prepare environment/checks": 0.01601409912109375, "prepare environment/git version info": 0.06505942344665527, "prepare environment/torch GPU test": 2.3050928115844727, "prepare environment/clone repositores": 0.1561417579650879, "prepare environment/run extensions installers/a1111-sd-webui-lycoris": 0.001001119613647461, "prepare environment/run extensions installers/Abysz-LAB-Ext": 0.0, "prepare environment/run extensions installers/deforum": 0.12811636924743652, "prepare environment/run extensions installers/openpose-editor": 0.0, "prepare environment/run extensions installers/sd-webui-controlnet": 0.5094621181488037, "prepare environment/run extensions installers/seed_travel": 3.1758835315704346, "prepare environment/run extensions installers/TemporalKit": 3.2139177322387695, "prepare environment/run extensions installers/ultimate-upscale-for-automatic1111": 0.0, "prepare environment/run extensions installers": 7.028380870819092, "prepare environment": 9.648759841918945, "launcher": 0.0030028820037841797, "import torch": 4.190804481506348, "import gradio": 1.7676048278808594, "setup paths": 0.7777059078216553, "import ldm": 0.007006645202636719, "import sgm": 0.0, "initialize shared": 0.2722470760345459, "other imports": 0.8067324161529541, "opts onchange": 0.001001119613647461, "setup SD model": 0.0040035247802734375, "setup codeformer": 0.17015480995178223, "setup gfpgan": 0.028024911880493164, "set samplers": 0.0, "list extensions": 0.0010013580322265625, "restore config state file": 0.0, "list SD models": 0.019016742706298828, "list localizations": 0.001001119613647461, "load scripts/custom_code.py": 0.007006645202636719, "load scripts/img2imgalt.py": 0.0, "load scripts/loopback.py": 0.0010008811950683594, "load scripts/outpainting_mk_2.py": 0.0, "load scripts/poor_mans_outpainting.py": 0.0010006427764892578, "load scripts/postprocessing_codeformer.py": 0.0, "load scripts/postprocessing_gfpgan.py": 0.0, "load scripts/postprocessing_upscale.py": 0.001001119613647461, "load scripts/prompt_interpolation.py": 0.0, "load scripts/prompt_matrix.py": 0.0010008811950683594, "load scripts/prompts_from_file.py": 0.0, "load scripts/refiner.py": 0.0010013580322265625, "load scripts/sd_upscale.py": 0.0, "load scripts/seed.py": 0.0010006427764892578, "load scripts/videos.py": 0.0, "load scripts/xyz_grid.py": 0.0030024051666259766, "load scripts/Abysz_Lab.py": 1.2911722660064697, "load scripts/Berry_Method.py": 0.2602362632751465, "load scripts/Ebsynth_Processing.py": 0.0040035247802734375, "load scripts/TemporalKitImg2ImgTab.py": 0.0010013580322265625, "load scripts/berry_utility.py": 0.0, "load scripts/optical_flow_raft.py": 0.12311100959777832, "load scripts/optical_flow_simple.py": 0.0010013580322265625, "load scripts/sd-TemporalKit-UI.py": 0.002001523971557617, "load scripts/stable_diffusion_processing.py": 0.001001119613647461, "load scripts/lycoris_script.py": 0.0020012855529785156, "load scripts/deforum.py": 0.13712453842163086, "load scripts/deforum_api.py": 0.0010013580322265625, "load scripts/deforum_api_models.py": 0.006005048751831055, "load scripts/deforum_extend_paths.py": 0.0, "load scripts/main.py": 0.043039798736572266, "load scripts/adapter.py": 0.0010008811950683594, "load scripts/api.py": 0.29126477241516113, "load scripts/batch_hijack.py": 0.0010006427764892578, "load scripts/cldm.py": 0.0010008811950683594, "load scripts/controlmodel_ipadapter.py": 0.0010013580322265625, "load scripts/controlnet.py": 0.16214656829833984, "load scripts/controlnet_diffusers.py": 0.0, "load scripts/controlnet_lllite.py": 0.0010008811950683594, "load scripts/controlnet_lora.py": 0.0, "load scripts/controlnet_model_guess.py": 0.0010008811950683594, "load scripts/controlnet_version.py": 0.0, "load scripts/external_code.py": 0.0010006427764892578, "load scripts/global_state.py": 0.0, "load scripts/hook.py": 0.002002239227294922, "load scripts/infotext.py": 0.0, "load scripts/logging.py": 0.0, "load scripts/lvminthin.py": 0.0010004043579101562, "load scripts/movie2movie.py": 0.0, "load scripts/processor.py": 0.0010013580322265625, "load scripts/utils.py": 0.0, "load scripts/xyz_grid_support.py": 0.0010006427764892578, "load scripts/seed_travel.py": 0.011010169982910156, "load scripts/ultimate-upscale.py": 0.0010008811950683594, "load scripts/ldsr_model.py": 0.040036916732788086, "load scripts/lora_script.py": 0.20418477058410645, "load scripts/scunet_model.py": 0.037034034729003906, "load scripts/swinir_model.py": 0.0370330810546875, "load scripts/hotkey_config.py": 0.0010013580322265625, "load scripts/extra_options_section.py": 0.0, "load scripts": 2.685438394546509, "load upscalers": 0.005004167556762695, "refresh VAE": 0.0020020008087158203, "refresh textual inversion templates": 0.0, "scripts list_optimizers": 0.0010008811950683594, "scripts list_unets": 0.0, "reload hypernetworks": 0.0040035247802734375, "initialize extra networks": 0.012011051177978516, "scripts before_ui_callback": 0.001001119613647461, "create ui": 1.416285514831543, "gradio launch": 0.5314829349517822, "add APIs": 0.008007287979125977, "app_started_callback/api.py": 0.002001523971557617, "app_started_callback/lora_script.py": 0.0010008811950683594, "app_started_callback": 0.0030024051666259766 } }, "Packages": [ "absl-py==1.4.0", "accelerate==0.21.0", "addict==2.4.0", "aenum==3.1.11", "aiofiles==22.1.0", "aiohttp==3.8.3", "aiosignal==1.3.1", "altair==4.2.2", "antlr4-python3-runtime==4.9.3", "anyio==3.6.2", "appdirs==1.4.4", "asttokens==2.2.1", "async-timeout==4.0.2", "attrs==22.2.0", "av==10.0.0", "backcall==0.2.0", "basicsr==1.4.2", "beautifulsoup4==4.11.2", "blendmodes==2022", "blis==0.7.9", "boltons==21.0.0", "cachetools==5.3.0", "catalogue==2.0.8", "certifi==2022.12.7", "cffi==1.15.1", "chardet==4.0.0", "charset-normalizer==2.1.1", "clean-fid==0.1.35", "click==8.1.3", "clip==1.0", "colorama==0.4.6", "confection==0.0.4", "contourpy==1.0.7", "cssselect2==0.7.0", "cycler==0.11.0", "cymem==2.0.7", "decorator==4.4.2", "deprecation==2.1.0", "dynamicprompts==0.27.0", "einops==0.4.1", "entrypoints==0.4", "executing==1.2.0", "facexlib==0.2.5", "fastapi==0.94.0", "ffmpeg-python==0.2.0", "ffmpy==0.3.0", "filelock==3.9.0", "filterpy==1.4.5", "flatbuffers==23.3.3", "font-roboto==0.0.1", "fonts==0.0.3", "fonttools==4.38.0", "frozenlist==1.3.3", "fsspec==2023.1.0", "ftfy==6.1.1", "future==0.18.3", "fvcore==0.1.5.post20221221", "gdown==4.6.0", "gfpgan==1.3.8", "gitdb==4.0.10", "gitpython==3.1.32", "google-auth-oauthlib==0.4.6", "google-auth==2.16.0", "gradio-client==0.5.0", "gradio==3.41.2", "grpcio==1.51.1", "h11==0.12.0", "httpcore==0.15.0", "httpx==0.23.3", "huggingface-hub==0.16.4", "idna==2.10", "imageio-ffmpeg==0.4.8", "imageio==2.31.2", "importlib-resources==6.0.1", "inflection==0.5.1", "iopath==0.1.9", "ipython==8.12.0", "jedi==0.18.2", "jinja2==3.1.2", "jsonmerge==1.8.0", "jsonschema==4.17.3", "kiwisolver==1.4.4", "kornia==0.6.7", "langcodes==3.3.0", "lark==1.1.2", "lazy-loader==0.2", "lightning-utilities==0.8.0", "linkify-it-py==1.0.3", "llvmlite==0.39.1", "lmdb==1.4.0", "lpips==0.1.4", "lxml==4.9.2", "markdown-it-py==2.1.0", "markdown==3.4.1", "markupsafe==2.1.2", "matplotlib-inline==0.1.6", "matplotlib==3.6.3", "mdit-py-plugins==0.3.3", "mdurl==0.1.2", "mediapipe==0.9.3.0", "moviepy==1.0.3", "mpmath==1.3.0", "multidict==6.0.4", "murmurhash==1.0.9", "networkx==3.0", "numba==0.56.4", "numexpr==2.8.4", "numpy==1.23.5", "oauthlib==3.2.2", "omegaconf==2.2.3", "open-clip-torch==2.20.0", "opencv-contrib-python==4.7.0.72", "opencv-python==4.8.0.76", "orjson==3.8.5", "packaging==23.0", "pandas==1.5.3", "parso==0.8.3", "pathy==0.10.1", "pickleshare==0.7.5", "piexif==1.1.3", "pillow==9.5.0", "pims==0.6.0", "pip==22.2.1", "portalocker==2.7.0", "preshed==3.0.8", "proglog==0.1.10", "prompt-toolkit==3.0.38", "protobuf==3.20.0", "psutil==5.9.5", "pure-eval==0.2.2", "py3d==0.0.85", "pyasn1-modules==0.2.8", "pyasn1==0.4.8", "pycparser==2.21", "pycryptodome==3.17", "pydantic==1.10.4", "pydeprecate==0.3.2", "pydub==0.25.1", "pygments==2.14.0", "pyparsing==3.0.9", "pyrsistent==0.19.3", "pysocks==1.7.1", "python-dateutil==2.8.2", "python-multipart==0.0.4", "pytorch-lightning==1.9.4", "pytz==2022.7.1", "pywavelets==1.4.1", "pywin32==306", "pyyaml==6.0", "realesrgan==0.3.0", "regex==2022.10.31", "reportlab==3.6.12", "requests-oauthlib==1.3.1", "requests==2.25.1", "resize-right==0.0.2", "rfc3986==1.5.0", "rich==13.3.1", "rsa==4.9", "safetensors==0.3.1", "scenedetect==0.6.1", "scikit-image==0.21.0", "scipy==1.10.0", "semantic-version==2.10.0", "send2trash==1.8.0", "sentencepiece==0.1.97", "setuptools==63.2.0", "six==1.16.0", "slicerator==1.1.0", "smart-open==6.3.0", "smmap==5.0.0", "sniffio==1.3.0", "sounddevice==0.4.6", "soupsieve==2.3.2.post1", "spacy-legacy==3.0.12", "spacy-loggers==1.0.4", "spacy==3.5.3", "srsly==2.4.6", "stack-data==0.6.2", "starlette==0.26.1", "svglib==1.5.1", "sympy==1.12", "tabulate==0.9.0", "tb-nightly==2.12.0a20230126", "tensorboard-data-server==0.6.1", "tensorboard-plugin-wit==1.8.1", "tensorboard==2.11.2", "termcolor==2.3.0", "thinc==8.1.10", "tifffile==2023.1.23.1", "timm==0.9.2", "tinycss2==1.2.1", "tokenizers==0.13.2", "tomesd==0.1.3", "toolz==0.12.0", "torch==2.0.0+cu118", "torchdiffeq==0.2.3", "torchmetrics==0.11.1", "torchsde==0.2.5", "torchvision==0.15.1+cu118", "tqdm==4.64.1", "traitlets==5.9.0", "trampoline==0.1.2", "transformers==4.30.2", "typer==0.7.0", "typing-extensions==4.4.0", "uc-micro-py==1.0.1", "urllib3==1.26.14", "uvicorn==0.20.0", "wasabi==1.1.1", "wcwidth==0.2.6", "webencodings==0.5.1", "websockets==10.4", "werkzeug==2.2.2", "wheel==0.38.4", "xformers==0.0.16rc425", "yacs==0.1.8", "yapf==0.32.0", "yarl==1.8.2" ] }

What browsers do you use to access the UI ?

Google Chrome

Console logs

venv "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 | packaged by conda-forge | (main, Oct 24 2022, 16:02:16) [MSC v.1916 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing requirements for Seed Travel
Installing requirements for TemporalKit extension
Launching Web UI with arguments: --opt-sdp-attention --medvram
WARNING:xformers:WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
    PyTorch 1.13.1+cu117 with CUDA 1107 (you have 2.0.0+cu118)
    Python  3.10.9 (you have 3.10.6)
  Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
  Memory-efficient attention, SwiGLU, sparse and more won't be available.
  Set XFORMERS_MORE_DETAILS=1 for more details
No module 'xformers'. Proceeding without it.
*** Error loading script: sd-TemporalKit-UI.py
    Traceback (most recent call last):
      File "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\TemporalKit\scripts\sd-TemporalKit-UI.py", line 23, in <module>
        from modules.ui import create_toprow, create_sampler_and_steps_selection
    ImportError: cannot import name 'create_toprow' from 'modules.ui' (C:\Users\anon\Downloads\newstable\stable-diffusion-webui\modules\ui.py)

---

========================= a1111-sd-webui-lycoris =========================
Starting from stable-diffusion-webui version 1.5.0
a1111-sd-webui-lycoris extension is no longer needed

All its features have been integrated into the native LoRA extension
LyCORIS models can now be used as if there are regular LoRA models

This extension has been automatically deactivated
Please remove this extension
==========================================================================

2023-09-09 13:43:50,431 - ControlNet - INFO - ControlNet v1.1.405
ControlNet preprocessor location: C:\Users\anon\Downloads\newstable\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-09-09 13:43:50,593 - ControlNet - INFO - ControlNet v1.1.405
Loading weights [8145104977] from C:\Users\anon\Downloads\newstable\stable-diffusion-webui\models\Stable-diffusion\meinahentai_v4.safetensors
LAB
*Deforum ControlNet support: enabled*
Creating model from config: C:\Users\anon\Downloads\newstable\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 22.3s (prepare environment: 9.6s, import torch: 4.2s, import gradio: 1.8s, setup paths: 0.8s, initialize shared: 0.3s, other imports: 0.8s, setup codeformer: 0.2s, load scripts: 2.7s, create ui: 1.4s, gradio launch: 0.5s).
Applying attention optimization: sdp... done.
Model loaded in 6.9s (load weights from disk: 1.6s, create model: 0.5s, apply weights to model: 2.4s, calculate empty prompt: 2.4s).

Additional information

please add option to prevent autoload of browser

verdooft commented 10 months ago

Settings -> System -> Automatically open webui in browser on startup -> Disable

w-e-w commented 10 months ago

https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/12254 well I did originally go for the --disable-auto-autolaunch but auto like it better in settings

silveroxides commented 10 months ago

12254 well I did originally go for the --disable-auto-autolaunch but auto like it better in settings

Like the settings in the webui? So in order to prevent webui autolaunch one must first just deal with it and have it force open a websockets connection to localhost on the system default browser, then navigate to settings and turn it off there? Well this get added to the list of whack nonsensical decisions for version 1.6.0. So much is broken. So many extensions that worked fine even though not actively maintained are not broken because of all the anti-user interface changes done.

w-e-w commented 10 months ago

@silveroxides

Like the settings in the webui? So in order to prevent webui autolaunch one must first just deal with it and have it force open a websockets connection to localhost on the system default browser

no option 1 set env SD_WEBUI_RESTARTING = 1 option 2 prepare configs with that turned off, configs can be prepared and edit manually it doesn't necessarily require you use the UI, if you have a script that automatically deploys a new instance of web UI it's a easy matter to prepare a config with the settings you already want to use

also by default it only opens in browser only if

  1. when it is not in no-webui mode (api only)
  2. the webui instance is not accessible remotely, if you're not using things like share or listen to open web you are to non-local requests
  3. as far as I understand if you pass these 2 conditions, it means you're eventually going to open a browser this change makes the behavior similar to most applications that can launch in the background like some sort of text communication program. after first install, it automatically open the application window you can configure it so that it launches in background without the front and window in settings


what specific extensions is broken gradio by opening a browser which interface change specifically you considered anti-user what specific thing you don't like the code is entirely open source if you don't like something you're free to change it better yet you can contribute to the project so that you can make changes that you like or if you don't like coding then you could give feedback during development process on what you like and what you don't like things can be far more easily changed during the dev process

I consider this to be more user friendly we users asking "why webui have stop" while in reality they're just looking at the console with the web UI completely loaded the IP address displayed but they don't know they should click it

when we working on new features we are very careful to try not break things but things do break from time to time such as changes brought by upgrading gradio to 3.41

on one side you have people that says nothing to ever change on what on the other side you ask people asking us to upgrade specific versions of package such as cradle


at the end of the day no one is forcing anyone to upgrade update is totally opt in and is manual if you're using an external script launcher that automates updateing, then that's the scripts or launchers doing not us extension upgrade is the same deal opt in

after everything is installed and assets downloaded, webui can function offline (not factoring in extensions certain extensions) which means theoretically if nothing else is change on your computer it can work until the end of time or till your computer breaks

silveroxides commented 10 months ago

Where are the documentation that setting env SD_WEBUI_RESTARTING = 1 would prevent the autolaunch? I search for that in the repository and wiki says 0. I search for autolaunch and wiki still says 3 The suggestions you are giving are considering the workarounds needed to be done to even find out about them clearly not intended for the first time user. The suggestions you gave require prerequisite knowledge and intuition(since there is no indication previously mentioned) on how to search a github repo, navigate through it, understand terminology not commonly understood by others that those that have some experience already. Thing is. The whole "user support" side of running the webui is taking place on other places such as civitai discord, other sd related discords and telegram groups. Daily. By the thousands. Why? Because the use of this webui have stretched far beyond being used by those with technical experience. Yeah I would contribute if I was actually able to have the energy to spare. I have contributed by informing on abandoned extensions and possible maintained forks in the past. I know some Python but not confident enough or have the energy to go through the entire repo and learn it in order to do even more stuff.

But not gonna argue anymore. Not really any use of it. You do yours and we will do ours will providing support for users

w-e-w commented 10 months ago

Where are the documentation that setting env SD_WEBUI_RESTARTING = 1 would prevent the autolaunch .......... it's "actually" any non blank value I updated the documentation https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings to include SD_WEBUI_RESTARTING

documentation has been lacking behind, we simply don't have enough people to do it properly, there's less than 10 of us that's actively working on webui (10 is a generous number) for a while back we did open Wiki edits to the public, in hopes that people would fill in documentation due to such engine issues we have to close the wiki edit, but during the time only a few people have tried to contribute to the documentation I do have plans to setting up a method to let every submit changes to the wiki but it's still in the works

The suggestions you are giving are considering the workarounds needed to be done to even find out about them clearly not intended for the first time user. The suggestions you gave require prerequisite knowledge and intuition(since there is no indication previously mentioned) on how to search a github repo, navigate through it, understand terminology not commonly understood by others that those that have some experience already.

yes indeed, this is the case logic as I have said in the previous comment is that we believe most users under those launch circumstances will want to launch it automatically, that's why we enable this option by default and we believe that having a ui setting as opposed to a command line arg is more user friendly

if you would like to have an opposite opinion like say this option should be disabled by default please voice them

"user support" side of running the webui is taking place on other places such as civitai discord, other sd related discords and telegram groups

yes lots of support is done not on GitHub, I personally also provide support from time to time on Github but at the end of the day if the user feedback does not reach us either via GitHub or other means we cannot act on it if there's an issue that cause a breaking in certain extensions, we'd like to know I think I need to point out that we do not have any telemetry so most of the feedback we got is from GitHub if there are things that I mentioned multiple times that the user wants change, relay them here if possible

we do everything in the public in this case the auto launch feature took about 1 month from its initial proposal to the time that is pushed to master during this time there's even a release candidate period for about a week as far as I know, no one has really raised any objection to this feature until now it's released to master

I have contributed by informing on abandoned

yes thank you for that and since then that extension has been replaced sadly this only works for new installs I do have plans of making a system that would inform people that if an extension is deprecated / replaced

you said a lot of extensions broken in 1.6, do you have a specific list?

sadly extension compatibility is virtually impossible to manage, lots of the time is not even us breaking extension but a combination of extensions breaking each other sometimes the effects of a certain extension can last even after the extension is removed I've seen a extensions that directly modify libraries which causes permanent change that cannot be detected some extensions add files to places that they shouldn't

evoluder commented 10 months ago

great thanks!

nickr61 commented 10 months ago

I agree, the auto browser launch is annoying , it assumes to open the users default browser but I use a different browser for A1111 than my default, I like to keep web browsing and A1111 seperate. An easy end user choice in settings would be preferrable, to either choose which browser opens or to disable the feature entirely

w-e-w commented 10 months ago

it is not possible to select which browser to use other than the default using the built-in method for autolaunching browser I could make it an extension to allow for Auto launching in a chosen browser

nickr61 commented 10 months ago

apologies, I have just discovered the disable Automatically open webui in browser on startup option in settings/system, that is all I required , btw thanks for your amazing software

ItsKatsuragi commented 10 months ago

Settings -> System -> Automatically open webui in browser on startup -> Disable

Jesus Christ I looked for this so much and I couldn't see it. Thank you!

Sourdface commented 9 months ago

Making autolaunch default was not a good change, in my opinion.

I can understand maybe presenting a choice to users to choose to explicitly enable autolaunch during the one-click install, since those are the users who probably want the least friction. However, anyone who chooses to use the manual install will most likely add autolaunch themselves by editing webui-user.sh when they're doing all their other customizations if that's something they want. Additionally they may want to use the webui in some other way besides launching it in the system default browser, such as my using the "install as app" feature that most Chromium-based browsers support, and its annoying to have the window open in your main browser, not to mention having the browser steal window focus from the terminal or whatever it was you were doing when webui launched. This is not something that should happen unless the user opts into it.

Using SD_WEBUI_RESTARTING for its (current) side-effects feels like a hack because if this variable is used internally then explicitly setting it could lead to unexpected behavior by the core features and, especially, by plugins. Restricting control to only the webui setting panel doesn't really make sense to me when it was already available as a command line option. Therefore if this behavior is going to be default (and this is not what I would prefer) then I think at the very least it should be avoidable using an option like --no-autolaunch, although preferable it would just not be default behavior.

basvdijk commented 8 months ago

Although the solution of @ItsKatsuragi works, the --autolaunch parameter became useless since it is on by default.

EaglePPP commented 5 months ago

it is not possible to select which browser to use other than the default using the built-in method for autolaunching browser I could make it an extension to allow for Auto launching in a chosen browser

I also ran into this issue today, I wonder is it possible to add some cmd_args.py to receive Windows uri? I know that Edge browser has microsoft-edge: which can be used in Win+R (which i think its just start microsoft-edge in cmd same with brave and chrome, which I have tested. to add start microsoft-edge in webui-user.batis doable, yet it does not wait for the script to finish loading then pops out the browser, which bugs me out. If it's not intergreted in the py file, it would never wait I guess

w-e-w commented 5 months ago

it is not possible to select which browser to use other than the default using the built-in method for autolaunching browser I could make it an extension to allow for Auto launching in a chosen browser

I wrote an extension to allow launching web UI in non default browser months ago but forgotten about it https://github.com/w-e-w/sd-webui-custom-autolaunch I just listed it on the extension index, you can have a try to see if it suits your needs

EaglePPP commented 5 months ago

it is not possible to select which browser to use other than the default using the built-in method for autolaunching browser I could make it an extension to allow for Auto launching in a chosen browser

I wrote an extension to allow launching web UI in non default browser months ago but forgotten about it https://github.com/w-e-w/sd-webui-custom-autolaunch I just listed it on the extension index, you can have a try to see if it suits your needs

yes, i tried it, works perfectly! you are the best!