Location>code7788 >text

Windows Platform Experience StableSwarmUI-0.6.4-Beta Experience Version

Popularity:131 ℃/2024-09-01 21:08:51

img

catalogs
  • StableSwarmUI install Experience Edition
    • StableSwarmUI Configuration Backend
    • StableSwarmUI Quick Installation Scripts
  • StableSwarmUI Installation and Startup
  • sd_xl_base_1.0 Model Acquisition

Domestic access for network reasonsComfyUI as well asSD_Xl_base_1.0 Models can be very slow.

For silky smooth access, you need magic or efficient internet access.

If you don't have the conditions, there are ways to get resources from domestic open source mirror sites or large modeling communities.

Get and deploy StableSwarmUI:StableSwarmUI The latest version isStableSwarmUI Release 0.6.4-Beta. You need to.Python environment, if you have trouble accessing the official Python site, you can start thePython Chinese Get resources. Of course, you can also get it from the major open source software mirrors in China. If you're having trouble, I'll give you my own Python installer for Windows at the end of this article.

My Python environment, for reference only:

PS D:\work> python -V
Python 3.10.6

Regarding zip archives, if you don't have a graphical decompression tool installed7-Zip And it's not installed.360zip International EditionYou can try to use Windows 11's ownexpand-archive Command Decompression Tool.

Open on Windows platformpowershell utilizationexpand-archive command to decompressStableSwarmUI-0.6.4-Beta

Expand-Archive .\StableSwarmUI-0.6. -DestinationPath E:\AI\

go intoStableSwarmUI Root directory:

cd E:\AI\StableSwarmUI-0.6.4-Beta\

Let's start the StableSwarmUI experience together, and before we do that, let's remind you again to install thePython Environment, yo.

StableSwarmUI install Experience Edition

The bootstrap installation defaults to comfyUI (local) for immediate local installation.

For experienced users, there is an option to skip the ComfyUI installation and import it manually at a later stage.

Check options: None/Custom/Choose Later

img

img

Domestic access for network reasonsComfyUI as well asSD_Xl_base_1.0 Models can be very slow.

For silky smooth access, you need magic or efficient internet access.

If you don't have the conditions, there are ways to get resources from domestic open source mirror sites or large modeling communities.

After trying the above methods, make the following adjustments.

  1. Essential Environment:PythonGitdotnet
  2. gainStableSwarmUI
  3. (of a computer) run.\ Script to bootstrap the installation (Note: 7 steps total).
  4. Skip InstallationComfyUI steps, which can be imported manually at a later stage.
  5. Skip the installation modeling step, which can be imported manually at a later stage.
  6. Configuring the backend ComfyUI(put the emphasis on),cd .\StableSwarmUI-0.6.4-Beta\StableSwarmUI\dlbackendmkdir comfycd comfyIntroducingComfyUI
  7. Import modelput the emphasis on)。
  8. Download and import the model, put it in manually.\StableSwarmUI-0.6.4-Beta\Models\Stable-Diffusion\OfficialStableDiffusion Path down.
  9. Test the access to see if it works.http://localhost:7801http://localhost:7821

Normal configuration is complete and the SDXL model is imported. The image is configured as 1 and the seed is configured as 1.

Set the caption "a photo of a cat" and click Generate.

img

interviewshttp://localhost:7821, which actually accesses the navigation bar functioncomfortable workflow.Below:

img

Notably, the new versioncomfyUI The settings interface has changed drastically and is more user friendly:

img

StableSwarmUI Configuration Backend

img

Focus on configuring the back end ComfyUI。

You can use an unzip utility, or you can unzip it using the command formComfyUI_windows_portable_nvidia.7z. It is worth noting that Windows 11 does not natively support extracting 7z files directly with commands, and requires an additional download of the7-Zip and configure environment variables as well as aliases, how to do that is not covered here. I use aliases for some commands, see Compatibility Aliases in Windows for more information.Using Aliases - PowerShell Descriptions, such ascpcopyCopy-Item

initial stepGetComfyUIAs of 2024-8-26 the latest version isComfyUI-0.1.3IntroducingComfyUI

cd .\StableSwarmUI-0.6.4-Beta\StableSwarmUI\dlbackend
mkdir comfy
cd comfy
cp -Path ".\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\*"  -Destination ".\StableSwarmUI-0.6.4-Beta\StableSwarmUI\dlbackend\comfy" -Recurse

It is possible to use7-Zip Unzip ComfyUI_windows_portable_nvidia.7z.

Switch tocd .\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable directory, copy all files in the current directoryCtrl + aCtrl + c PasteCtrl + v until (a time).\StableSwarmUI-0.6.4-Beta\StableSwarmUI\dlbackend\comfy Catalog.

second stepThe top navigation bar is positioned at the top of the page.server (computer)module, clickback end

img

Add Configuration Backendrunning backend: (0): ComfyUI Self-Starting

Fill in the startup script by referring to the prompts:

dlbackend/comfy/ComfyUI/

Fill in the extra parameters (can be left out, not mandatory), the example adds parameters that will additionally access ComfyUI in a separate window:

--windows-standalone-build

Configuration complete.The state is enabled backedClicksave(save).Restart(restarting the current back-end service).

Start again . \, it is normal for the first installation (install) of ComfyUI to take some time to load.

Import the model file.

If no model data is available locallyIf you need to get the model data or basic model of someone else's culture, copy it to the StableSwarmUI specified in the\StableSwarmUI-0.6.4-Beta\Models\Stable-Diffusion\OfficialStableDiffusion Catalog.

Windows powershell command form to copy the model to the specified directory:

cp -Path ".\sd_xl_base_1."  -Destination 
".\StableSwarmUI-0.6.4-Beta\StableSwarmUI\Models\Stable-Diffusion\OfficialStableDiffusion" -Recurse

After importing the model successfully, select "mould", SDXL can be queried.

img

StableSwarmUI Quick Installation Scripts

friendly reminder: Windows platforms can also use Quick Installation Scripts. This is actually a script that combines the steps of installing multiple essential tools into a single script.

.\

scripts.\ What steps are performed? There are three steps worth noting, getting.8Git as well asStableSwarmUI

Get and install the latest .8:

winget install .8 --accept-source-agreements --accept-package-agreements

If you already have a local installation of.8 tool, you can try skipping (blocking out) the .8 installation step in the script.

Get and install Git:

winget install --id  -e --source winget --accept-source-agreements --accept-package-agreements

If you have some development experience and have installed Git tools locally, you can try skipping (blocking out) the Git installation step in the script.

Get StableSwarmUI:

git clone /Stability-AI/StableSwarmUI

scripts.\ Original content:

@echo off

cd /d "%~dp0"

if exist StableSwarmUI (
    echo StableSwarmUI is already installed in this folder. If this is incorrect, delete the 'StableSwarmUI' folder and try again.
    pause
    exit
)

if exist  (
    echo StableSwarmUI is already installed in this folder. If this is incorrect, delete '' and try again.
    pause
    exit
)

winget install .8 --accept-source-agreements --accept-package-agreements
winget install --id  -e --source winget --accept-source-agreements --accept-package-agreements

git clone /Stability-AI/StableSwarmUI
cd StableSwarmUI

call .\
call .\ --launch_mode webinstall

IF %ERRORLEVEL% NEQ 0 ( pause )

StableSwarmUI Installation and Startup

Before launching StableSwarmUI I'd like to introduce my personal hardware environment (pen drive). Not too new, not too old, will be able to play (learn):

  • CPU: R7-7735H (actually R7-6800H vest U, Su mother squeezed how many times the toothpaste, upgrade naming ghosts). 8 pure big core u, usually enough to use.
  • Graphics card (GPU): NVIDIA GeForce RTX 4060 Laptop GPU, 8.00 GiB

With discrete graphics on board, this pairing makes AMD's powerful core graphics seem a bit of a waste.

How to set up a new computer for the college freshman season? New idea, Dad, your son wants to learn Ai, and needs a high end N card for productivity.Don't say I taught you that.The question is what productivity requires.

This is a bit of a tangent, so let's move on to StableSwarmUI.Currently in Beta

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

Installation and startup, performed on Windows platforms scripts, the installation process may be slow, perhaps you need to surf the Internet efficiently.

Windows platform implementation script that calls thedotnet Process.

PS E:\AI\StableSwarmUI-0.6.4-Beta> . \
error: The specified source has been added to the list of available package sources. Please provide a unique source.

Usage: dotnet nuget add source [arguments] [options]

Arguments.
  PackageSourcePath The path to the package source.

Options: -n|--name Name of the source.
  -n|--name The name of the source.
  -u|--username The username to use when connecting to the authenticated source.
  -p|--password The password to use when connecting to the authenticated source.
  --store-password-in-clear-text Enables storage of portable package source credentials by disabling password encryption.
  --valid-authentication-types A list of valid authentication types (separated by commas) for this source. Set this to basic if the server advertises NTLM or Negotiate and your credentials must be sent using a basic mechanism (such as when using PAT with a local Azure DevOps Server). not be useful.
  Other valid values include negotiate, kerberos, ntlm, and digest, but these values may not be useful. --protocol-version The NuGet server protocol version to be used. See /nuget/api/overview for information about the version 3 protocol. Defaults to 2 if not specified.
  --configfile NuGet configuration file. If specified, only the settings in this file will be used. If not specified, the hierarchy of configuration files in the current directory will be used. See /nuget/consume-packages/configuring-nuget-behavior for more information.
  -h|--help Show help information

NET MSBuild Version 17.9.6+a4ecab324
  Determining which projects to restore...
  Restored E:\AI\StableSwarmUI-0.6.4-Beta\src\ (2.75 sec).
  StableSwarmUI -> E:\AI\StableSwarmUI-0.6.4-Beta\src\bin\live_release\

has been successfully generated.
    0 warnings
    0 errors

Used time 00:00:10.68

initial installationThe model is slow to be obtained from official sources, and it is preferred to visit the/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.If you see an error or warning message, it is normal. If you can't access ComfyUI at home, you can go to a third-party website or community, such as the Magic Hitch community, to get model data uploaded by others. If you are slow to get ComfyUI, this is normal, prioritize your visit to/comfyanonymous/ComfyUIIt is recommended to use the BT tool or get it from the big modeling community in China.

sd_xl_base_1.0 Model Acquisition

Magic Hitch Community, get sd_xl_base_1.

If you're using git to get it, by default you've already deployed and configured theGit environment with direct access to the full model training repositorygit clone /AI-ModelScope/stable-diffusion-xl-base-1.. Of course, you can also click on the filesd_xl_base_1. Direct Download.

Personally, I recommend downloading the model files directly if you need the experience urgently. The full model repository takes up more space, there are repository iterations, and each author submission synchronizes differently.

If no model data is available locallyIf you need to get the model data cultivated by others, copy it to the StableSwarmUI-specified\StableSwarmUI-0.6.4-Beta\Models\Stable-Diffusion\OfficialStableDiffusion Catalog.

Windows powershell command form to copy the model to the specified directory:

cp -Path ".\sd_xl_base_1."  -Destination 
".\StableSwarmUI-0.6.4-Beta\StableSwarmUI\Models\Stable-Diffusion\OfficialStableDiffusion" -Recurse

After importing the model data, go to the web UI interface and click on the model, refresh to see the model. Personally, I suggest that it is better to select the server information function in the Server function module, click Shutdown Server, and then execute the Start the web application.

After the local startup is complete, it will automatically jump to the default settings browser and visit thehttp://localhost:7801

Home page display screen, first experience using thesd_xl_base_1. Model.

utilizationsd_xl_base_1. The model generates a cat image:

img

ComfyUI windows portable, ComfyUI_0.1.2_windows_portable_nvidia:

Link./s/1ayKNBDogKBQOnphyLZtaBg?pwd=9999

Extract Code: 9999

Python installers for the Windows platform (Python 2.7.17, Python 3.9.4, Python 3.10.6, Python 3.11.5):

Link./s/1uN8ceOnPVT3GASYMQSXUvw?pwd=8888

Extract Code: 8888

Finally, the above summary is for reference only yo hope to help you in your study, work and life.

bibliography

  • StableSwarmUI
  • ComfyUI
  • Magic Match Community ()
  • Copy-Item - PowerShell
  • Expand-Archive - PowerShell

—END—