Skip to content

cashea/sd-webui-agent-scheduler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Scheduler

Introducing AgentScheduler, an A1111/Vladmandic Stable Diffusion Web UI extension to power up your image generation workflow!

Table of Content


Compatibility

This version of AgentScheduler is compatible with latest versions of:

Older versions may not working properly.

Installation

Using Vlad's WebUI Fork

The extension is already included in Vlad fork's builtin extensions.

Using the built-in extension list

  1. Open the Extensions tab
  2. Open the "Install From URL" sub-tab
  3. Paste the repo url: https://github.com/ArtVentureX/sd-webui-agent-scheduler.git
  4. Click "Install"

Install

Manual clone

git clone "https://github.com/ArtVentureX/sd-webui-agent-scheduler.git" extensions/agent-scheduler

(The second argument specifies the name of the folder, you can choose whatever you like).

Functionality [as of current version]

Extension Walkthrough 1

1️⃣ Input your usual Prompts & Settings. Enqueue to send your current prompts, settings, controlnets to AgentScheduler.

Extension Walkthrough 2

2️⃣ AgentScheduler Extension Tab.

3️⃣ See all queued tasks, current image being generated and tasks' associated information. Drag and drop the handle in the begining of each row to reaggrange the generation order.

4️⃣ Pause to stop queue auto generation. Resume to start.

5️⃣ Press ▶️ to prioritize selected task, or to start a single task when queue is paused. Delete tasks that you no longer want.

 Extension Walkthrough 3

6️⃣ Show queue history.

7️⃣ Filter task status or search by text.

8️⃣ Bookmark task to easier filtering.

9️⃣ Double click the task id to rename. Click ↩️ to Requeue old task.

🔟 Click on each task to view the generation results.

Agent.s+Schedule+Introduction.mp4

Extension Settings

Go to Settings > Agent Scheduler to access extension settings.

Settings

Disable Queue Auto-Processing: Check this option to disable queue auto-processing on start-up. You can also temporarily pause or resume the queue from the Extension tab.

Queue Button Placement: Change the placement of the queue button on the UI.

Hide the Checkpoint Dropdown: The Extension provides a custom checkpoint dropdown.

Custom Checkpoint

By default, queued tasks use the currently loaded checkpoint. However, changing the system checkpoint requires some time to load the checkpoint into memory, and you also cannot change the checkpoint during image generation. You can use this dropdown to quickly queue a task with a custom checkpoint.

Auto Delete Queue History: Select a timeframe to keep your queue history. Tasks that are older than the configured value will be automatically deleted. Please note that bookmarked tasks will not be deleted.

API Access

All the functionality of this extension can be accessed through HTTP APIs. You can access the API documentation via https://127.0.0.1:7860/docs. Remember to include --api in your startup arguments.

API docs

Queue Task

The two apis /agent-scheduler/v1/queue/txt2img and /agent-scheduler/v1/queue/img2img support all the parameters of the original webui apis. These apis response the task id, which can be used to perform updates later.

{
  "task_id": "string"
}

Download Results

Use api /agent-scheduler/v1/results/{id} to get the generated images. The api supports two response format:

  • json with base64 encoded
{
  "success": true,
  "data": [
    {
      "image": "data:image/png;base64,iVBORw0KGgoAAAAN...",
      "infotext": "1girl\nNegative prompt: EasyNegative, badhandv4..."
    },
    {
      "image": "data:image/png;base64,iVBORw0KGgoAAAAN...",
      "infotext": "1girl\nNegative prompt: EasyNegative, badhandv4..."
    }
  ]
}
  • zip file with querystring zip=true

Troubleshooting

Make sure that you are running the latest version of the extension and an updated version of the WebUI.

  • To update the extension, go to Extension tab and click Check for Updates, then click Apply and restart UI.
  • To update the WebUI it self, you run the command git pull origin master in the same folder as webui.bat (or webui.sh).

Steps to try to find the cause of issues:

  • Check the for errors in the WebUI output console.
  • Press F12 in the browser then go to the console tab and reload the page, find any error message here.

Common errors:

AttributeError: module 'modules.script_callbacks' has no attribute 'on_before_reload'

If you see this error message in the output console, try update the WebUI to the latest version.

ReferenceError: submit_enqueue is not defined

If you click the Enqueue button and nothing happen, and you find above error message in the browser F12 console, follow the steps in this comment.

For other errors, feel free to fire a new Github issue.

Road Map

To list possible feature upgrades for this extension

  • Connect multiple SD webui nodes to run task.
  • Sync with GenAI Management Platform ArtVenture

Contributing

We welcome contributions to the Agent Scheduler Extension project! Please feel free to submit issues, bug reports, and feature requests through the GitHub repository.

Please give us a ⭐ if you find this extension helpful!

License

This project is licensed under the Apache License 2.0.

Disclaimer

The author(s) of this project are not responsible for any damages or legal issues arising from the use of this software. Users are solely responsible for ensuring that they comply with any applicable laws and regulations when using this software and assume all risks associated with its use. The author(s) are not responsible for any copyright violations or legal issues arising from the use of input or output content.


CRAFTED BY THE PEOPLE BUILDING ARTVENTURE, ATHERLABS & SIPHER ODYSSEY

About ArtVenture (coming soon™️)

ArtVenture offers powerful collaboration features for Generative AI Image workflows. It is designed to help designers and creative professionals of all levels collaborate more efficiently, unleash their creativity, and have full transparency and tracking over the creation process.

ArtVenture Teaser

ArtVenture Teaser 2

Current Features

ArtVenture offers the following key features:

  • Seamless Access: available on desktop and mobile
  • Multiplayer & Collaborative UX. Strong collaboration features, such as real-time commenting and feedback, version control, and image/file/project sharing.
  • Powerful semantic search capabilities.
  • Building on shoulders of Giants, leveraging A1111/Vladnmandic and other pioneers, provide collaboration process from Idea (Sketch/Thoughts/Business Request) to Final Results(Images/Copywriting Post/TaskCompleted) in 1 platform
  • Automation tooling for certain repeated tasks
  • Secure and transparent, leveraging hasing and metadata to track the origin and history of models, loras, images to allow for tracability and ease of collaboration.
  • Personalize UX for both beginner and experienced users to quickly remix existing SD images by editing prompts and negative prompts, selecting new training models and output quality as desired.

Target Audience

ArtVenture is designed for the following target audiences:

  • Casual Creators
  • Small Design Teams or Freelancers
  • Design Agencies & Studios

🎉 Stay Tuned for Updates

We hope you find this extension to be useful. We will be adding new features and improvements over time as we enhance this extension to support our creative workflows.

To stay up-to-date with the latest news and updates, be sure to follow us on GitHub and Twitter (coming soon™️). We welcome your feedback and suggestions, and are excited to hear how AgentScheduler can help you streamline your workflow and unleash your creativity!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.1%
  • Python 5.4%
  • TypeScript 2.0%
  • Other 0.5%