Open noha2310 opened 2 months ago
Can you test with above commit and report back please.
Sorry, please tell me what full command text to include when committing. I am searching how to type after “git commit” but all I get is errors.
I am really sorry.
This PR is on hold for now. I think you're encountering more than just gradio 4 extension issues.
can this work on Colab?
After updating to version 4c9380c, I get the following error. (this is working with colab).
[-] ADetailer initialized. version: 24.8.0, num models: 14 *** Error loading script: config.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/config.py", line 6, in
from scripts.dte_instance import dte_instance
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/dte_instance.py", line 1, in
import scripts.dataset_tag_editor as dte_module
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/dataset_tag_editor/init.py", line 6, in
from .dte_logic import DatasetTagEditor
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/dataset_tag_editor/dte_logic.py", line 10, in
from modules.textual_inversion.dataset import re_numbers_at_start
ModuleNotFoundError: No module named 'modules.textual_inversion.dataset'
*** Error loading script: dte_instance.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/dte_instance.py", line 1, in
import scripts.dataset_tag_editor as dte_module
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/dataset_tag_editor/init.py", line 6, in
from .dte_logic import DatasetTagEditor
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/dataset_tag_editor/dte_logic.py", line 10, in
from modules.textual_inversion.dataset import re_numbers_at_start
ModuleNotFoundError: No module named 'modules.textual_inversion.dataset'
** Error loading script: main.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/main.py", line 5, in
from scripts.config import
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/config.py", line 6, in
from scripts.dte_instance import dte_instance
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/dte_instance.py", line 1, in
import scripts.dataset_tag_editor as dte_module
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/dataset_tag_editor/init.py", line 6, in
from .dte_logic import DatasetTagEditor
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/dataset-tag-editor/scripts/dataset_tag_editor/dte_logic.py", line 10, in
from modules.textual_inversion.dataset import re_numbers_at_start
ModuleNotFoundError: No module named 'modules.textual_inversion.dataset'
*** Error loading script: cutoff.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-cutoff/scripts/cutoff.py", line 12, in
from scripts.cutofflib.sdhook import SDHook
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-cutoff/scripts/cutofflib/sdhook.py", line 7, in
from ldm.modules.diffusionmodules.openaimodel import (
ModuleNotFoundError: No module named 'ldm'
*** Error loading script: attention.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-regional-prompter/scripts/attention.py", line 3, in
import ldm.modules.attention as atm
ModuleNotFoundError: No module named 'ldm'
*** Error loading script: latent.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-regional-prompter/scripts/latent.py", line 11, in
import scripts.attention as att
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-regional-prompter/scripts/attention.py", line 3, in
import ldm.modules.attention as atm
ModuleNotFoundError: No module named 'ldm'
*** Error loading script: rp.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-regional-prompter/scripts/rp.py", line 15, in
import scripts.attention
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-regional-prompter/scripts/attention.py", line 3, in
import ldm.modules.attention as atm
ModuleNotFoundError: No module named 'ldm'
== WD14 tagger /gpu:0, uname_result(system='Linux', node='58f2f7f0b0fb', release='6.1.85+', version='#1 SMP PREEMPT_DYNAMIC Thu Jun 27 21:05:47 UTC 2024', machine='x86_64') == CHv1.8.10: Set Proxy: Error calling: /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-ar/scripts/sd-webui-ar.py/ui Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 545, in wrap_call return func(args, kwargs) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-ar/scripts/sd-webui-ar.py", line 244, in ui btns = [ File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-ar/scripts/sd-webui-ar.py", line 245, in
ARButton(ar=ar, value=label)
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-ar/scripts/sd-webui-ar.py", line 31, in init
super().init(kwargs)
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/ui_components.py", line 23, in init
super().init(args, elem_classes=["tool", elem_classes], value=value, kwargs)
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/gradio_extensions.py", line 147, in repaired_init
original(self, *args, fixed_kwargs)
File "/usr/local/lib/python3.10/dist-packages/gradio/component_meta.py", line 163, in wrapper
return fn(self, kwargs)
File "/usr/local/lib/python3.10/dist-packages/gradio/components/button.py", line 61, in init
super().init__(
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/gradio_extensions.py", line 36, in IOComponent_init
res = original_IOComponent_init(self, *args, kwargs)
File "/usr/local/lib/python3.10/dist-packages/gradio/component_meta.py", line 163, in wrapper
return fn(self, kwargs)
File "/usr/local/lib/python3.10/dist-packages/gradio/components/base.py", line 229, in init
self.component_class_id = self.class.get_component_class_id()
File "/usr/local/lib/python3.10/dist-packages/gradio/components/base.py", line 118, in get_component_class_id
module_path = sys.modules[module_name].file__
KeyError: 'sd-webui-ar.py'
Error calling: /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-ar/scripts/sd-webui-ar.py/ui Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/scripts.py", line 545, in wrap_call return func(args, kwargs) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-ar/scripts/sd-webui-ar.py", line 244, in ui btns = [ File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-ar/scripts/sd-webui-ar.py", line 245, in
ARButton(ar=ar, value=label)
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-ar/scripts/sd-webui-ar.py", line 31, in init
super().init(kwargs)
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/ui_components.py", line 23, in init
super().init(args, elem_classes=["tool", elem_classes], value=value, kwargs)
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/gradio_extensions.py", line 147, in repaired_init
original(self, *args, fixed_kwargs)
File "/usr/local/lib/python3.10/dist-packages/gradio/component_meta.py", line 163, in wrapper
return fn(self, kwargs)
File "/usr/local/lib/python3.10/dist-packages/gradio/components/button.py", line 61, in init
super().init__(
File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/gradio_extensions.py", line 36, in IOComponent_init
res = original_IOComponent_init(self, *args, kwargs)
File "/usr/local/lib/python3.10/dist-packages/gradio/component_meta.py", line 163, in wrapper
return fn(self, kwargs)
File "/usr/local/lib/python3.10/dist-packages/gradio/components/base.py", line 229, in init
self.component_class_id = self.class.get_component_class_id()
File "/usr/local/lib/python3.10/dist-packages/gradio/components/base.py", line 118, in get_component_class_id
module_path = sys.modules[module_name].file__
KeyError: 'sd-webui-ar.py'
2024-08-30 08:45:03,024 - ControlNet - INFO - ControlNet UI callback registered. Error executing callback ui_tabs_callback for /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/PBRemTools/scripts/main.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_callbacks.py", line 283, in ui_tabs_callback res += c.callback() or [] File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/PBRemTools/scripts/main.py", line 15, in on_ui_tabs batch_image = gr.File(label="Batch Images", file_count="multiple", interactive=True, type="file") File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/gradio_extensions.py", line 147, in __repaired_init__ original(self, args, fixed_kwargs) File "/usr/local/lib/python3.10/dist-packages/gradio/component_meta.py", line 163, in wrapper return fn(self, **kwargs) File "/usr/local/lib/python3.10/dist-packages/gradio/components/file.py", line 98, in init raise ValueError( ValueError: Invalid value for parameter
type
: file. Please choose from one of: ['filepath', 'binary']/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py:117: GradioDeprecationWarning: unexpected argument for Dropdown: lines ch_age_drop = gr.Dropdown( /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py:129: GradioDeprecationWarning: unexpected argument for Dropdown: lines ch_sort_drop = gr.Dropdown( /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py:141: GradioDeprecationWarning: unexpected argument for Dropdown: lines ch_base_model_drop = gr.Dropdown( /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py:170: GradioDeprecationWarning: unexpected argument for Dropdown: lines ch_type_drop = gr.Dropdown( /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py:194: GradioDeprecationWarning: unexpected argument for Checkbox: lines ch_nsfw_ckb = gr.Checkbox( /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py:200: GradioDeprecationWarning: unexpected argument for Button: lines ch_search_btn = gr.Button( /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py:207: GradioDeprecationWarning: unexpected argument for Button: lines ch_prev_btn = gr.Button( /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py:212: GradioDeprecationWarning: unexpected argument for Button: lines ch_next_btn = gr.Button( Error executing callback ui_tabs_callback for /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-traintrain/scripts/traintrain.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_callbacks.py", line 283, in ui_tabs_callback res += c.callback() or [] File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-traintrain/scripts/traintrain.py", line 200, in on_ui_tabs loadpreset = ToolButton(value=load_symbol) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-traintrain/scripts/traintrain.py", line 164, in init super().init(variant="tool", File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/gradio_extensions.py", line 147, in __repaired_init__ original(self, args, fixed_kwargs) File "/usr/local/lib/python3.10/dist-packages/gradio/component_meta.py", line 163, in wrapper return fn(self, *kwargs) File "/usr/local/lib/python3.10/dist-packages/gradio/components/button.py", line 61, in init super().init( File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/gradio_extensions.py", line 36, in IOComponent_init res = original_IOComponent_init(self, args, kwargs) File "/usr/local/lib/python3.10/dist-packages/gradio/component_meta.py", line 163, in wrapper return fn(self, kwargs) File "/usr/local/lib/python3.10/dist-packages/gradio/components/base.py", line 229, in init self.component_class_id = self.class.get_component_class_id() File "/usr/local/lib/python3.10/dist-packages/gradio/components/base.py", line 118, in get_component_class_id module_path = sys.modules[module_name].file KeyError: 'traintrain.py'
/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/stable-diffusion-webui-wd14-tagger/tagger/ui.py:232: GradioDeprecationWarning: unexpected argument for HTML: interactive info = gr.HTML( Model selected: {'checkpoint_info': {'filename': '/content/drive/MyDrive/sd/stable-diffusion-webui-forge/models/Stable-diffusion/anyloracleanlinearmix_v10.safetensors', 'hash': '02c25880'}, 'additional_modules': [], 'unet_storage_dtype': None} Using online LoRAs in FP16: False Running on local URL: http://127.0.0.1:7860/ Running on public URL: https://e02801fdcf9436e346.gradio.live/
This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run
gradio deploy
from Terminal to deploy to Spaces (https://huggingface.co/spaces) *** Error executing callback app_started_callback for /content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-traintrain/scripts/traintrain.py Traceback (most recent call last): File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/modules/script_callbacks.py", line 256, in app_started_callback c.callback(demo, app) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/sd-webui-traintrain/scripts/traintrain.py", line 588, in get_params_components dependencies: list[dict] = [x for x in demo.dependencies if x["trigger"] == "click" and _id in x["targets"]] AttributeError: 'Blocks' object has no attribute 'dependencies'Startup time: 84.4s (prepare environment: 28.4s, import torch: 18.5s, initialize shared: 0.4s, other imports: 1.6s, list SD models: 0.1s, load scripts: 17.3s, create ui: 9.1s, gradio launch: 8.6s). Environment vars changed: {'stream': False, 'inference_memory': 1024.0, 'pin_shared_memory': False} [GPU Setting] You will use 93.22% GPU memory (14078.00 MB) to load weights, and use 6.78% GPU memory (1024.00 MB) to do matrix computation. Model selected: {'checkpoint_info': {'filename': '/content/drive/MyDrive/sd/stable-diffusion-webui-forge/models/Stable-diffusion/anyloracleanlinearmix_v10.safetensors', 'hash': '02c25880'}, 'additional_modules': [], 'unet_storage_dtype': None} Using online LoRAs in FP16: False [Config-Presets] Changed to: anyloracleanlinearmix_v10.safetensors
The stable diffusion works, but the extensions no longer work with the following error message. (The following is the error when using Civitai Helper Browser)
Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 536, in process_events response = await route_utils.call_process_api( File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 285, in call_process_api output = await app.get_blocks().process_api( File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1923, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1508, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, args) File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 818, in wrapper response = f(args, **kwargs) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py", line 67, in perform_search params = make_params(search) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py", line 277, in make_params frags = array_frags(key, val, frags) File "/content/drive/MyDrive/sd/stable-diffusion-webui-forge/extensions/Stable-Diffusion-Webui-Civitai-Helper/browser/browser.py", line 261, in array_frags if len(vals) == 0: TypeError: object of type 'NoneType' has no len()
The image generation and roller are working fine.
Please help us to solve this problem.