-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Developing extensions
AUTOMATIC1111 edited this page Oct 22, 2022
·
24 revisions
An extension is just a subdirectory in the extensions
directory.
Web ui interacts with installed extensions in the following way:
- extension's scripts in the
scripts
directory are executed as if they were just usual user scripts, except:-
sys.path
is extended to include the extension directory, so you can import anything in it without worrying - you can use
scripts.basedir()
to get the current extension's directory (since user can name it anything he wants)
-
- extension's javascript files in the
javascript
directory are added to the page - extension's
style.css
file is added to the page
For how to develop custom scripts, which usually will do most of extension's work, see Developing custom scripts.
This is the Stable Diffusion web UI wiki. Wiki Home
Setup
- Install and run on NVidia GPUs
- Install and run on AMD GPUs
- Install and run on Apple Silicon
- Install and run on Intel Silicon (external wiki page)
- Install and run via container (i.e. Docker)
- Run via online services
Reproducing images / troubleshooting
Usage
- Features
- Command Line Arguments and Settings
- Optimizations
- Custom Filename Name and Subdirectory
- Change model folder location e.g. external disk
- User Interface Customizations
- Guides and Tutorials
Developers