GithubHelp home page GithubHelp logo

stability-ai / stableswarmui Goto Github PK

View Code? Open in Web Editor NEW
2.5K 49.0 210.0 10.81 MB

StableSwarmUI, A Modular Stable Diffusion Web-User-Interface, with an emphasis on making powertools easily accessible, high performance, and extensibility.

License: MIT License

PowerShell 0.05% Batchfile 0.20% C# 51.12% HTML 5.84% CSS 4.69% JavaScript 33.52% Shell 0.27% Python 4.13% Jupyter Notebook 0.17% Dockerfile 0.02%
ai image-generation stable-diffusion stablediffusion ui

stableswarmui's Introduction

StableSwarmUI

StableSwarmUI 0.6.2 Beta.

A Modular Stable Diffusion Web-User-Interface, with an emphasis on making powertools easily accessible, high performance, and extensibility.

ui-screenshot

Follow the Feature Announcements Thread for updates on new features.

Status

This project is in Beta status. That means most things work, but there's a lot more planned before it's truly "ready for primetime". it's currently at a point where it's safe to recommend for general users, though you may need at times to use the integrated Comfy tab as a backup way to execute some things that would ideally be on the main UI. There are some known bugs and quality-of-life limits still be worked out.

Those interested in helping push to a Full ready-for-anything Release status are welcome to submit PRs (read the Contributing document first), and you can contact us here on GitHub or on Discord in the #stableswarmui channel. I highly recommended reaching out to ask about plans for a feature before PRing it. There may already be specific plans or even a work in progress.

Key feature targets not yet implemented:

  • Mobile browser formatting
  • full detail "Current Model" display in UI, separate from the model selector (probably as a tab within the batch sidebar?)
    • potentially even a way to dynamically shift tabs around between spots for convenience
  • LLM-assisted prompting
  • convenient direct-distribution of Swarm as a program (Electron app?)

Try It On Google Colab

WARNING: Google Colab does not necessarily allow remote WebUIs, particularly for free accounts, use at your own risk.

Colab link if you want to try Swarm: https://colab.research.google.com/github/Stability-AI/StableSwarmUI/blob/master/colab/colab-notebook.ipynb

Installing on Windows

  • Download The Install-Windows.bat file, store it somewhere you want to install at (not Program Files), and run it.
    • It should open a command prompt and install itself.
    • If it closes without going further, try running it again, it sometimes needs to run twice. (TODO: Fix that)
    • It will place an icon on your desktop that you can use to re-launch the server at any time.
    • When the installer completes, it will automatically launch the StableSwarmUI server, and open a browser window to the install page.
    • Follow the install instructions on the page.
    • After you submit, be patient, some of the install processing take a few minutes (downloading models and etc).

(TODO): Even easier self-contained pre-installer, a .msi or .exe that provides a general install screen and lets you pick folder and all.

Alternate Manual Windows Install

Installing on Linux

  • Install git, python3 via your OS package manager if they are not already installed (make sure to include pip and venv on distros that do not include them in python directly)

    • For example, on recent Ubuntu versions, sudo apt install git python3-pip python3-venv
  • Download the install-linux.sh file, store it somewhere you want to install at, and run it

    • If you like terminals, you can open a terminal to the folder and run the following commands:
      • wget https://github.com/Stability-AI/StableSwarmUI/releases/download/0.6.1-Beta/install-linux.sh -O install-linux.sh
      • chmod +x install-linux.sh
  • Run the ./install-linux.sh script, it will install everything for you and eventually open the webpage in your browser.

  • Follow the install instructions on-page.

  • You can at any time in the future run the launch-linux.sh script to re-launch Swarm.

  • If the page doesn't open itself, you can manually open http://localhost:7801

Alternate Manual Linux Install

  • Install git, python3 via your OS package manager if they are not already installed (make sure to include pip and venv on distros that do not include them in python directly)
    • For example, on recent Ubuntu versions, sudo apt install git python3-pip python3-venv
  • Install DotNET 8 using the instructions at https://dotnet.microsoft.com/en-us/download/dotnet/8.0 (you need dotnet-sdk-8.0, as that includes all relevant sub-packages)
    • Some users have said that certain Linux distros expect aspnet-runtime to be installed separately
  • Open a shell terminal and cd to a directory you want to install into
  • Run shell commands:
    • git clone https://github.com/Stability-AI/StableSwarmUI
    • cd StableSwarmUI
    • ./launch-linux.sh
  • open http://localhost:7801/Install (if it doesn't launch itself)
  • Follow the install instructions on-page.

(TODO): Maybe outlink a dedicated document with per-distro details and whatever. Maybe also make a one-click installer for Linux?

Installing on Mac

Note: You can only run StableSwarmUI on Mac computers with M1 or M2 (Mx) Apple silicon processors.

  1. Open Terminal.
  2. Ensure your brew packages are updated with brew update.
  3. Verify your brew installation with brew doctor. You should not see any error in the command output.
  4. Install .NET for macOS: brew install dotnet.
  5. Change the directory (cd) to the folder where you want to install StableSwarmUI.
  6. Clone the StableSwarmUI GitHub repository: git clone https://github.com/Stability-AI/StableSwarmUI.
  7. cd StableSwarmUI and run the installation script: ./launch-macos.sh.

The installation starts now and downloads the Stable Diffusion models from the internet. Depending on your internet connection, this may take several minutes. Wait for your web browser to open the StableSwarmUI window.

During the StableSwarmUI installation, you are prompted for the type of backend you want to use. For Mac computers with M1 or M2, you can safely choose the ComfyUI backend and choose the Stable Diffusion XL Base and Refiner models in the Download Models screen.

Running with Docker

  • To forward an Nvidia GPU, you must have the Nvidia Container Toolkit installed: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
  • Open a shell terminal and cd to a directory you want to install into
  • Run shell commands:
    • git clone https://github.com/Stability-AI/StableSwarmUI
    • cd StableSwarmUI
    • ./launch-docker.sh
    • Open your browser to localhost:7801
  • Note that it will forward the Models and Output directory, and will mount Data and dlbackend as independent persistent volumes.

Documentation

See the documentation folder.

Motivations

The "Swarm" name is in reference to the original key function of the UI: enabling a 'swarm' of GPUs to all generate images for the same user at once (especially for large grid generations). This is just the feature that inspired the name and not the end all of what Swarm is.

The overall goal of StableSwarmUI is to a be full-featured one-stop-shop for all things Stable Diffusion.

See the motivations document for motivations on technical choices.

Legal

This project:

StableSwarmUI itself is under the MIT license, however some usages may be affected by the GPL variant licenses of connected projects list above, and note that any models used have their own licenses.

License

The MIT License (MIT)

Copyright (c) 2024 Stability AI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

stableswarmui's People

Contributors

binaryquantumsoul avatar camenduru avatar homuch avatar jorge-campo avatar mbuc avatar mcmonkey4eva avatar olivierlacan avatar pythongosssss avatar rickles42 avatar surfingdoggo avatar xhoxye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stableswarmui's Issues

Some backends have errored on the server. Check the server logs for details.

ERR error="stream 165 canceled by remote with error code 0" cfRay=7f4945cce4dfeb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 165 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/site.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 161 canceled by remote with error code 0" cfRay=7f4945ccf4ebeb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 161 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/util.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 157 canceled by remote with error code 0" cfRay=7f4945ccf4eceb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 157 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/ExtensionFile/ComfyUIBackendExtension/Assets/comfy_workflow_editor_helper.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 129 canceled by remote with error code 0" cfRay=7f4945c9011ceb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 129 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/css/select2_bootstrap.min.css event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 169 canceled by remote with error code 0" cfRay=7f4945ccf4efeb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 169 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/genpage.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 153 canceled by remote with error code 0" cfRay=7f4945c9012deb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 153 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/bootstrap.min.js event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 145 canceled by remote with error code 0" cfRay=7f4945c8f112eb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 145 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/css/bootstrap.min.css event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 149 canceled by remote with error code 0" cfRay=7f4945c91132eb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 149 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/select2.min.js event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 185 canceled by remote with error code 0" cfRay=7f4945cce4e2eb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 185 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/genpage_browsers.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 189 canceled by remote with error code 0" cfRay=7f4945cce4e6eb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 189 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/genpage_presets.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 181 canceled by remote with error code 0" cfRay=7f4945ccf4e8eb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 181 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/genpage_params.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 121 canceled by remote with error code 0" cfRay=7f4945c90126eb43-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 121 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/jquery.min.js event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 201 canceled by remote with error code 0" cfRay=7f4945cd45e9c3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 201 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/bootstrap.min.js event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 245 canceled by remote with error code 0" cfRay=7f4945d683dac3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 245 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/genpage_presets.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 257 canceled by remote with error code 0" cfRay=7f4945d683dfc3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 257 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/ExtensionFile/ComfyUIBackendExtension/Assets/comfy_workflow_editor_helper.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 253 canceled by remote with error code 0" cfRay=7f4945d683d8c3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 253 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/genpage_params.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 217 canceled by remote with error code 0" cfRay=7f4945cd45f1c3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 217 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/css/bootstrap.min.css event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 225 canceled by remote with error code 0" cfRay=7f4945cd55f5c3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 225 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/select2.min.js event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 281 canceled by remote with error code 0" cfRay=7f4945d673d3c3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 281 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/genpage_browsers.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 213 canceled by remote with error code 0" cfRay=7f4945cd45e8c3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 213 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/css/select2_bootstrap.min.css event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 249 canceled by remote with error code 0" cfRay=7f4945d673d4c3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 249 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/genpage_models.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 273 canceled by remote with error code 0" cfRay=7f4945d683e2c3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 273 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/genpage.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 269 canceled by remote with error code 0" cfRay=7f4945d683dec3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 269 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/util.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 277 canceled by remote with error code 0" cfRay=7f4945d673d1c3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 277 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/site.js?vary=0.5.3.0 event=0 ip=198.41.200.23 type=http
2023-08-10T15:29:12Z ERR error="stream 237 canceled by remote with error code 0" cfRay=7f4945cd45eac3d7-SEA event=1 originService=http://localhost:7801/
2023-08-10T15:29:12Z ERR Request failed error="stream 237 canceled by remote with error code 0" connIndex=0 dest=https://graph-findarticles-modelling-briefing.trycloudflare.com/js/jquery.min.js event=0 ip=198.41.200.23 type=http
15:29:15.979 [Info] Creating new admin session for 127.0.0.1

Colab paid products - Cancel contracts here

Automate Support For Old AMD GPUs (DirectML)

Hi,
I followed the default installation process. but when run StableSwarmUI I receive error message
Some backends have errored on the server. Check the server logs for details.
I have MSI Alpha 15 | Ryzen 7 with AMD Radeon RX.
Does StableSwarmUI support my AMD gpu?
Any help please?

01
02

DotNET Installation Error on Windows 11

I read the instructions on the README.md and downloaded install-windows.bat. I placed it where I wanted to install and ran it. It didn't work. I further attempted to run make-shortcut.bat and launch-windows.bat --launch_mode webinstall and this is the resulting output.

C:\AI>install-windows.bat
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Found Microsoft .NET SDK 7.0 [Microsoft.DotNet.SDK.7] Version 7.0.306
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.306/dotnet-sdk-7.0.306-win-x64.exe
  ██████████████████████████████   201 MB /  201 MB
Successfully verified installer hash
Starting package install...
Successfully installed
Found an existing package already installed. Trying to upgrade the installed package...
Found Git [Git.Git] Version 2.41.0.3
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.3/Git-2.41.0.3-64-bit.exe
  ██████████████████████████████  58.3 MB / 58.3 MB
Successfully verified installer hash
Starting package install...
The installer will request to run as administrator, expect a prompt.
Successfully installed
Cloning into 'StableSwarmUI'...
remote: Enumerating objects: 3310, done.
remote: Counting objects: 100% (566/566), done.
remote: Compressing objects: 100% (201/201), done.
remote: Total 3310 (delta 364), reused 563 (delta 362), pack-reused 2744
Receiving objects: 100% (3310/3310), 1.80 MiB | 10.54 MiB/s, done.
Resolving deltas: 100% (2310/2310), done.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.

C:\AI\StableSwarmUI>make-shortcut.bat
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.

C:\AI\StableSwarmUI>launch-windows.bat --launch_mode webinstall
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'build' does not exist.
  * You intended to execute a .NET SDK command:
      No .NET SDKs were found.

Download a .NET SDK:
https://aka.ms/dotnet/download

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application 'src\bin\live_release\StableSwarmUI.dll' does not exist.
  * You intended to execute a .NET SDK command:
      No .NET SDKs were found.

Download a .NET SDK:
https://aka.ms/dotnet/download

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found

C:\AI\StableSwarmUI>

Aspect Ratio: Height and Width are swapped

Hello, just noticed a bug that probably got past tests, as most people use 1:1 ratios.
image

The output image uses the input dimensions, but vertical and horizontal axes are swapped.
(Also, it would be nice to have an option to use the source image dimensions when doing img2img)

Note: I'm using the ComfyUI local backend, in case it matters.

Backend usage timeout, all backends occupied

I am installing StableSwarmUI on my A100 40G DGX Station , Ubuntu 22.04, and it always says: "No backends present. You must configure backends in the Backends section of the Server tab before you can continue." "Some backends are disabled. Please configure them to continue." , what should I do?

Can not load 1111 error unrecognized arguments

Comfy running fine. Keep getting errors on loading 1111 as backend. its requests use webui script python file which is:

Self-Start AutoWebUI on port 7822 is loading...
usage: webui.py [-h] [--update-all-extensions] [--skip-python-version-check]
[--skip-torch-cuda-test] [--reinstall-xformers]
[--reinstall-torch] [--update-check] [--test-server]
[--skip-prepare-environment] [--skip-install]
[--do-not-download-clip] [--data-dir DATA_DIR]
[--config CONFIG] [--ckpt CKPT] [--ckpt-dir CKPT_DIR]
[--vae-dir VAE_DIR] [--gfpgan-dir GFPGAN_DIR]
[--gfpgan-model GFPGAN_MODEL] [--no-half] [--no-half-vae]
[--no-progressbar-hiding] [--max-batch-count MAX_BATCH_COUNT]
[--embeddings-dir EMBEDDINGS_DIR]
[--textual-inversion-templates-dir TEXTUAL_INVERSION_TEMPLATES_DIR]
[--hypernetwork-dir HYPERNETWORK_DIR]
[--localizations-dir LOCALIZATIONS_DIR] [--allow-code]
[--medvram] [--lowvram] [--lowram]
[--always-batch-cond-uncond] [--unload-gfpgan]
[--precision {full,autocast}] [--upcast-sampling] [--share]
[--ngrok NGROK] [--ngrok-region NGROK_REGION]
[--ngrok-options NGROK_OPTIONS]
[--enable-insecure-extension-access]
[--codeformer-models-path CODEFORMER_MODELS_PATH]
[--gfpgan-models-path GFPGAN_MODELS_PATH]
[--esrgan-models-path ESRGAN_MODELS_PATH]
[--bsrgan-models-path BSRGAN_MODELS_PATH]
[--realesrgan-models-path REALESRGAN_MODELS_PATH]
[--clip-models-path CLIP_MODELS_PATH] [--xformers]
[--force-enable-xformers] [--xformers-flash-attention]
[--deepdanbooru] [--opt-split-attention]
[--opt-sub-quad-attention]
[--sub-quad-q-chunk-size SUB_QUAD_Q_CHUNK_SIZE]
[--sub-quad-kv-chunk-size SUB_QUAD_KV_CHUNK_SIZE]
[--sub-quad-chunk-threshold SUB_QUAD_CHUNK_THRESHOLD]
[--opt-split-attention-invokeai] [--opt-split-attention-v1]
[--opt-sdp-attention] [--opt-sdp-no-mem-attention]
[--disable-opt-split-attention] [--disable-nan-check]
[--use-cpu USE_CPU [USE_CPU ...]] [--listen] [--port PORT]
[--show-negative-prompt] [--ui-config-file UI_CONFIG_FILE]
[--hide-ui-dir-config] [--freeze-settings]
[--ui-settings-file UI_SETTINGS_FILE] [--gradio-debug]
[--gradio-auth GRADIO_AUTH]
[--gradio-auth-path GRADIO_AUTH_PATH]
[--gradio-img2img-tool GRADIO_IMG2IMG_TOOL]
[--gradio-inpaint-tool GRADIO_INPAINT_TOOL]
[--gradio-allowed-path GRADIO_ALLOWED_PATH]
[--opt-channelslast] [--styles-file STYLES_FILE]
[--autolaunch] [--theme THEME] [--use-textbox-seed]
[--disable-console-progressbars] [--enable-console-prompts]
[--vae-path VAE_PATH] [--disable-safe-unpickle] [--api]
[--api-auth API_AUTH] [--api-log] [--nowebui]
[--ui-debug-mode] [--device-id DEVICE_ID] [--administrator]
[--cors-allow-origins CORS_ALLOW_ORIGINS]
[--cors-allow-origins-regex CORS_ALLOW_ORIGINS_REGEX]
[--tls-keyfile TLS_KEYFILE] [--tls-certfile TLS_CERTFILE]
[--disable-tls-verify] [--server-name SERVER_NAME]
[--gradio-queue] [--no-gradio-queue] [--skip-version-check]
[--no-hashing] [--no-download-sd-model] [--subpath SUBPATH]
[--add-stop-route] [--api-server-stop]
[--timeout-keep-alive TIMEOUT_KEEP_ALIVE]
[--ldsr-models-path LDSR_MODELS_PATH] [--lora-dir LORA_DIR]
[--lyco-dir-backcompat LYCO_DIR_BACKCOMPAT]
[--scunet-models-path SCUNET_MODELS_PATH]
[--swinir-models-path SWINIR_MODELS_PATH]
webui.py: error: unrecognized arguments:
16:08:45.132 [Info] Self-Start AutoWebUI on port 7822 exited.

Comfy custom workflow

When using a custom workflow and setting the models from there, it then says if I press "Generate image" in the "Generate" tab, that there isn't a model selected.

Screenshot from 2023-07-31 23-48-00

Workflow that I'm using (above)

Screenshot from 2023-07-31 23-47-39

Error message

A11 by URL backend error

Im trying to add a Auto111 WebUI Backend running on a Mac but I get this error:

Final error (4) while initializing backend #1 - Auto1111 SD-WebUI API By URL, giving up: System.InvalidOperationException: Failed to read JSON '{"detail":"Not Found"}' with message: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1. at StableSwarmUI.Backends.NetworkBackendUtils.Parse[JType](HttpResponseMessage message) in C:\Users\"name"\Desktop\StableSwarm\StableSwarmUI\src\Backends\NetworkBackendUtils.cs:line 77 at StableSwarmUI.Builtin_AutoWebUIExtension.AutoWebUIAPIAbstractBackend.SendGet[JType](String url) in C:\Users\"name"\Desktop\StableSwarm\StableSwarmUI\src\BuiltinExtensions\AutoWebUIBackend\AutoWebUIAPIAbstractBackend.cs:line 106 at StableSwarmUI.Builtin_AutoWebUIExtension.AutoWebUIAPIAbstractBackend.InitInternal(Boolean ignoreWebError) in C:\Users\"name"\Desktop\StableSwarm\StableSwarmUI\src\BuiltinExtensions\AutoWebUIBackend\AutoWebUIAPIAbstractBackend.cs:line 53

Any ideas what to do?

ComfyUI API By URL requires locally installed models

I installed StableSwarmUI on my Mac without ComfyUI and without models. Just wanted to use a ComfyUI installation on my Linux box. If I want to generate an image I get the error message: Cannot generate, no model selected.

christoph_aesthetic.py assumes pytorch_lightning is available

But pytorch_lightning is listed in the requirements.txt within the BuiltinExtensions/Scorer directory, not in the top-level requirements.txt.

That doesn't get pip install-ed by the setup scripts as far as I can tell. Should it be?

I note that dlbackend/ComfyUi also doesn't get pip install -r requirements.txt called on it either so maybe that's expected? Should it be added to the installation instructions in the README, then?

My first run fresh from the install script and after installing the dependencies for ComfyUI only resulted in this error and stacktrace toward the end of the generation process:

----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 59121)
Traceback (most recent call last):
  File "/Users/olivierlacan/.pyenv/versions/3.11.4/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/Users/olivierlacan/.pyenv/versions/3.11.4/lib/python3.11/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/Users/olivierlacan/.pyenv/versions/3.11.4/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Users/olivierlacan/.pyenv/versions/3.11.4/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/Users/olivierlacan/.pyenv/versions/3.11.4/lib/python3.11/http/server.py", line 436, in handle
    self.handle_one_request()
  File "/Users/olivierlacan/.pyenv/versions/3.11.4/lib/python3.11/http/server.py", line 424, in handle_one_request
    method()
  File "/Users/olivierlacan/Development/oss/StableSwarmUI/src/BuiltinExtensions/Scorers/scorer_engine.py", line 137, in do_POST
    scorer.load()
  File "/Users/olivierlacan/Development/oss/StableSwarmUI/src/BuiltinExtensions/Scorers/scorer_engine.py", line 90, in load
    from christoph_aesthetic import AestheticPredictor
  File "/Users/olivierlacan/Development/oss/StableSwarmUI/src/BuiltinExtensions/Scorers/christoph_aesthetic.py", line 5, in <module>
    import pytorch_lightning as pl
ModuleNotFoundError: No module named 'pytorch_lightning'
----------------------------------------
16:54:55.851 [Error] ScorerExtension error: failed: No module named 'pytorch_lightning'
16:54:55.862 [Error] Internal error processing T2I request: System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'value'))
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'value')
   at Newtonsoft.Json.Linq.JToken.EnsureValue(JToken value)
   at Newtonsoft.Json.Linq.JToken.op_Explicit(JToken value)
   at StableSwarmUI.Builtin_ScorersExtension.ScorersExtension.DoScore(Image image, String prompt, String scorer) in /Users/olivierlacan/Development/oss/StableSwarmUI/src/BuiltinExtensions/Scorers/ScorersExtension.cs:line 117
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at StableSwarmUI.Builtin_ScorersExtension.ScorersExtension.PostGenEvent(PostGenerationEventParams p) in /Users/olivierlacan/Development/oss/StableSwarmUI/src/BuiltinExtensions/Scorers/ScorersExtension.cs:line 134
   at StableSwarmUI.Text2Image.T2IEngine.<>c__DisplayClass8_1.<CreateImageTask>g__handleImage|1(Image img) in /Users/olivierlacan/Development/oss/StableSwarmUI/src/Text2Image/T2IEngine.cs:line 128
   at StableSwarmUI.Builtin_ComfyUIBackend.ComfyUIAPIAbstractBackend.AwaitJobLive(String workflow, String batchId, Action`1 takeOutput, CancellationToken interrupt) in /Users/olivierlacan/Development/oss/StableSwarmUI/src/BuiltinExtensions/ComfyUIBackend/ComfyUIAPIAbstractBackend.cs:line 194
   at StableSwarmUI.Builtin_ComfyUIBackend.ComfyUIAPIAbstractBackend.GenerateLive(T2IParamInput user_input, String batchId, Action`1 takeOutput) in /Users/olivierlacan/Development/oss/StableSwarmUI/src/BuiltinExtensions/ComfyUIBackend/ComfyUIAPIAbstractBackend.cs:line 366
   at StableSwarmUI.Text2Image.T2IEngine.CreateImageTask(T2IParamInput user_input, String batchId, GenClaim claim, Action`1 output, Action`1 setError, Boolean isWS, Single backendTimeoutMin, Action`2 saveImages) in /Users/olivierlacan/Development/oss/StableSwarmUI/src/Text2Image/T2IEngine.cs:line 148

Custom Nodes

Hello. I am trying to install comfyui manager as usual but it doesn't appear on the panel of swarmui ?
How to fix that ? Thank you

Rerunning the ComfyUI installer if ComfyUI is already installed gives errors

  • Installed .net 7

  • ran install-windows.bat, created shortcut but did not auto-run

  • shortcut gives same error as mentioned in another issue
    image

  • ran launch-windows.bat manually, went through steps, after some wait it seems to install

  • on "completion" it opens main.py in VSCode and reopens the install page from the beginning
    image

  • running launch-windows.bat again does nothing different, opens VSCode and the install page

Scrolling not working on installer on Colab

When running colab either temporay install or Google Drive install, at the installer landing page with the Stable Diffusion Model License agreement, I am unable to to scroll down to click agree and move on to the next step.

Tested both in Chrome and Edge same thing

Prompt for multiLoRa

When second or another LoRa is used in addition to the LoRa used, the prompt and other settings part does not appear in web-ui, is it possible to add it?

ComfyUI cannot load the models

  1. I used the installer.bat.
  2. I ran the install (no error)
  3. the models show up in th model tab
  4. When I atempt to load a model I get an error (tried sdxl-1.0 and the 1.5-pruned)

models cannot be selected in ComfyUI (no dropdown)
models are visiblew in the "Generate section"

image
image
image

Error:

21:52:43.523 [Info] Creating new admin session for ::1
21:54:11.133 [Error] ComfyUI error: {
  "error": {
    "type": "prompt_outputs_failed_validation",
    "message": "Prompt outputs failed validation",
    "details": "",
    "extra_info": {}
  },
  "node_errors": {
    "4": {
      "errors": [
        {
          "type": "value_not_in_list",
          "message": "Value not in list",
          "details": "ckpt_name: 'OfficialStableDiffusion\\sd_xl_base_1.0.safetensors' not in []",
          "extra_info": {
            "input_name": "ckpt_name",
            "input_config": [
              []
            ],
            "received_value": "OfficialStableDiffusion\\sd_xl_base_1.0.safetensors"
          }
        }
      ],
      "dependent_outputs": [
        "9"
      ],
      "class_type": "CheckpointLoaderSimple"
    }
  }
}
21:54:11.134 [Warning] [BackendHandler] backend #0 failed to load model OfficialStableDiffusion/sd_xl_base_1.0.safetensors
21:54:11.134 [Warning] [BackendHandler] All backends failed to load the model! Cannot generate anything.
21:54:11.135 [Error] [BackendHandler] Backend request #1 failed: System.InvalidOperationException: All available backends failed to load the model.
   at StableSwarmUI.Backends.BackendHandler.LoadHighestPressureNow(List`1 possible, List`1 available, Action ReleasePressure, CancellationToken cancel) in C:\Users\xxxxx\StableSwarmUI\src\Backends\BackendHandler.cs:line 574
   at StableSwarmUI.Backends.BackendHandler.GetNextT2IBackend(TimeSpan maxWait, T2IModel model, Func`2 filter, Session session, Action notifyWillLoad, CancellationToken cancel) in C:\Users\xxxxx\StableSwarmUI\src\Backends\BackendHandler.cs:line 529

Setting an absolute path for ModelRoot and a relative path for SDModelFolder causes IOException during startup

I already have Auto WebUI installed, so while setting up StableSwarmUI, I followed this step of the basic usage steps:

If you have an Auto WebUI or ComfyUI folder with models in it, go to the Server tab then Server Configuration and set ModelRoot to your UI's models dir, and SDModelPath [sic] to Stable-diffusion for Auto WebUI or checkpoints for ComfyUI.

However, setting ModelRoot to the absolute path of my Auto WebUI models directory, and leaving SDModelFolder with its default value of Stable-Diffusion, causes the following unhandled exception when starting the server:
 

Unhandled exception. System.IO.IOException: The filename, directory name, or volume label syntax is incorrect. : 'C:\Users\[...]\StableSwarmUI\C:\Users\[...]\sd.webui\webui\models\Stable-Diffusion'
at System.IO.FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor)
at System.IO.Directory.CreateDirectory(String path)
at StableSwarmUI.Core.Program.Main(String[] args) in C:\Users\[...]\StableSwarmUI\src\Core\Program.cs:line 88

This appears to be due to the logic for getting SDModelFullPath (Settings.cs line 69). In my instance, the logic is concatenating two absolute paths.

I think a better way for the ModelRoot and SDModelFolder settings to work (and perhaps the way they're meant to work, based on the usage instructions) would be to check ModelRoot for an absolute path, and to assume that SDModelFolder is always a relative path, rather than the other way around.

Restore Faces

Hey there, love this program, I am able to use 2 computers one with a 3090, and the other with a 4080 and its works really well and fast. The only issue I have is with faces, are you planning on adding "restore faces" in the future? or is there a way to add this to the workflow now?
Thanks again for the great work.
Jack

Some Bugs about Upscale and LoRa

Hello, sir, it's me again. Upscale part is not showing up in 'generate tab', in additionally the 'upscale 2x' part distorts the image badly. Also we still can't adjust the LoRa weights. I added the ss.
FireShot Capture 040 - Image Generation - StableSwarmUI - localhost
FireShot Capture 039 - Image Generation - StableSwarmUI - localhost

Custom Images filename and output directory

Hi

I have a few questions regarding custom settings for filename and directory

  • when I set the server OutputPath to for ex D:\SD\Images and the user OutputPath (in the user tab) to [year]-[month]-[day]/[seed]-[model]-[prompt] , a "local" folder is created automatically and the images are saved in D:\SD\Images\local\2023-08-03 instead of D:\SD\Images\2023-08-03
    how can I stop the "Local" folder from being generated and save directly in the D:\SD\Images\2023-08-03 folder ?

  • for a single user, do I need to set the OutputPath and file save settings in the user tab and in the server settings, I don't seem to be able to set the server setting for all users, If I don't add settings in the user tab the files are not saved.

  • Would it be possible, as in WebUI1111. to use [number] in the custom file name to add a sequential number to the file, for ex : [number]-[seed]-[model]-[prompt] instead of having a -1, -2 etc at the end as it is currently the case in StableSwarmUI

Thanks

cant get it to work.

Cant install through the shortcut file and when i run from the launch file and move to the end of setup page nothing happens .

image
image

Could not execute because the specified command or file was not found.
Possible reasons for this include:

  • You misspelled a built-in dotnet command.
  • You intended to execute a .NET program, but dotnet-src\bin\live_release\StableSwarmUI.dll does not exist.
  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

im gettting that error . anyone knows how to fix it ? i have dotnet installed and path is correct too. i have also tried to reinstall it , but nothing works.

Placeholder shows in place of generated image

A placeholder image shows up in the output view initially before any previews start appearing (a nice touch BTW), but that placeholder image seems to remain in the DOM by mistake even after the final output is sent which yields this bug:

image

When you click on the output:

image

A quick check shows the popup modal does have the placeholder image in it in the DOM:
image. So I think I have a way to fix this.

Error as when installing apt dependencies in Colab

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.34.1-1ubuntu1.9).
The following additional packages will be installed:
aspnetcore-runtime-7.0 aspnetcore-targeting-pack-7.0 dotnet-apphost-pack-7.0
dotnet-host-7.0 dotnet-hostfxr-7.0 dotnet-runtime-7.0
dotnet-targeting-pack-7.0 dotnet-templates-7.0 liblttng-ust-common1
liblttng-ust-ctl5 liblttng-ust1 netstandard-targeting-pack-2.1-7.0
The following NEW packages will be installed:
aspnetcore-runtime-7.0 aspnetcore-targeting-pack-7.0 dotnet-apphost-pack-7.0
dotnet-host-7.0 dotnet-hostfxr-7.0 dotnet-runtime-7.0 dotnet-sdk-7.0
dotnet-targeting-pack-7.0 dotnet-templates-7.0 liblttng-ust-common1
liblttng-ust-ctl5 liblttng-ust1 netstandard-targeting-pack-2.1-7.0
0 upgraded, 13 newly installed, 0 to remove and 16 not upgraded.
Need to get 136 MB of archives.
After this operation, 490 MB of additional disk space will be used.
Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-host-7.0 amd64 7.0.109-0ubuntu122.04.1
Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-hostfxr-7.0 amd64 7.0.109-0ubuntu1
22.04.1
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblttng-ust-common1 amd64 2.13.1-1ubuntu1 [27.1 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblttng-ust-ctl5 amd64 2.13.1-1ubuntu1 [77.9 kB]
Err:1 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-host-7.0 amd64 7.0.109-0ubuntu122.04.1
404 Not Found [IP: 91.189.91.83 80]
Err:2 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-hostfxr-7.0 amd64 7.0.109-0ubuntu1
22.04.1
404 Not Found [IP: 91.189.91.83 80]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblttng-ust1 amd64 2.13.1-1ubuntu1 [190 kB]
Ign:6 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-runtime-7.0 amd64 7.0.109-0ubuntu122.04.1
Ign:7 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 aspnetcore-runtime-7.0 amd64 7.0.109-0ubuntu1
22.04.1
Ign:8 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 aspnetcore-targeting-pack-7.0 amd64 7.0.109-0ubuntu122.04.1
Ign:9 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-apphost-pack-7.0 amd64 7.0.109-0ubuntu1
22.04.1
Ign:10 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-targeting-pack-7.0 amd64 7.0.109-0ubuntu122.04.1
Ign:11 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-templates-7.0 amd64 7.0.109-0ubuntu1
22.04.1
Ign:12 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 netstandard-targeting-pack-2.1-7.0 amd64 7.0.109-0ubuntu122.04.1
Ign:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-sdk-7.0 amd64 7.0.109-0ubuntu1
22.04.1
Err:6 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-runtime-7.0 amd64 7.0.109-0ubuntu122.04.1
404 Not Found [IP: 91.189.91.83 80]
Err:7 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 aspnetcore-runtime-7.0 amd64 7.0.109-0ubuntu1
22.04.1
404 Not Found [IP: 91.189.91.83 80]
Err:8 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 aspnetcore-targeting-pack-7.0 amd64 7.0.109-0ubuntu122.04.1
404 Not Found [IP: 91.189.91.83 80]
Err:9 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-apphost-pack-7.0 amd64 7.0.109-0ubuntu1
22.04.1
404 Not Found [IP: 91.189.91.83 80]
Err:10 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-targeting-pack-7.0 amd64 7.0.109-0ubuntu122.04.1
404 Not Found [IP: 91.189.91.83 80]
Err:11 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-templates-7.0 amd64 7.0.109-0ubuntu1
22.04.1
404 Not Found [IP: 91.189.91.83 80]
Err:12 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 netstandard-targeting-pack-2.1-7.0 amd64 7.0.109-0ubuntu122.04.1
404 Not Found [IP: 91.189.91.83 80]
Err:13 http://security.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-sdk-7.0 amd64 7.0.109-0ubuntu1
22.04.1
404 Not Found [IP: 91.189.91.83 80]
Fetched 295 kB in 0s (753 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/dotnet-host-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/dotnet-hostfxr-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/dotnet-runtime-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/aspnetcore-runtime-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/aspnetcore-targeting-pack-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/dotnet-apphost-pack-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/dotnet-targeting-pack-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/dotnet-templates-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/netstandard-targeting-pack-2.1-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/d/dotnet7/dotnet-sdk-7.0_7.0.109-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 91.189.91.83 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
--2023-08-12 00:53:52-- https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
Resolving github.com (github.com)... 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/cloudflare/cloudflared/releases/download/2023.7.3/cloudflared-linux-amd64.deb [following]
--2023-08-12 00:53:52-- https://github.com/cloudflare/cloudflared/releases/download/2023.7.3/cloudflared-linux-amd64.deb
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/106867604/74b75b56-9acd-4151-8157-f68a5947b5d6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230812T005328Z&X-Amz-Expires=300&X-Amz-Signature=db7cdb8aaf1b8afb53b11877c083bc85ddbb6b78b4e9d933268b586756d57d97&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=106867604&response-content-disposition=attachment%3B%20filename%3Dcloudflared-linux-amd64.deb&response-content-type=application%2Foctet-stream [following]
--2023-08-12 00:53:52-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/106867604/74b75b56-9acd-4151-8157-f68a5947b5d6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230812T005328Z&X-Amz-Expires=300&X-Amz-Signature=db7cdb8aaf1b8afb53b11877c083bc85ddbb6b78b4e9d933268b586756d57d97&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=106867604&response-content-disposition=attachment%3B%20filename%3Dcloudflared-linux-amd64.deb&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17474408 (17M) [application/octet-stream]
Saving to: ‘cloudflared-linux-amd64.deb’

cloudflared-linux-a 100%[===================>] 16.66M --.-KB/s in 0.1s

2023-08-12 00:53:53 (134 MB/s) - ‘cloudflared-linux-amd64.deb’ saved [17474408/17474408]

Selecting previously unselected package cloudflared.
(Reading database ... 120828 files and directories currently installed.)
Preparing to unpack cloudflared-linux-amd64.deb ...
Unpacking cloudflared (2023.7.3) ...
Setting up cloudflared (2023.7.3) ...
Processing triggers for man-db (2.10.2-1) ...
/content
Cloning into 'StableSwarmUI'...
remote: Enumerating objects: 4684, done.
remote: Counting objects: 100% (810/810), done.
remote: Compressing objects: 100% (249/249), done.
remote: Total 4684 (delta 575), reused 688 (delta 559), pack-reused 3874
Receiving objects: 100% (4684/4684), 2.28 MiB | 13.63 MiB/s, done.
Resolving deltas: 100% (3403/3403), done.

Missing torchvision dependency for ComfyUI backend silently fails and causes some nodes not to show up in ComfyUI Workflow Editor

When I install all python dependencies in the ComfyUI venv at dlbackend/comfyui/venv using pip install -r requirements.txt, my venv is missing the torchvision dependency (which needs to be fixed in ComfyUI's requirements.txt file).
Unfortunately, the error is silently caught in StableSwarmUI and never appears on the console while it shows up if I run ComfyUI on its own, which makes it extremely hard to find the cause why the nodes are missing.

Bug with PNG save

it seems setting the save format for both user settings and server configuration to PNG, saves as a PNG file but names the file extension as *.jpg still. (Chrome)

[Error] Failed to load resource: bootstrap.bundle.min.js.map, line 0)

Seeing this error in the JS console both during the installation process (backend setup) and in the UI after setup is complete.

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (bootstrap.bundle.min.js.map, line 0)

There are other errors in the console but this is the one I've seen most consistently, running latest commit from master here on a fully cleaned (git clean -fdx) repo:

[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (object_info, line 0)
http://localhost:7801/ComfyBackendDirect/object_info
TypeError: backendsListView.checkVisibility is not a function. (In 'backendsListView.checkVisibility()', 'backendsListView.checkVisibility' is undefined)
http://localhost:7801/js/backends.js?vary=0.5.3.0 (backends.js:165)

Lora weights

Hey!
I've been trying to change LoRA weights but whatever I do, it always defaults to 1 (I've seen it used as default value somewhere in the code), but I couldn't find out if it's a bug or just me not writing the value correctly in this window:
image

The document doesn't mention anything about that yet (noticed it was added very recently), so I've tried both directly inputing a value alone, and adding the LoRA before it. Also tried only positive decimal values just to make sure. But nope, always 1.
Does this input field actually work, or is it a placeholder? Changing the content doesn't seem to do anything, as even click Generate Image will just output the latest render without running the process.

Custom Node Installation

I managed to install 2 custom nodes with this directory; 'C:\Swarm\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes' I can added them from the add node section, but I couldn't install the one in this link https://civitai.com/models/24690 I don't know if the problem is in this custom node or in SwarmUI, I don't get any error in the terminal.

By the way, I can also see it when I install it with my separete comfyUI.

Just got this : which started happing tonight "T2IEngine.cs:line 126"

I just got this error stating tonight. I am having it create 4 images, and it does about 2-3 then errors. I even disabled one of my backends to see if that was the issue, and I get the same error,

[Error] Internal error processing T2I request: System.ArgumentNullException: Value cannot be null. (Parameter 'source')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable1 source, Func2 selector)
at StableSwarmUI.Builtin_AutoWebUIExtension.AutoWebUIAPIAbstractBackend.Generate(T2IParamInput user_input) in C:\Swarm\StableSwarmUI\src\BuiltinExtensions\AutoWebUIBackend\AutoWebUIAPIAbstractBackend.cs:line 98
at StableSwarmUI.Text2Image.T2IEngine.CreateImageTask(T2IParamInput user_input, GenClaim claim, Action1 output, Action1 setError, Boolean isWS, Single backendTimeoutMin, Action`2 saveImages) in C:\Swarm\StableSwarmUI\src\Text2Image\T2IEngine.cs:line 126
50%|█████████████████████████████████████████

Spurious reasoning for C# over Python

It's true that Python is an interpreted language, which makes it slower compared to compiled languages like C#. However, in the context of machine learning (ML) and scientific computing, Python's performance is not usually the bottleneck. The heavy computations in ML are offloaded to highly-optimized C/C++ libraries (like NumPy or PyTorch's underlying libraries) or to GPU-accelerated libraries like CUDA. This means that, in practice, ML code written in Python can run just as quickly as similar code written in other languages.

While Python has a Global Interpreter Lock (GIL) that can limit the effectiveness of multithreading by allowing only one native thread to execute at a time. However, this does not mean that Python "lacks true multithreading capabilities". Python's threading module does support multithreading, although it might not provide a speedup for CPU-bound tasks due to the GIL. However, for I/O-bound tasks (like loading data from disk), Python's multithreading can provide a significant speedup. Moreover, Python has other ways to achieve parallelism, like multiprocessing (via the multiprocessing module), and many of the underlying C/C++ libraries used in ML can effectively utilize multi-core processors independent of Python's GIL.

Developer Ecosystem: Python is currently the dominant language in the data science and machine learning field. Most of the major ML libraries (like TensorFlow, PyTorch, SciKit-Learn, etc.) have been developed in and for Python, and Python's simple syntax and vast ecosystem of scientific computing libraries make it very accessible to new developers. While developing ML tools in C# might indeed attract developers from the C# ecosystem, it does not necessarily "enable a wider range of developers to make use of Stable Diffusion". In fact, it could limit the reach of these tools, as they would not be usable by the large number of developers who are already working in the Python ecosystem.

Can you please update the text to be more accurate?

Error on Mac Studio : AttributeError: module 'torch' has no attribute 'mps' Exception in thread Thread-1 (prompt_worker):

The UI start but show : Backends are still loading on the server...
i can select a model and type a prompt.

When i clic on Generate button i get this error : on terminal window
Thanks for any help...

Exception in thread Thread-1 (prompt_worker):
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/Volumes/Stef-T7-2/StefAI/StableSwarmUI/dlbackend/ComfyUI/main.py", line 88, in prompt_worker
    comfy.model_management.soft_empty_cache()
  File "/Volumes/Stef-T7-2/StefAI/StableSwarmUI/dlbackend/ComfyUI/comfy/model_management.py", line 549, in soft_empty_cache
    torch.mps.empty_cache()
AttributeError: module 'torch' has no attribute 'mps'

Unable to install on linux

Tried to install on both arch and ubuntu. I am getting the following build failure issue. Any idea how to proceed?:


Welcome to .NET 7.0!
---------------------
SDK Version: 7.0.110

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
MSBuild version 17.4.8+6918b863a for .NET
  Determining projects to restore...
  Restored /mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj (in 418 ms).
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018: The "CreateAppHost" task failed unexpectedly. [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018: System.IO.IOException: Invalid argument [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at System.IO.MemoryMappedFiles.MemoryMappedView.CreateView(SafeMemoryMappedFileHandle memMappedFileHandle, MemoryMappedFileAccess access, Int64 requestedOffset, Int64 requestedSize) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateViewAccessor(Int64 offset, Int64 size, MemoryMappedFileAccess access) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.HostModel.AppHost.MachOUtils.RemoveSignature(FileStream stream) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.HostModel.AppHost.HostWriter.<>c__DisplayClass2_0.<CreateAppHost>b__2() [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.HostModel.RetryUtil.RetryOnIOError(Action func) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.HostModel.AppHost.HostWriter.CreateAppHost(String appHostSourceFilePath, String appHostDestinationFilePath, String appBinaryFilePath, Boolean windowsGraphicalUserInterface, String assemblyToCopyResourcesFrom, Boolean enableMacOSCodeSign) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.Build.Tasks.CreateAppHost.ExecuteCore() [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]

Build FAILED.

/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018: The "CreateAppHost" task failed unexpectedly. [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018: System.IO.IOException: Invalid argument [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at System.IO.MemoryMappedFiles.MemoryMappedView.CreateView(SafeMemoryMappedFileHandle memMappedFileHandle, MemoryMappedFileAccess access, Int64 requestedOffset, Int64 requestedSize) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateViewAccessor(Int64 offset, Int64 size, MemoryMappedFileAccess access) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.HostModel.AppHost.MachOUtils.RemoveSignature(FileStream stream) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.HostModel.AppHost.HostWriter.<>c__DisplayClass2_0.<CreateAppHost>b__2() [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.HostModel.RetryUtil.RetryOnIOError(Action func) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.HostModel.AppHost.HostWriter.CreateAppHost(String appHostSourceFilePath, String appHostDestinationFilePath, String appBinaryFilePath, Boolean windowsGraphicalUserInterface, String assemblyToCopyResourcesFrom, Boolean enableMacOSCodeSign) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.Build.Tasks.CreateAppHost.ExecuteCore() [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
/usr/lib/dotnet/sdk/7.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(580,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/mnt/ai/stable-swarm/StableSwarmUI/src/StableSwarmUI.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:55.08
Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet-src/bin/live_release/StableSwarmUI.dll does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.```

torchsde-0.2.5 issue when installation some custom nodes

When I try to install some custom node I get this error 'DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7". pip 23.3 will enforce this behaviour...''

Here is the solution:
Go: C:\Swarm\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\torchsde-0.2.5.dist-info and edit METADATA via notepad. Then scroll 'line 18' You should see ' Requires-Dist: numpy (>=1.19.*) ; python_version >= "3.7" ' and change this one to Requires-Dist: numpy (>=1.19) ; python_version >= "3.7"

You just delete ---> .*

Deleting images in the UI?

Am I missing something or is there no way to delete images from the UI?

On a side note I really like the different views, Thumbnails, cards etc.
Also really love the multiple GPU support! It was better than the multiple tab approach you need to take with some other projects.

Error: Timeout! All backends are occupied with other tasks. (Could not find TensorRT)

Hello.
Using google colab I get this error when generating an image. It takes a long time and then the error.
Any solution?

I'm using this notebook:
https://colab.research.google.com/github/Stability-AI/StableSwarmUI/blob/master/colab/colab-notebook.ipynb

I'm running the first temporary installation cell, then the third cell, then the fourth cell and I enter the link that appears in the text box, I configure in "ComfyUI (Local)", SDXL 1.0 (Base and Refiner).

Info returned by google colab when I press generate:

14:03:27.394 [Init] Initializing backend #0 - ComfyUI Self-Starting... 14:03:27.410 [Init] Self-Start ComfyUI on port 7820 is loading... 2023-08-09 14:03:43.013439: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT 14:03:47.668 [Init] Self-Start ComfyUI on port 7820 started. 14:05:02.841 [Info] Creating new admin session for 127.0.0.1 14:27:10.268 [Info] [BackendHandler] Backend usage timeout, all backends occupied, giving up after 1200.002 seconds. 14:27:11.782 [Info] [BackendHandler] Backend usage timeout, all backends occupied, giving up after 1200.001 seconds.

image

Difference between Stable Swarm and AI Horde

AI Horde is a mature REST API which already provides the primary functionality the Stable Swarm aims to achieve, allowing distributed GPUs to be used by the same user. Only it goes much further and allows multiple GPUs to be be used by any number of users.

It seems that you could use the AI Horde to handle the aggregation and then simply build the Swarm UI as a frontend in front of it.

I am just curious why this was developed from scratch instead of using an existing FOSS tool which could speed up the development aims of this tool

Install issue on linux

I am getting the following error when I run /launch-linux.sh

Unhandled exception. System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'http://localhost:7801/Install' with working directory '/home/ubuntu/StableSwarmUI'. No such file or directory at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, ...
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at StableSwarmUI.Core.Program.Main(String[] args) in /home/ubuntu/StableSwarmUI/src/Core/Program.cs:line 123
./launch-linux.sh: line 13:  6339 Aborted                 (core dumped) dotnet src/bin/live_release/StableSwarmUI.dll $@

Any suggestions?

ComfyUI API By URL uses wrong model name

If you want to work with a remote ComfyUI the name of the locally installed model is used instead of the remote model name.

I installed StableSwarmUI on my Mac and want to access a remote ComfyUI on my Linux box using ComfyUI API By URL. As soon as I want to generate an image ComfyUI on my Linux box is executed but I get the following error:

Failed to validate prompt for output 9:
* CheckpointLoaderSimple 4:
  - Value not in list: ckpt_name: 'OfficialStableDiffusion/sd_xl_base_1.0.safetensors' not in ['sd_xl_base_1.0.safetensors', 'sd_xl_refiner_1.0.safetensors']
Output will be ignored
invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}

So it uses the local path to the model from StableSwarmUI instead of the models installed on the remote machine.

Can't connect to LAN A1111 API

I can call A1111 via http://192.168.0.227:7860/ in my browser and it works perfectly. However if i put the same address into the Auto1111 SD-WebUI API By URL field it gives me this error:
[Error] Final error (7) while initializing backend #1 - Auto1111 SD-WebUI API By URL, giving up: System.NullReferenceException: Object reference not set to an instance of an object.
at StableSwarmUI.Builtin_AutoWebUIExtension.AutoWebUIAPIAbstractBackend.InitInternal(Boolean ignoreWebError) in C:\Users\multi\SwarmAI\StableSwarmUI\StableSwarmUI\src\BuiltinExtensions\AutoWebUIBackend\AutoWebUIAPIAbstractBackend.cs:line 34

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.