stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

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

Open raffetazarius opened this issue 1 year ago • 5 comments

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 avatar Sep 10 '24 22:09 raffetazarius

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 avatar Sep 10 '24 22:09 raffetazarius

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

raffetazarius avatar Sep 16 '24 00:09 raffetazarius

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

AIKS68 avatar Oct 07 '24 16:10 AIKS68

This fork seems to work with Forge.

https://github.com/htmambo/sd-webui-agent-scheduler

raffetazarius avatar Feb 05 '25 02:02 raffetazarius

This fork seems to work with Forge.

https://github.com/htmambo/sd-webui-agent-scheduler

Just want to ask, is this fork deemed SAFE? I keep reading warnings about Forge packages being under attack with malicious code, and would like to be sure that this is not the case.

Can anyone verify?

Joscpe avatar Mar 30 '25 03:03 Joscpe