AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: gradio\blocks.py - ValueError: Progress tracking requires queuing to be enabled #9721

Closed greenrocket77 closed 1 year ago

greenrocket77 commented 1 year ago

Is there an existing issue for this?

What happened?

After running webui-user.bat, I got this error right after the model is loaded:

Traceback (most recent call last): File "D:\AI\AUTOMATIC1111\launch.py", line 381, in <module> start() File "D:\AI\AUTOMATIC1111\launch.py", line 376, in start webui.webui() File "D:\AI\AUTOMATIC1111\webui.py", line 254, in webui app, local_url, share_url = shared.demo.launch( File "D:\AI\AUTOMATIC1111\venv\lib\site-packages\gradio\blocks.py", line 1337, in launch raise ValueError("Progress tracking requires queuing to be enabled.") ValueError: Progress tracking requires queuing to be enabled.

Important note : I'm not running the last version of automatic1111, since there is bugs. Here is commit recommended by a reddit user : a9eab236d7e8afa4d6205127904a385b2c43bb24

After updating to the last commit, march 29th, I do not have the ValueError message but I have instead a messy and buggy Automatic1111. I would much prefer to stay on the recommended commit and find a fix.

I attempted to add "--no-gradio-queue" to the webui=user which results in an error as well : launch.py: error: unrecognized arguments: --no-gradio-queue

I also tried to delete the venv folder without any improvement.

Steps to reproduce the problem

  1. Running Automatic1111 version "a9eab236d7e8afa4d6205127904a385b2c43bb24" (the "good" version without bugs)
  2. Launching the webui-user.bat
  3. Error, can't continue any further.

What should have happened?

utomatic1111 ready to be used on http://127.0.0.1:7860/

Commit where the problem happens

a9eab236d7e8afa4d6205127904a385b2c43bb24

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Command Line Arguments

set COMMANDLINE_ARGS=--api --xformers --theme dark

List of extensions

Yes

Console logs

venv "D:\AI\AUTOMATIC1111\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Commit hash: a9eab236d7e8afa4d6205127904a385b2c43bb24
Installing requirements for Web UI

Fetching updates for midas...
Checking out commit for midas with hash: 1645b7e...

Installing requirements 1 for Infinite-Zoom

Installing sd-webui-controlnet requirement: mediapipe==0.9.1.0
Installing sd-webui-controlnet requirement: opencv-python

Installing imageio-ffmpeg requirement for depthmap script
Installing pyqt5 requirement for depthmap script

Installing requirements for Unprompted - img2pez
Installing requirements for Unprompted - pix2pix_zero
Installing requirements for Unprompted - zoom_enhance

Launching Web UI with arguments: --api --xformers --theme dark
Error loading script: deforum.py
Traceback (most recent call last):
  File "D:\AI\AUTOMATIC1111\modules\scripts.py", line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "D:\AI\AUTOMATIC1111\modules\script_loading.py", line 11, 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 "D:\AI\AUTOMATIC1111\extensions\deforum-for-automatic1111-webui\scripts\deforum.py", line 17, in <module>
    import deforum_helpers.args as deforum_args
  File "D:\AI\AUTOMATIC1111/extensions/deforum-for-automatic1111-webui/scripts\deforum_helpers\args.py", line 9, in <module>
    from .vid2depth import process_depth_vid_upload_logic
  File "D:\AI\AUTOMATIC1111/extensions/deforum-for-automatic1111-webui/scripts\deforum_helpers\vid2depth.py", line 15, in <module>
    from .depth import MidasModel, AdaBinsModel
  File "D:\AI\AUTOMATIC1111/extensions/deforum-for-automatic1111-webui/scripts\deforum_helpers\depth.py", line 11, in <module>
    from midas.dpt_depth import DPTDepthModel
  File "D:\AI\AUTOMATIC1111/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/src\midas\dpt_depth.py", line 5, in <module>
    from .blocks import (
  File "D:\AI\AUTOMATIC1111/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/src\midas\blocks.py", line 4, in <module>
    from .backbones.beit import (
  File "D:\AI\AUTOMATIC1111/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/src\midas\backbones\beit.py", line 9, in <module>
    from timm.models.beit import gen_relative_position_index
ModuleNotFoundError: No module named 'timm.models.beit'

Error loading script: depthmap_for_depth2img.py
Traceback (most recent call last):
  File "D:\AI\AUTOMATIC1111\modules\scripts.py", line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "D:\AI\AUTOMATIC1111\modules\script_loading.py", line 11, 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 "D:\AI\AUTOMATIC1111\extensions\depthmap2mask\scripts\depthmap_for_depth2img.py", line 13, in <module>
    from repositories.midas.midas.dpt_depth import DPTDepthModel
  File "D:\AI\AUTOMATIC1111\repositories\midas\midas\dpt_depth.py", line 5, in <module>
    from .blocks import (
  File "D:\AI\AUTOMATIC1111\repositories\midas\midas\blocks.py", line 4, in <module>
    from .backbones.beit import (
  File "D:\AI\AUTOMATIC1111\repositories\midas\midas\backbones\beit.py", line 9, in <module>
    from timm.models.beit import gen_relative_position_index
ModuleNotFoundError: No module named 'timm.models.beit'

[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Error loading script: depthmap.py
Traceback (most recent call last):
  File "D:\AI\AUTOMATIC1111\modules\scripts.py", line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "D:\AI\AUTOMATIC1111\modules\script_loading.py", line 11, 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 "D:\AI\AUTOMATIC1111\extensions\stable-diffusion-webui-depthmap-script\scripts\depthmap.py", line 44, in <module>    from dmidas.dpt_depth import DPTDepthModel
  File "D:\AI\AUTOMATIC1111\extensions/stable-diffusion-webui-depthmap-script/scripts\dmidas\dpt_depth.py", line 5, in <module>
    from .blocks import (
  File "D:\AI\AUTOMATIC1111\extensions/stable-diffusion-webui-depthmap-script/scripts\dmidas\blocks.py", line 4, in <module>
    from .backbones.beit import (
  File "D:\AI\AUTOMATIC1111\extensions/stable-diffusion-webui-depthmap-script/scripts\dmidas\backbones\beit.py", line 9, in <module>
    from timm.models.beit import gen_relative_position_index
ModuleNotFoundError: No module named 'timm.models.beit'

Loading Unprompted v8.1.0 by Therefore Games
(SETUP) Initializing Unprompted object...
(SETUP) Loading configuration files...
(SETUP) Debug mode is False
Loading weights [b24e42e3bc] from D:\AI\AUTOMATIC1111\models\Stable-diffusion\dreamshaper252_252SafetensorFix.safetensors
Creating model from config: D:\AI\AUTOMATIC1111\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(1): Style-Italy
Textual inversion embeddings skipped(4): midjourney, rz-neg-foranalogportrait, rz-shear, VintageHelper
Model loaded in 4.1s (load weights from disk: 0.1s, create model: 0.5s, apply weights to model: 1.0s, apply half(): 0.7s, move model to device: 1.0s, load textual inversion embeddings: 0.9s).
Traceback (most recent call last):
  File "D:\AI\AUTOMATIC1111\launch.py", line 381, in <module>
    start()
  File "D:\AI\AUTOMATIC1111\launch.py", line 376, in start
    webui.webui()
  File "D:\AI\AUTOMATIC1111\webui.py", line 254, in webui
    app, local_url, share_url = shared.demo.launch(
  File "D:\AI\AUTOMATIC1111\venv\lib\site-packages\gradio\blocks.py", line 1337, in launch
    raise ValueError("Progress tracking requires queuing to be enabled.")
ValueError: Progress tracking requires queuing to be enabled.

Additional information

No response

greenrocket77 commented 1 year ago

This is related to the extension infinite-zoom-automatic1111-webui, here is a ticket with a few people having the same error.

edit : problem solved in that same ticket