AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Cannot enlarge output image #8949

Closed joule32 closed 1 year ago

joule32 commented 1 year ago

Is there an existing issue for this?

What happened?

Producing an image works normally, but when pressing on the output image, it does not show an enlarged version of the photo.

Steps to reproduce the problem

  1. Go to automatic1111, and type the prompts.
  2. Press generate.
  3. Click on the photo to see the enlarged version of output image.

What should have happened?

It should show a more enlarged version of the photo that has been generated.

Commit where the problem happens

a0d07fb5

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

@echo off
git pull
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers --no-half-vae
call webui.bat

List of extensions

a1111-sd-webui-tagcomplete | https://github.com/DominikDoom/a1111-sd-webui-tagcomplete | 95ebde9f (Sat Mar 25 13:01:37 2023) | unknown multidiffusion-upscaler-for-automatic1111 | https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111.git | 27d3c032 (Sat Mar 25 18:29:56 2023) | unknown openpose-editor | https://github.com/fkunn1326/openpose-editor.git | f35a7599 (Sat Mar 25 09:26:39 2023) | unknown sd-webui-additional-networks | https://github.com/kohya-ss/sd-webui-additional-networks.git | d2758b6c (Sun Mar 12 10:58:50 2023) | unknown sd-webui-controlnet | https://github.com/Mikubill/sd-webui-controlnet.git | 241c05f8 (Thu Mar 23 15:18:35 2023) | unknown sd-webui-gelbooru-prompt | https://github.com/antis0007/sd-webui-gelbooru-prompt.git | 5a5ff86c (Tue Mar 7 18:11:17 2023) | unknown stable-diffusion-webui-composable-lora | https://github.com/opparco/stable-diffusion-webui-composable-lora.git | d4963e48 (Mon Feb 27 17:40:08 2023) | unknown stable-diffusion-webui-images-browser | https://github.com/AlUlkesh/stable-diffusion-webui-images-browser.git | 230b62db (Sat Mar 25 16:07:48 2023) | unknown stable-diffusion-webui-randomize | https://github.com/innightwolfsleep/stable-diffusion-webui-randomize.git | c04c7611 (Tue Jan 31 14:54:33 2023) | unknown stable-diffusion-webui-two-shot | https://github.com/opparco/stable-diffusion-webui-two-shot.git | 9936c52e (Sun Feb 19 08:40:41 2023) | unknown stable-diffusion-webui-wd14-tagger | https://github.com/toriato/stable-diffusion-webui-wd14-tagger.git | 3ba3a735 (Sat Mar 25 20:32:37 2023) | unknown stable-diffusion-webui-wildcards | https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards.git | 6ed81ed1 (Sat Oct 29 16:18:48 2022) | unknown ultimate-upscale-for-automatic1111 | https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git | 0a3d03a4 (Tue Feb 7 06:07:23 2023) | unknown

Console logs

remote: Enumerating objects: 247, done.
remote: Counting objects: 100% (213/213), done.
remote: Compressing objects: 100% (102/102), done.
remote: Total 247 (delta 146), reused 154 (delta 110), pack-reused 34
Receiving objects: 100% (247/247), 178.53 KiB | 1.13 MiB/s, done.
Resolving deltas: 100% (149/149), completed with 43 local objects.
From https://github.com/AUTOMATIC1111/stable-diffusion-webui
   442f710d..a0d07fb5  master       -> origin/master
 * [new branch]        lora_inplace -> origin/lora_inplace
Updating 442f710d..a0d07fb5
Fast-forward
 .github/workflows/run_tests.yaml |   2 +-
 html/extra-networks-card.html    |   2 +-
 javascript/extraNetworks.js      |   4 +-
 javascript/notification.js       |   2 +-
 launch.py                        |  79 +++++++++------------------
 modules/api/api.py               |  59 +++++++++++++++++++-
 modules/cmd_args.py              | 102 +++++++++++++++++++++++++++++++++++
 modules/extensions.py            |  17 +++---
 modules/modelloader.py           |   2 +-
 modules/paths.py                 |  11 +---
 modules/paths_internal.py        |  22 ++++++++
 modules/processing.py            |  16 ++++++
 modules/scripts.py               |  10 +++-
 modules/sd_models.py             |  26 +++++++--
 modules/shared.py                | 113 +++++----------------------------------
 modules/ui.py                    |  22 ++++++++
 modules/ui_common.py             |   4 +-
 modules/ui_extensions.py         |  55 ++++++++++++-------
 modules/ui_extra_networks.py     |   7 ++-
 requirements.txt                 |   1 +
 requirements_versions.txt        |   4 +-
 script.js                        |   2 +-
 scripts/img2imgalt.py            |  30 ++++++-----
 scripts/xyz_grid.py              |   1 +
 style.css                        |   3 ++
 webui.py                         |   6 +++
 26 files changed, 379 insertions(+), 223 deletions(-)
 create mode 100644 modules/cmd_args.py
 create mode 100644 modules/paths_internal.py
venv "C:\Users\user\Desktop\sd\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: a0d07fb5807ad55c8ccfdfc9a6d9ae3c62b9d211
Installing requirements for Web UI

Launching Web UI with arguments: --xformers --no-half-vae
[AddNet] Updating model hashes...
100%|████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<?, ?it/s]
[AddNet] Updating model hashes...
100%|████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<?, ?it/s]
Loading weights [fdf0096972] from C:\Users\user\Desktop\sd\models\Stable-diffusion\Based64mix-V3.safetensors
Creating model from config: C:\Users\user\Desktop\sd\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: C:\Users\user\Desktop\sd\models\VAE\Anything-V3.0.vae.pt
Applying xformers cross attention optimization.
Model loaded in 6.9s (load weights from disk: 0.5s, create model: 0.4s, apply weights to model: 2.1s, apply half(): 0.4s, load VAE: 0.6s, move model to device: 0.6s, load textual inversion embeddings: 2.2s).
C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Tab, please remove them: {'open': False}
  warnings.warn(
C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Row, please remove them: {'scale': 0.5}
  warnings.warn(
Running on local URL

To create a public link, set `share=True` in `launch()`.
Startup time: 26.2s (import torch: 2.7s, import gradio: 2.1s, import ldm: 0.6s, other imports: 2.4s, list extensions: 1.4s, list SD models: 0.3s, setup codeformer: 0.1s, load scripts: 6.3s, load SD checkpoint: 7.1s, create ui: 3.0s, gradio launch: 0.1s).
Closing server running on port: 7860
Restarting UI...
[AddNet] Updating model hashes...
100%|██████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1000.07it/s]
C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Group, please remove them: {'variant': 'panel'}
  warnings.warn(
C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Tab, please remove them: {'open': False}
  warnings.warn(
C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Row, please remove them: {'scale': 0.5}
  warnings.warn(
Running on local URL

To create a public link, set `share=True` in `launch()`.
Startup time: 3.7s (list extensions: 1.1s, load scripts: 0.4s, create ui: 1.9s, gradio launch: 0.3s).
Traceback (most recent call last):
  File "C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
IndexError: list index out of range
Traceback (most recent call last):
  File "C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api
    result = await self.call_function(
  File "C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\blocks.py", line 848, in call_function
    assert block_fn.fn, f"function with index {fn_index} not defined."
AssertionError: function with index 567 not defined.
Traceback (most recent call last):
  File "C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\blocks.py", line 1073, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "C:\Users\user\Desktop\sd\venv\lib\site-packages\gradio\blocks.py", line 962, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
IndexError: list index out of range
Loading weights [09524d894d] from C:\Users\user\Desktop\sd\models\Stable-diffusion\walnutcreamBlend_herbmixV1.safetensors
Loading VAE weights specified in settings: C:\Users\user\Desktop\sd\models\VAE\Anything-V3.0.vae.pt
Applying xformers cross attention optimization.
Weights loaded in 5.8s (load weights from disk: 0.3s, apply weights to model: 4.2s, load VAE: 0.7s, move model to device: 0.5s).
Data shape for DDIM sampling is (1, 4, 96, 64), eta 0.0
Running DDIM Sampling with 20 timesteps
DDIM Sampler: 100%|████████████████████████████████████████████████████████████████████| 20/20 [00:11<00:00,  1.76it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:09<00:00,  2.04it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:09<00:00,  2.12it/s]

Additional information

I have been getting random gradio issues after some updates, and it clogs my console logs.

joule32 commented 1 year ago

Also. I cannot enlargen image browser images when clicking on them aswell. So this issue is both for main automatic1111 ui and the extension image browser

Indigo-Bunting commented 1 year ago

Yeah I don't know if it's a bug because now when you click on the image it goes to the next image. BUT! I do miss being able to click on my images to get the lightbox version. Much easier to see my flaws. Please bring that back.

blvckclxud commented 1 year ago

Got this bug also. UI is better, but this was part of my workflow and I miss it.

Bonedragon1300 commented 1 year ago

yeah same, just moves onto the next pic, on one hand it's kind of useful to cycle through, on the other I'm used to enlarging the pics to see the better

BlindsidedGames commented 1 year ago

Same issue, please bring this back, the option is still enabled in settings so definitely seems like a bug.

joule32 commented 1 year ago

I think it's fixed, I can now enlarge both image browser and output.

Blargswell commented 1 year ago

This is still very much broken.

joule32 commented 1 year ago

This is still very much broken.

did u try restarting and updating extension? working for me currently with auto1111

Blargswell commented 1 year ago

Everything was up to date, and I restarted multiple times. Luckily I was able to pull webui from another computer that hadn't updated yet and revert on the affected machine. I'll hold off on pulling updates until it's sorted out.

joule32 commented 1 year ago

Everything was to update, and I restarted multiple times. Luckily I was able to pull webui from another computer that hadn't updated yet and revert on the affected machine. I'll hold off on pulling updates until it's sorted out.

alright nice, automatic1111 has been very weird lately.

NC17z commented 1 year ago

One other bug/issue that I'm finding with the most recent update is that it will not apply the "Send Image" to Inpaint or Img2Img, It also is not holding any masks, I can drag and drop an image however, it wipes out the masks. I deleted the config files, .json files however, that did not help. Is there a way that you can Step Back a Revision, or do I have to Install everything from scratch?

jenxi commented 1 year ago

This happened to me right after I updated to the latest version.

yhacson commented 1 year ago

Finally, I discovered what was causing my problem. It was the old version of OpenPoseEditor (for me, the HEAD hash was 124e47c). I deleted the OpenPoseEditor from the "extensions" folder and downloaded the new version, which fixed my webUI.

blvckclxud commented 1 year ago

I found a similar fix. The problem was with my extensions. I updated all of them and then turned them on and off one at a time until I found the ones that were breaking it. It was OpenPoseEditor. Unfortunately now I'm having trouble getting that to work too!