AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Doesn't start up #10281

Closed ZetsApocNow closed 1 year ago

ZetsApocNow commented 1 year ago

Is there an existing issue for this?

What happened?

Opened webui as usual, no changes

Pressing a button closes the cmd.

Steps to reproduce the problem

Open webui-user.bat

What should have happened?

Should have worked perfectly and not close or give errors

Commit where the problem happens

Literally doesn't get that far, may 5th it was checkpoint: 79e42fb744

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome

Command Line Arguments

--api --opt-split-attention --medvram --autolaunch --deepdanbooru --xformers --opt-channelslast --no-half-vae

List of extensions

ABG_extension PBRemTooIs Stable-Diffusion-Webui-Civitai-Helper StylePile aesthetic-gradients asymmetric-tiling-sd-webui booru2prompt model-keyword sd-canvas-editor sd-extension-system-info sd-infinity-grid-generator-script sd-web-ui-quickcss sd-webui-additionaI-networks-O.5.O sd-webui-ar sd-webui-controlnet sd-webui-enable-checker sd-webui-gelbooru-prompt sd-webui-infinite-image-browsing sd-webui-llul sd-webui-lora-block-weight sd_save_intermediate_images stable-diffusion-webui-Prompt_Generator stable-diffusion-webui-anti-bum stable-diffusion-webui-dataset-tag-editor stable-diffusion-webui-inspiration stable-diffusion-webui-randomize stable-diffusion-webui-rembg stable-diffusion-webui-sonar stable-diffusion-webui-state stable-diffusion-webui-text2prompt stable-diffusion-webui-wd14-tagger LDSR Lora ScuNET SwiniR prompt-bracket-checker

Console logs

########## Updating AUTOMATIC1111-stable-diffusion-webui ##########
fatal: not a git repository (or any of the parent directories): .git
----------------------------------------------------------------------------
########## Updating Extensions ##########
extension #1: a1111-sd-webui-haku-img
Already up to date.
----------------------------------------------------------------------------
extension #2: a1111-sd-webui-lycoris
Already up to date.
----------------------------------------------------------------------------
extension #3: a1111-sd-webui-tagcomplete
Already up to date.
----------------------------------------------------------------------------
extension #4: ABG_extension
Already up to date.
----------------------------------------------------------------------------
extension #5: aesthetic-gradients
Already up to date.
----------------------------------------------------------------------------
extension #6: booru2prompt
Already up to date.
----------------------------------------------------------------------------
extension #7: model-keyword
Already up to date.
----------------------------------------------------------------------------
extension #8: PBRemTools
Already up to date.
----------------------------------------------------------------------------
extension #9: sd-canvas-editor
Already up to date.
----------------------------------------------------------------------------
extension #10: sd-extension-system-info
Already up to date.
----------------------------------------------------------------------------
extension #11: sd-web-ui-quickcss
Already up to date.
----------------------------------------------------------------------------
extension #12: sd-webui-additional-networks-0.5.0
fatal: not a git repository (or any of the parent directories): .git
----------------------------------------------------------------------------
extension #13: sd-webui-ar
Already up to date.
----------------------------------------------------------------------------
extension #14: sd-webui-enable-checker
Already up to date.
----------------------------------------------------------------------------
extension #15: sd-webui-gelbooru-prompt
Already up to date.
----------------------------------------------------------------------------
extension #16: sd-webui-infinite-image-browsing
Already up to date.
----------------------------------------------------------------------------
extension #17: sd-webui-llul
Already up to date.
----------------------------------------------------------------------------
extension #18: sd-webui-lora-block-weight
Already up to date.
----------------------------------------------------------------------------
extension #19: sd_feed
Already up to date.
----------------------------------------------------------------------------
extension #20: sd_save_intermediate_images
Already up to date.
----------------------------------------------------------------------------
extension #21: stable-diffusion-webui-anti-burn
Already up to date.
----------------------------------------------------------------------------
extension #22: Stable-Diffusion-Webui-Civitai-Helper
Already up to date.
----------------------------------------------------------------------------
extension #23: stable-diffusion-webui-dataset-tag-editor
Already up to date.
----------------------------------------------------------------------------
extension #24: stable-diffusion-webui-inspiration
Already up to date.
----------------------------------------------------------------------------
extension #25: stable-diffusion-webui-Prompt_Generator
Already up to date.
----------------------------------------------------------------------------
extension #26: stable-diffusion-webui-randomize
Already up to date.
----------------------------------------------------------------------------
extension #27: stable-diffusion-webui-rembg
Already up to date.
----------------------------------------------------------------------------
extension #28: stable-diffusion-webui-sonar
Already up to date.
----------------------------------------------------------------------------
extension #29: stable-diffusion-webui-state
Already up to date.
----------------------------------------------------------------------------
extension #30: stable-diffusion-webui-text2prompt
Already up to date.
----------------------------------------------------------------------------
extension #31: stable-diffusion-webui-wd14-tagger
Already up to date.
----------------------------------------------------------------------------
extension #32: StylePile
Already up to date.
----------------------------------------------------------------------------

#######################################################################################################
STARTING Stable Diffusion

Setting variables to:
 --api --opt-split-attention --medvram --autolaunch --deepdanbooru --xformers --opt-channelslast --no-half-vae

#######################################################################################################

----------------------------------------------------------------------------
venv "D:\stable-diffusion-webui-master\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: <none>
Installing requirements
Expecting value: line 1 column 1 (char 0)

Installing onnxruntime-gpu for PBRemTools
Installing opencv-python for PBRemTools
Installing Pillow for PBRemTools
Installing segmentation-refinement for PBRemTools
Installing scikit-learn for PBRemTools

Launching Web UI with arguments: --api --opt-split-attention --medvram --autolaunch --deepdanbooru --xformers --opt-channelslast --no-half-vae
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ D:\stable-diffusion-webui-master\launch.py:353 in <module>                                       │
│                                                                                                  │
│   350                                                                                            │
│   351 if __name__ == "__main__":                                                                 │
│   352 │   prepare_environment()                                                                  │
│ ❱ 353 │   start()                                                                                │
│   354                                                                                            │
│                                                                                                  │
│ D:\stable-diffusion-webui-master\launch.py:344 in start                                          │
│                                                                                                  │
│   341                                                                                            │
│   342 def start():                                                                               │
│   343 │   print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with argum   │
│ ❱ 344 │   import webui                                                                           │
│   345 │   if '--nowebui' in sys.argv:                                                            │
│   346 │   │   webui.api_only()                                                                   │
│   347 │   else:                                                                                  │
│                                                                                                  │
│ D:\stable-diffusion-webui-master\webui.py:35 in <module>                                         │
│                                                                                                  │
│    32 import ldm.modules.encoders.modules                                                        │
│    33 startup_timer.record("import ldm")                                                         │
│    34                                                                                            │
│ ❱  35 from modules import extra_networks, ui_extra_networks_checkpoints                          │
│    36 from modules import extra_networks_hypernet, ui_extra_networks_hypernets, ui_extra_netwo   │
│    37 from modules.call_queue import wrap_queued_call, queue_lock, wrap_gradio_gpu_call          │
│    38                                                                                            │
│                                                                                                  │
│ D:\stable-diffusion-webui-master\modules\ui_extra_networks_checkpoints.py:5 in <module>          │
│                                                                                                  │
│    2 import json                                                                                 │
│    3 import os                                                                                   │
│    4                                                                                             │
│ ❱  5 from modules import shared, ui_extra_networks, sd_models                                    │
│    6                                                                                             │
│    7                                                                                             │
│    8 class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage):                    │
│                                                                                                  │
│ D:\stable-diffusion-webui-master\modules\shared.py:606 in <module>                               │
│                                                                                                  │
│   603                                                                                            │
│   604 opts = Options()                                                                           │
│   605 if os.path.exists(config_filename):                                                        │
│ ❱ 606 │   opts.load(config_filename)                                                             │
│   607                                                                                            │
│   608 settings_components = None                                                                 │
│   609 """assinged from ui.py, a mapping on setting anmes to gradio components repsponsible for   │
│                                                                                                  │
│ D:\stable-diffusion-webui-master\modules\shared.py:543 in load                                   │
│                                                                                                  │
│   540 │                                                                                          │
│   541 │   def load(self, filename):                                                              │
│   542 │   │   with open(filename, "r", encoding="utf8") as file:                                 │
│ ❱ 543 │   │   │   self.data = json.load(file)                                                    │
│   544 │   │                                                                                      │
│   545 │   │   bad_settings = 0                                                                   │
│   546 │   │   for k, v in self.data.items():                                                     │
│                                                                                                  │
│ C:\Users\theda\AppData\Local\Programs\Python\Python310\lib\json\__init__.py:293 in load          │
│                                                                                                  │
│   290 │   To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``                  │
│   291 │   kwarg; otherwise ``JSONDecoder`` is used.                                              │
│   292 │   """                                                                                    │
│ ❱ 293 │   return loads(fp.read(),                                                                │
│   294 │   │   cls=cls, object_hook=object_hook,                                                  │
│   295 │   │   parse_float=parse_float, parse_int=parse_int,                                      │
│   296 │   │   parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)          │
│                                                                                                  │
│ C:\Users\theda\AppData\Local\Programs\Python\Python310\lib\json\__init__.py:346 in loads         │
│                                                                                                  │
│   343 │   if (cls is None and object_hook is None and                                            │
│   344 │   │   │   parse_int is None and parse_float is None and                                  │
│   345 │   │   │   parse_constant is None and object_pairs_hook is None and not kw):              │
│ ❱ 346 │   │   return _default_decoder.decode(s)                                                  │
│   347 │   if cls is None:                                                                        │
│   348 │   │   cls = JSONDecoder                                                                  │
│   349 │   if object_hook is not None:                                                            │
│                                                                                                  │
│ C:\Users\theda\AppData\Local\Programs\Python\Python310\lib\json\decoder.py:337 in decode         │
│                                                                                                  │
│   334 │   │   containing a JSON document).                                                       │
│   335 │   │                                                                                      │
│   336 │   │   """                                                                                │
│ ❱ 337 │   │   obj, end = self.raw_decode(s, idx=_w(s, 0).end())                                  │
│   338 │   │   end = _w(s, end).end()                                                             │
│   339 │   │   if end != len(s):                                                                  │
│   340 │   │   │   raise JSONDecodeError("Extra data", s, end)                                    │
│                                                                                                  │
│ C:\Users\theda\AppData\Local\Programs\Python\Python310\lib\json\decoder.py:355 in raw_decode     │
│                                                                                                  │
│   352 │   │   try:                                                                               │
│   353 │   │   │   obj, end = self.scan_once(s, idx)                                              │
│   354 │   │   except StopIteration as err:                                                       │
│ ❱ 355 │   │   │   raise JSONDecodeError("Expecting value", s, err.value) from None               │
│   356 │   │   return obj, end                                                                    │
│   357                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Press any key to continue . . .

Additional information

This was working May 7th, kept it up for a few days, restarted it, now it doesn't launch. I'm guessing this was due to a recent update as I have changed nothing on my side.

Sakura-Luna commented 1 year ago

config.json or ui-config.json is broken, delete it.

Oop-o commented 1 year ago

I'm also experiencing this issue and i'm hesitant to just start deleting files without knowing what they do and whether I might have more issues later down the line as a result of their absence. I'm new to programming in general and don't know how this stuff works. A more specific answer regarding which file should be deleted and whether it should be replaced with something else would be greatly appreciated.

Sakura-Luna commented 1 year ago

I'm also experiencing this issue and i'm hesitant to just start deleting files without knowing what they do and whether I might have more issues later down the line as a result of their absence. I'm new to programming in general and don't know how this stuff works. A more specific answer regarding which file should be deleted and whether it should be replaced with something else would be greatly appreciated.

The two files I mentioned save the settings of the WebUI, removing them will not lose data or damage the WebUI, you can restore them later by adjusting the settings.

Oop-o commented 1 year ago

Okay thank you for letting me know.