SD.Next: Advanced Implementation of Stable Diffusion
 
 
 
 
Go to file
Vladimir Mandic cf963c65ce
Merge pull request #32 from AUTOMATIC1111/master
sync branches
2023-01-30 09:38:12 -05:00
.github Ask user to clarify conditions 2023-01-26 02:52:33 +03:00
cli update version 2023-01-29 13:44:33 -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 Merge pull request #31 from AUTOMATIC1111/master 2023-01-29 12:19:38 -05:00
html update version 2023-01-29 13:44:33 -05:00
javascript update prompt token counts after using the paste params button 2023-01-30 01:03:31 +03:00
localizations revert exif fix 2023-01-06 11:37:56 -05:00
models update 2023-01-08 13:20:44 -05:00
modules Merge pull request #32 from AUTOMATIC1111/master 2023-01-30 09:38:12 -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 #7231 from EllangoK/master 2023-01-28 18:45:38 +03:00
test Merge pull request #23 from AUTOMATIC1111/master 2023-01-22 09:22:32 -05:00
train/templates update 2023-01-19 01:26:22 -05:00
wiki@e3290140e6 post-merge update 2023-01-28 11:17:30 -05:00
.gitignore post-merge update 2023-01-28 11:17:30 -05:00
.gitmodules reconnect head 2023-01-22 12:42:00 -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 readme 2023-01-29 14:21:39 -05:00
TODO.md add generate models preview 2023-01-27 14:53:48 -05:00
automatic.sh update generate 2023-01-27 07:14:59 -05:00
config.json update readme 2023-01-29 14:21:39 -05:00
launch.py Merge pull request #32 from AUTOMATIC1111/master 2023-01-30 09:38:12 -05:00
requirements.txt update 2023-01-26 10:59:14 -05:00
requirements_versions.txt update requirements 2023-01-26 13:36:40 -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 post-merge update 2023-01-28 11:17:30 -05:00
ui-screenshot.jpg update readme 2023-01-12 11:45:09 -05:00
user.css update version 2023-01-29 13:44:33 -05:00
webui.bat post-merge update 2023-01-28 11:17:30 -05:00
webui.py Merge pull request #32 from AUTOMATIC1111/master 2023-01-30 09:38:12 -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:

  • Ships with additional extensions
    e.g. System Info, Steps Animation, etc.
  • Ships with set of CLI tools that rely on SD API for execution:
    e.g. generate, train, bench, etc.
    Full list

Simplified start script: automatic.sh
Existing webui.sh/webui.bat still exist for backward compatibility, fresh installs to auto-install dependencies, etc.

./automatic.sh

  • Start in default mode with optimizations enabled

./automatic.sh env

  • Print env info and exit
    Example:

    Version: c07487a Tue Jan 24 08:04:31 2023 -0500
    Platform: Ubuntu 22.04.1 LTS 5.15.79.1-microsoft-standard-WSL2 x86_64
    Python 3.10.6
    Torch: 2.0.0.dev20230118+cu118 CUDA: 11.8 cuDNN: 8700 GPU: NVIDIA GeForce RTX 3060 Arch: (8, 6)
    

./automatic.sh public

  • Start with listen on public IP with authentication enabled

./automatic.sh clean

  • Start with all optimizations disabled
    Use this for troubleshooting

Install

  1. Install PyTorch first
  2. Clone and initialize repository

git clone --depth 1 https://github.com/vladmandic/automatic
git submodule update --init --recursive

  1. Install dependencies

./automatic.sh install


Differences

Fork does differ in few things:

  • Drops compatibility with python 3.7 and requires 3.9
  • 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

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


Docs

Everything is in Wiki
Except my current TODO