Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: BAD SCALE 200% Error On Opening #12002

Closed
1 task done
Xercesblu3 opened this issue Jul 25, 2023 · 8 comments
Closed
1 task done

[Bug]: BAD SCALE 200% Error On Opening #12002

Xercesblu3 opened this issue Jul 25, 2023 · 8 comments
Labels
bug-report Report of a bug, yet to be confirmed platform:mac Issues that apply to Apple OS X, M1, M2, etc

Comments

@Xercesblu3
Copy link

Xercesblu3 commented Jul 25, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Loaded stable diffussion 1.5.0 in shell. Opened the local instance in my browser and was presented with this error.
image

My scale in the browser is currently 100%

Steps to reproduce the problem

  1. launched stable diffusion using 'tea +github.com/AUTOMATIC1111/stable-diffusion-webui@1.5.0 sh'
  2. stable-diffusion-webui
  3. Loaded local instance via browser (tested in chrome and safari)

What should have happened?

Error should not be provided

Version or Commit where the problem happens

1.5.0

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

MacOS

What device are you running WebUI on?

CPU

Cross attention optimization

Automatic

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No

List of extensions

No

Console logs

Launching Web UI with arguments: 
Traceback (most recent call last):
  File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/launch.py", line 36, in <module>
    main()
  File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/launch.py", line 32, in main
    start()
  File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/modules/launch_utils.py", line 390, in start
    import webui
  File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/webui.py", line 14, in <module>
    from fastapi import FastAPI
ModuleNotFoundError: No module named 'fastapi'
xercesblue@XercesBlueWindowsPC ~ % tea +github.com/AUTOMATIC1111/stable-diffusion-webui=1.5.0 stable-diffusion-webui
Launching Web UI with arguments: --ui-config-file=/Users/xercesblue/.config/stable-diffusion-webui/config.json --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
*** Error loading script: deforum.py
    Traceback (most recent call last):
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/modules/scripts.py", line 295, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/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 "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/deforum-for-automatic1111-webui/scripts/deforum.py", line 22, in <module>
        init_deforum()
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/deforum-for-automatic1111-webui/scripts/deforum.py", line 14, in init_deforum
        from deforum_helpers.ui_right import on_ui_tabs
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/ui_right.py", line 1, in <module>
        from .args import DeforumOutputArgs, get_component_names, get_settings_component_names
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/args.py", line 11, in <module>
        from .deforum_controlnet import controlnet_component_names
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/deforum_controlnet.py", line 13, in <module>
        from .video_audio_utilities import vid2frames, convert_image
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/video_audio_utilities.py", line 15, in <module>
        from .rich import console
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/rich.py", line 1, in <module>
        from rich.console import Console
    ModuleNotFoundError: No module named 'rich'

---
*** Error loading script: inpaint_anything.py
    Traceback (most recent call last):
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/modules/scripts.py", line 295, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/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 "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/sd-webui-inpaint-anything/scripts/inpaint_anything.py", line 6, in <module>
        from diffusers import StableDiffusionInpaintPipeline, DDIMScheduler, EulerDiscreteScheduler, EulerAncestralDiscreteScheduler, KDPM2DiscreteScheduler, KDPM2AncestralDiscreteScheduler
    ModuleNotFoundError: No module named 'diffusers'

---
Loading weights [6ce0161689] from /Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Model loaded in 9.5s (load weights from disk: 0.2s, create model: 0.7s, apply weights to model: 6.6s, apply half(): 1.3s, move model to device: 0.5s, calculate empty prompt: 0.2s).
Exception importing api
Traceback (most recent call last):
  File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/sd_dreambooth_extension/scripts/api.py", line 27, in <module>
    from dreambooth.dataclasses.db_config import from_file, DreamboothConfig
  File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/sd_dreambooth_extension/dreambooth/dataclasses/db_config.py", line 12, in <module>
    from dreambooth.utils.image_utils import get_scheduler_names  # noqa
  File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/sd_dreambooth_extension/dreambooth/utils/image_utils.py", line 11, in <module>
    from diffusers.schedulers import KarrasDiffusionSchedulers
ModuleNotFoundError: No module named 'diffusers'
*** Error loading script: main.py
    Traceback (most recent call last):
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/modules/scripts.py", line 295, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/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 "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/sd_dreambooth_extension/scripts/main.py", line 7, in <module>
        from dreambooth.dataclasses.db_config import from_file, save_config
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/sd_dreambooth_extension/dreambooth/dataclasses/db_config.py", line 12, in <module>
        from dreambooth.utils.image_utils import get_scheduler_names  # noqa
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/sd_dreambooth_extension/dreambooth/utils/image_utils.py", line 11, in <module>
        from diffusers.schedulers import KarrasDiffusionSchedulers
    ModuleNotFoundError: No module named 'diffusers'

---
Applying attention optimization: InvokeAI... done.
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Running on local URL:  http://127.0.0.1:7861

To create a public link, set `share=True` in `launch()`.
*** Error executing callback app_started_callback for /Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/sd_dreambooth_extension/scripts/api.py
    Traceback (most recent call last):
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/modules/script_callbacks.py", line 126, in app_started_callback
        c.callback(demo, app)
      File "/Users/xercesblue/.tea/github.com/AUTOMATIC1111/stable-diffusion-webui/v1.5.0/lib/extensions/sd_dreambooth_extension/scripts/api.py", line 530, in dreambooth_api
        model_cfg: DreamboothConfig = Body(description="The config to save"),
    NameError: name 'DreamboothConfig' is not defined

---
Startup time: 14.4s (launcher: 0.2s, import torch: 2.0s, import gradio: 0.6s, setup paths: 0.7s, other imports: 0.6s, load scripts: 10.1s, create ui: 0.2s).

Additional information

_Macbook air M2 13 inch. Using "Default" resolution of 1470x956, still get the error on other resolutions as well. Checking browser console shows I have a dPR of 2, but scale is set to 100%
{devicePixelRatio: 2, deviceXDPI: undefined, logicalXDPI: undefined, outerWidth: 1369, innerWidth: 814}

The fix for this is to use 2560x1664 on a 13 inch laptop screen, which....I'm not going to do and isn't the "default" of the OS. Still the error can be closed. Just wanted to make you guys aware!_

@Xercesblu3 Xercesblu3 added the bug-report Report of a bug, yet to be confirmed label Jul 25, 2023
@MisterSeajay
Copy link
Contributor

For what it's worth (I don't have all the debug information) I saw a similar message. Mine said "125%" rather than "200%". I changed the zoom of the web page to 80% and the message disappeared.

@w-e-w
Copy link
Collaborator

w-e-w commented Jul 25, 2023

List of extensions
No

yet error comes form "extensions/sd_dreambooth_extension"

the bad scaling is is a warning not an error

@marhensa
Copy link

if you check the tooltips (hover your mouse to the warning line), it will says what it means:

image

image

it's about performance drops when we use wrong UI scale on browser, it needs to be on ~100%

but there's two thing to consider:

  1. DPI from Windows / OS
  2. Browser Zoom

I have set my Windows DPI to 125%, so the browser zooms need to be zoomed out to 80%, to get overall zoom ~100%

IMHO, with all due respect to devs, it's kinda crude solution from the devs, because if we have 4K monitor with high DPI, we will get small interface / text just to make this requirements (~100% overall).

@w-e-w
Copy link
Collaborator

w-e-w commented Jul 26, 2023

either way do user demand, we have decided to remove that browser scale warning the
there was some issues with gradio. canvases if you transfer images with the wrong browser scale, since the issue is form gradio we can't really fix it

more importantly the issue that OP is not with the browser scaling warning, warning it is just a warning, not an error

@akx akx added the platform:mac Issues that apply to Apple OS X, M1, M2, etc label Jul 26, 2023
@akx
Copy link
Collaborator

akx commented Jul 26, 2023

Yeah, closing because:

  • this is a warning, not an error, and it's telling you what to do to fix things
  • it's from the dreambooth extension, not us

@akx akx closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2023
@thesomeotherguy
Copy link

thesomeotherguy commented Jul 26, 2023

Sorry @akx to reply it, do not mean to disrespect. I hope you don't mind.

I can confirm this is not because Dreambooth extension, and it's not exclusive to Mac only.

I am on Linux Ubuntu 22.04, new folder, fresh install of 1.5.0, no extension at all.

image

.

I know this is not a bug, and just a warning. But if it's performance issue that caused by UI zoom/scale, is it kinda bug?

That tooltips tell us that if the UI scale is not on 100%, it will give us performance drops.

When I have high DPI monitor let's say 4K, I would not change my monitor DPI to 100%, that would be a pain to read a text, it would be too small.

That warning telling us to keep it on balance, when I set my OS DPI as 125%, the browser needs to be zoomed out about 80%, I still could read it with my laptop monitor.

But the problem will arise if I use 4K monitor on desktop with DPI 200%, I have to zoom out my browser to the uncomfortable way to read and clicking a button.

and seeing a reply from @w-e-w , it seems that is gradio bug, not A1111, hope it will be fixed someday.
.

.
version: [v1.5.0]  •  python: 3.10.6  •  torch: 2.0.1+cu118  •  xformers: 0.0.20  •  gradio: 3.32.0  •  checkpoint: [be1d90c4ab]
.

.
LOG, fresh install:

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on regularuser user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]
Version: v1.5.0
Commit hash: a3ddf464a2ed24c999f67ddfef7969f8291567be
Launching Web UI with arguments: --xformers --listen
Loading weights [be1d90c4ab] from /home/regularuser/a1111/stable-diffusion-webui/models/Stable-diffusion/absolutereality_v16.safetensors
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 7.6s (launcher: 1.4s, import torch: 1.8s, import gradio: 0.7s, setup paths: 1.0s, other imports: 0.6s, opts onchange: 0.2s, list SD models: 0.3s, load scripts: 0.5s, create ui: 0.6s, gradio launch: 0.3s).
Creating model from config: /home/regularuser/a1111/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying attention optimization: xformers... done.
Model loaded in 23.1s (load weights from disk: 2.1s, create model: 0.6s, apply weights to model: 19.2s, apply half(): 0.3s, move model to device: 0.7s, load textual inversion embeddings: 0.1s).

@w-e-w
Copy link
Collaborator

w-e-w commented Jul 26, 2023

@thesomeotherguy the title of theis pose is

BAD SCALE 200% Error On Opening

so translation "because of bad scale" -> "error on open"

the "error" what the op is experiencing (not you the op) is caused by dreambooth
he wrongly attributed the issue to the warning

so if you are talking about scale warning then it has nothing to do with the this pose anymore

the scale issue has been reported to gradio gradio-app/gradio#4931
and because of user demand we have already removed scale warning in the next revision of web UI

@Xercesblu3
Copy link
Author

Sorry for confusing language in the title. Thanks for all of the clarification and working so hard on this tool. Not a dev, just saw this and misunderstood it as an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed platform:mac Issues that apply to Apple OS X, M1, M2, etc
Projects
None yet
Development

No branches or pull requests

6 participants