Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
3324f31e
Commit
3324f31e
authored
Aug 22, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first
parent
71cf18b0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
462 additions
and
2 deletions
+462
-2
README.md
README.md
+58
-2
screenshot.png
screenshot.png
+0
-0
webui.py
webui.py
+404
-0
No files found.
README.md
View file @
3324f31e
# stable-diffusion-webui
Stable Diffusion web UI
# Stable Diffusion web UI
A browser interface based on Gradio library for Stable Diffusion.
Original script with Gradio UI was written by a kind anonymopus user. This is a modification.

## Stable Diffusion
This script assumes that you already have main Stable Diffusion sutff installed, assumed to be in directory
`/sd`
.
If you don't have it installed, follow the guide:
-
https://rentry.org/kretard
This repository's
`webgui.py`
is a replacement for
`kdiff.py`
from the guide.
Particularly, following files must exist:
-
`/sd/configs/stable-diffusion/v1-inference.yaml`
-
`/sd/models/ldm/stable-diffusion-v1/model.ckpt`
-
`/sd/ldm/util.py`
-
`/sd/k_diffusion/__init__.py`
## GFPGAN
If you want to use GFPGAN to improve generated faces, you need to install it separately.
Follow instructions from https://github.com/TencentARC/GFPGAN, but when cloning it, do so into Stable Diffusion main directory,
`/sd`
.
After that download
[
GFPGANv1.3.pth
](
https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth
)
and put it
into the
`/sd/GFPGAN/experiments/pretrained_models`
directory. If you're getting troubles with GFPGAN support, follow instructions
from the GFPGAN's repository until
`inference_gfpgan.py`
script works.
The following files must exist:
-
`/sd/GFPGAN/inference_gfpgan.py`
-
`/sd/GFPGAN/experiments/pretrained_models/GFPGANv1.3.pth`
If the GFPGAN directory does not exist, you will not get the option to use GFPGAN in the UI. If it does exist, you will either be able
to use it, or there will be a message in console with an error related to GFPGAN.
## Web UI
Run the script as:
`python webui.py`
When running the script, you must be in the main Stable Diffusion directory,
`/sd`
. If you cloned this repository into a subdirectory
of
`/sd`
, say, the
`stable-diffusion-webui`
directory, you will run it as:
`python stable-diffusion-webui/webui.py`
When launching, you may get a very long warning message related to some weights not being used. You may freely ignore it.
After a while, you will get a message like this:
```
Running on local URL: http://127.0.0.1:7860/
```
Open the URL in browser, and you are good to go.
screenshot.png
0 → 100644
View file @
3324f31e
865 KB
webui.py
0 → 100644
View file @
3324f31e
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