lllyasviel / lllyasviel/stable-diffusion-webui-forge

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

Open
#1,782 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/lllyasviel/stable-diffusion-webui-forge/commit/0f3309eb3da7093c74f353fb9e2c1fc779a055c4)  •  python: 3.10.13  •  torch: 2.4.0.dev20240406  •  xformers: N/A  •  gradio: 4.40.0  •  checkpoint: [db51618546](https://google.com/search?q=db51618546bad94bd391422fe399259643c0f86e319f1f6bb5777ae0c6ac075f)

```
[-] 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 "", line 883, in exec_module
File "", 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
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
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
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
from ..models import TaskModel
File "/Users/privateuser/stable-diffusion-webui-forge/extensions/sd-webui-agent-scheduler/agent_scheduler/models.py", line 53, in
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](https://github.com/user-attachments/files/16955794/SD.Forge.startup.txt)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce startup with sd-webui-agent-scheduler on the reported Forge, Python, and Gradio versions, then start at extensions/sd-webui-agent-scheduler/agent_scheduler/models.py:71 and follow the imports through task_scheduler.py and task_runner.py. Check the reported Pydantic AttributeError and the attached startup log; done means the extension loads without the task_scheduler.py traceback.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.