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
8214447b
Commit
8214447b
authored
Sep 09, 2022
by
Bernard Maltais
Committed by
AUTOMATIC1111
Sep 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add config and instructions for WSL2 setup
parent
55ef99d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
0 deletions
+95
-0
.gitignore copy
.gitignore copy
+14
-0
README.md
README.md
+70
-0
environment.yaml
environment.yaml
+11
-0
No files found.
.gitignore copy
0 → 100644
View file @
8214447b
__pycache__
/ESRGAN
/repositories
/venv
/tmp
/model.ckpt
/GFPGANv1.3.pth
/ui-config.json
/outputs
/config.json
/log
/webui.settings.bat
/embeddings
/latent_diffusion.egg-info
\ No newline at end of file
README.md
View file @
8214447b
...
...
@@ -173,6 +173,76 @@ After running once, a `ui-config.json` file appears in webui directory:
Edit values to your liking and the next time you launch the program they will be applied.
### Windows WSL2 instructions
Alternatively, here are instructions for installing under WSL2 on windows everything by hand:
```
bash
mkdir
automatic1111
cd
automatic1111
conda
env
create
-f
environment.yaml
conda activate automatic
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd
stable-diffusion-webui
# clone repositories for Stable Diffusion and (optionally) CodeFormer
mkdir
repositories
git clone https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion
git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers
git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer
# install requirements of Stable Diffusion
pip
install
transformers
==
4.19.2 diffusers invisible-watermark
--prefer-binary
# install k-diffusion
pip
install
git+https://github.com/crowsonkb/k-diffusion.git
--prefer-binary
# (optional) install GFPGAN (face resoration)
pip
install
git+https://github.com/TencentARC/GFPGAN.git
--prefer-binary
# (optional) install requirements for CodeFormer (face resoration)
pip
install
-r
repositories/CodeFormer/requirements.txt
--prefer-binary
# install requirements of web ui
pip
install
-r
./requirements.txt
--prefer-binary
# update numpy to latest version
pip
install
-U
numpy
--prefer-binary
# (outside of command line) put stable diffusion model into web ui directory
# the command below must output something like: 1 File(s) 4,265,380,512 bytes
ls
model.ckpt
# (outside of command line) put the GFPGAN model into web ui directory
# the command below must output something like: 1 File(s) 348,632,874 bytes
ls
GFPGANv1.3.pth
```
> Note: the directory structure for manual instruction has been changed on 2022-09-09 to match automatic installation: previosuly
> webui was in a subdirectory of stable diffusion, now it's the reverse. If you followed manual installation before the
> chage, you can still use the program with you existing directory sctructure.
After that the installation is finished.
Run the command to start web ui:
```
python webui.py
```
If you have a 4GB video card, run the command with either
`--lowvram`
or
`--medvram`
argument:
```
python webui.py --medvram
```
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.
### Manual instructions
Alternatively, if you don't want to run webui.bat, here are instructions for installing
...
...
environment.yaml
0 → 100644
View file @
8214447b
name
:
automatic
channels
:
-
pytorch
-
defaults
dependencies
:
-
python=3.8.5
-
pip=20.3
-
cudatoolkit=11.3
-
pytorch=1.11.0
-
torchvision=0.12.0
-
numpy=1.19.2
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