lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.69k stars 862 forks source link

Issue with Sampling Steps When Generating Image #2123

Open hellbringr opened 1 month ago

hellbringr commented 1 month ago

On a fresh copy of Forge apart from a single model that I installed, I had noticed that increasing the sampling steps from the base of 20 to something higher (in my case, commonly set to 30) will cause an "Connection errored out" message to display. This results in two things for me: 1) The completed image does not actually render in the UI, as if it was "deleted" or the code points to a nonexistent image. However, the image exists where it should in output. 2) Saving the image using the save button does nothing.

This happens regardless of model or prompt and only happens when setting the sampling steps to a higher value.

The console for Forge hints at the following when attempting to save:

Traceback (most recent call last):████████████████████████████████████| 60/60 [02:22<00:00,  3.07s/it]
  File "C:\Apps\AI\webui_forge_cu121_torch231\webui\modules\call_queue.py", line 76, in f
    res = list(func(*args, **kwargs))
  File "C:\Apps\AI\webui_forge_cu121_torch231\webui\modules\ui_common.py", line 75, in save_files
    data = json.loads(js_data)
  File "json\__init__.py", line 346, in loads
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Expecting value: line 1 column 1 (char 0)

My browser's console throws this error during generation:

Unexpected error Connection errored out. index.js:2068:28
    Re index.js:2068
    onerror index.js:1403
    onerror index.js:1402
    Xt index.js:1510

In case it matters, here's what I am using for hardware and software config:

Let me know if anything else is needed. Thanks.

linuarM commented 3 weeks ago

hey, maybe re installing and trying again may help your issue.