SD.Next: Advanced Implementation of Stable Diffusion
 
 
 
 
Go to file
Vladimir Mandic 2dabba9190
Merge pull request #40 from space-nuko/unipc
integrate unipc sampler
2023-03-10 09:57:24 -05:00
.github Ask user to clarify conditions 2023-01-26 02:52:33 +03:00
.vscode update 2023-02-27 18:09:19 -05:00
cli update modules 2023-03-10 09:12:58 -05:00
configs Merge pull request #32 from AUTOMATIC1111/master 2023-01-30 09:38:12 -05:00
embeddings update 2023-01-08 13:20:44 -05:00
extensions add placeholders 2023-01-06 12:15:25 -05:00
extensions-builtin update modules 2023-03-10 09:12:58 -05:00
html update version 2023-01-29 13:44:33 -05:00
javascript Merge pull request #40 from space-nuko/unipc 2023-03-10 09:57:24 -05:00
models update 2023-01-08 13:20:44 -05:00
modules Merge pull request #40 from space-nuko/unipc 2023-03-10 09:57:24 -05:00
outputs add placeholders 2023-01-06 12:15:25 -05:00
repositories add placeholders 2023-01-06 12:15:25 -05:00
scripts Merge pull request #40 from space-nuko/unipc 2023-03-10 09:57:24 -05:00
test/basic_features Merge pull request #40 from space-nuko/unipc 2023-03-10 09:57:24 -05:00
train/templates update 2023-01-19 01:26:22 -05:00
wiki@f967dcb691 update wiki 2023-03-10 09:13:14 -05:00
.gitignore update 2023-02-03 09:38:09 -05:00
.gitmodules integrate lycoris 2023-03-10 09:12:51 -05:00
.pylintrc Add basic Pylint to catch syntax errors on PRs 2022-10-15 16:26:07 +03:00
LICENSE.txt add license file 2023-01-15 09:24:48 +03:00
README.md update defaults and torch notes 2023-03-06 20:29:10 -05:00
TODO.md update 2023-03-01 14:59:21 -05:00
automatic.sh update extensions 2023-03-08 09:20:14 -05:00
config.json update defaults and torch notes 2023-03-06 20:29:10 -05:00
launch.py add profiler 2023-02-28 10:04:25 -05:00
requirements.txt fix lora 2023-03-02 15:56:46 -05:00
requirements_versions.txt cleanup before merge 2023-03-10 09:57:10 -05:00
script.js extra networks UI 2023-01-21 08:36:07 +03:00
style.css add buttons for auto-search in subdirectories for extra tabs 2023-01-29 11:34:58 +03:00
ui-config.json lora with multi-concept training 2023-03-07 13:29:46 -05:00
ui-screenshot.jpg update screenshot and default settings 2023-02-13 20:48:29 -05:00
user.css update 2023-02-27 18:09:19 -05:00
webui.bat update 2023-02-03 09:38:09 -05:00
webui.py Merge pull request #37 from AUTOMATIC1111/master 2023-02-19 10:11:25 -05:00
webui.sh Update webui.sh 2023-01-20 15:31:27 +01:00

README.md

Stable Diffusion - Automatic

Heavily opinionated custom fork of https://github.com/AUTOMATIC1111/stable-diffusion-webui


Notes

Fork is as close as up-to-date with origin as time allows
All code changes are merged upstream whenever possible

Fork adds extra functionality:

  • New skin and UI layout
  • Ships with set of CLI tools that rely on SD API for execution:
    e.g. generate, train, bench, etc.
    Full list

Integrated Extensions:

Note: Extensions are automatically updated to latest version on install

Start Script

Simplified start script: automatic.sh
Existing webui.sh/webui.bat scripts still exist for backward compatibility

./automatic.sh

Start in default mode with optimizations enabled

SD server: optimized
Version: 56f779a9 Sat Feb 25 14:04:19 2023 -0500
Repository: https://github.com/vladmandic/automatic
Last Merge: Sun Feb 19 10:11:25 2023 -0500 Merge pull request #37 from AUTOMATIC1111/master
System
- Platform: Ubuntu 22.04.1 LTS 5.15.90.1-microsoft-standard-WSL2 x86_64
- nVIDIA: NVIDIA GeForce RTX 3060, 528.49
- Python: 3.10.6 Torch: 2.0.0.dev20230224+cu118 CUDA: 11.8 cuDNN: 8700 GPU: NVIDIA GeForce RTX 3060 Arch: (8, 6)
Launching Web UI

./automatic.sh clean

Start with all optimizations disabled
Use this for troubleshooting

./automatic.sh install

Installs and updates to latest supported version:

  • Dependencies
  • Fixed sub-repositories
  • Extensions
  • Sub-modules

Does not update main repository

./automatic.sh update

Updates the main repository to the latest version
Recommended to run install after update to update dependencies as they may have changed

./automatic.sh help

Print all available options

./automatic.sh public

Start with listen on public IP with authentication enabled


Install

  1. Install Python, Git
  2. Install PyTorch and Xformers
    See Wiki for details If you don't want to use xformers, edit automatic.sh as they are enabled by default
  3. Clone and initialize repository

git clone https://github.com/vladmandic/automatic
cd automatic
./automatic.sh install

  SD server: install
  Version: 56f779a9 Sat Feb 25 14:04:19 2023 -0500
  Repository: https://github.com/vladmandic/automatic
  Last Merge: Sun Feb 19 10:11:25 2023 -0500 Merge pull request #37 from AUTOMATIC1111/master
  Installing general requirements
  Installing versioned requirements
  Installing requirements for Web UI
  Updating submodules
  Updating extensions
  Updating wiki
  Detached repos
  Local changes

Differences

Fork does differ in few things:

  • Drops compatibility with python 3.7 and requires 3.9
    Recommended is Python 3.10
    Note that Python 3.11 or 3.12 are NOT supported
  • Updated Python libraries to latest known compatible versions
    e.g. accelerate, transformers, numpy, etc.
  • Includes opinionated System and Options configuration
    e.g. samplers, upscalers, etc.
  • Includes reskinned UI
    Black and orange dark theme with fixed width options panels and larger previews
  • Includes SD2 configuration files
  • Uses simplified folder structure
    e.g. /train, /outputs/*
  • Modified training templates
  • Built-in LoRA, Custom Diffusion, Dreambooth training

Only Python library which is not auto-updated is PyTorch itself as that is very system specific
For some Torch optimizations notes, see Wiki

Fork is compatible with regular PyTorch 1.13 as well as pre-release of PyTorch 2.0
See Wiki for Torch optimization notes


Scripts

This repository comes with a large collection of scripts that can be used to process inputs, train, generate, and benchmark models

As well as number of auxiliary scripts that do not rely on WebUI, but can be used for end-to-end solutions such as extract frames from videos, etc.

For full details see Docs


Docs