lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.53k stars 835 forks source link

sd-webui-agent-scheduler Extension not working in SD Forge version: f2.0.1v1.10.1-previous-418-g0f3309eb (works OK in A1111) #1782

Open raffetazarius opened 2 months ago

raffetazarius commented 2 months ago

Extension: https://github.com/ArtVentureX/sd-webui-agent-scheduler AFAIK this is the predominant scheduler for A1111 (and offshoots thereof).


I've attempted to uninstall and reinstall the extension with no success.

I'm getting the below error when SD Forge starts up - excerpt from startup Terminal feed relevant to this issue - full script is

I'm on MacBook M3 Max 40-core GPU 128GB RAM on MacOS 14.6.1. Footer of SD Forge says: version: f2.0.1v1.10.1-previous-418-g0f3309eb  •  python: 3.10.13  •  torch: 2.4.0.dev20240406  •  xformers: N/A  •  gradio: 4.40.0  •  checkpoint: db51618546

[-] ADetailer initialized. version: 24.8.0, num models: 16
Using sqlite file: /Users/privateuser/stable-diffusion-webui-forge/extensions/sd-webui-agent-scheduler/task_scheduler.sqlite3
*** Error loading script: task_scheduler.py
    Traceback (most recent call last):
      File "/Users/privateuser/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/privateuser/stable-diffusion-webui-forge/modules/script_loading.py", line 13, 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/privateuser/stable-diffusion-webui-forge/extensions/sd-webui-agent-scheduler/scripts/task_scheduler.py", line 24, in <module>
        from agent_scheduler.task_runner import TaskRunner, get_instance
      File "/Users/privateuser/stable-diffusion-webui-forge/extensions/sd-webui-agent-scheduler/agent_scheduler/task_runner.py", line 26, in <module>
        from .db import TaskStatus, Task, task_manager
      File "/Users/privateuser/stable-diffusion-webui-forge/extensions/sd-webui-agent-scheduler/agent_scheduler/db/__init__.py", line 6, in <module>
        from .task import TaskStatus, Task, TaskManager
      File "/Users/privateuser/stable-diffusion-webui-forge/extensions/sd-webui-agent-scheduler/agent_scheduler/db/task.py", line 22, in <module>
        from ..models import TaskModel
      File "/Users/privateuser/stable-diffusion-webui-forge/extensions/sd-webui-agent-scheduler/agent_scheduler/models.py", line 53, in <module>
        class Txt2ImgApiTaskArgs(StableDiffusionTxt2ImgProcessingAPI):
      File "/Users/privateuser/stable-diffusion-webui-forge/extensions/sd-webui-agent-scheduler/agent_scheduler/models.py", line 71, in Txt2ImgApiTaskArgs
        class Config(StableDiffusionTxt2ImgProcessingAPI.__config__):
      File "/Users/privateuser/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py", line 237, in __getattr__
        raise AttributeError(item)
    AttributeError: __config__

---
CHv1.8.11: Set Proxy: 

SD Forge startup.txt

raffetazarius commented 2 months ago

The extension works OK in my "vanilla" (non-Forge) A1111 installation:

version: v1.8.0  •  python: 3.10.14  •  torch: 2.1.0  •  xformers: N/A  •  gradio: 3.41.2  •  checkpoint: ec60932651

raffetazarius commented 2 months ago

Filed here with the extension developer ArtVentureX - https://github.com/ArtVentureX/sd-webui-agent-scheduler/issues/253

AIKS68 commented 1 month ago

This is an extension I would love to see working with ForgeUI.