Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
91dc8710
Commit
91dc8710
authored
Aug 25, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
textual inversion embeddings support
settings tab
parent
ec8a2522
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
355 additions
and
106 deletions
+355
-106
README.md
README.md
+26
-4
images/inversion.png
images/inversion.png
+0
-0
webui.py
webui.py
+329
-102
No files found.
README.md
View file @
91dc8710
# Stable Diffusion web UI
# Stable Diffusion web UI
A browser interface based on Gradio library for Stable Diffusion.
A browser interface based on Gradio library for Stable Diffusion.
Original script with Gradio UI was written by a kind anonymo
p
us user. This is a modification.
Original script with Gradio UI was written by a kind anonymous user. This is a modification.


## Installing and running
## Installing and running
...
@@ -128,7 +128,7 @@ Example:
...
@@ -128,7 +128,7 @@ Example:
Gradio's loading graphic has a very negative effect on the processing speed of the neural network.
Gradio's loading graphic has a very negative effect on the processing speed of the neural network.
My RTX 3090 makes images about 10% faster when the tab with gradio is not active. By default, the UI
My RTX 3090 makes images about 10% faster when the tab with gradio is not active. By default, the UI
now hides loading progress animation and replaces it with static "Loading..." text, which achieves
now hides loading progress animation and replaces it with static "Loading..." text, which achieves
the same effect. Use the
--no-progressbar-hiding
commandline option to revert this and show loading animations.
the same effect. Use the
`--no-progressbar-hiding`
commandline option to revert this and show loading animations.
### Prompt validation
### Prompt validation
Stable Diffusion has a limit for input text length. If your prompt is too long, you will get a
Stable Diffusion has a limit for input text length. If your prompt is too long, you will get a
...
@@ -152,6 +152,28 @@ Adds information about generation parameters to PNG as a text chunk. You
...
@@ -152,6 +152,28 @@ Adds information about generation parameters to PNG as a text chunk. You
can view this information later using any software that supports viewing
can view this information later using any software that supports viewing
PNG chunk info, for example: https://www.nayuki.io/page/png-file-chunk-inspector
PNG chunk info, for example: https://www.nayuki.io/page/png-file-chunk-inspector
This can be disabled using the
`--disable-pnginfo`
command line option.


### Textual Inversion
Allows you to use pretrained textual inversion embeddings.
See originial site for details: https://textual-inversion.github.io/.
I used lstein's repo for training embdedding: https://github.com/lstein/stable-diffusion; if
you want to train your own, I recommend following the guide on his site.
No additional libraries/repositories are required to use pretrained embeddings.
To make use of pretrained embeddings, create
`embeddings`
directory in the root dir of Stable
Diffusion and put your embeddings into it. They must be .pt files about 5Kb in size, each with only
one trained embedding, and the filename (without .pt) will be the term you'd use in prompt
to get that embedding.
As an example, I trained one for about 5000 steps: https://files.catbox.moe/e2ui6r.pt; it does
not produce very good results, but it does work. Download and rename it to
`Usada Pekora.pt`
,
and put it into
`embeddings`
dir and use Usada Pekora in prompt.

### Settings
A tab with settings, allowing you to use UI to edit more than half of parameters that previously
were commandline. Settings are saved to config.js file. Settings that remain as commandline
options are ones that are required at startup.
images/inversion.png
0 → 100644
View file @
91dc8710
678 KB
webui.py
View file @
91dc8710
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment