Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVE LORA DATASET LABELING] - Trim labels #16121

Closed
wants to merge 187 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
187 commits
Select commit Hold shift + click to select a range
f8bf163
changes
Mar 19, 2024
f8391b8
chmod
Mar 19, 2024
dd08b9b
f
Mar 19, 2024
f12f962
ignore
Mar 29, 2024
b2d2924
files
Mar 29, 2024
069ab3e
config
Mar 29, 2024
872988e
f
Mar 29, 2024
02d077a
Update README.md
evanhu1 Mar 29, 2024
ec97a92
Update README.md
evanhu1 Mar 29, 2024
8eca4cf
readme
Mar 29, 2024
5b8c216
config
Apr 18, 2024
8cd0d53
readme
Apr 18, 2024
cc459d1
v
Apr 18, 2024
2b717bb
fix initial corrupt model loop
w-e-w Apr 22, 2024
4bc39d2
Show LoRA if model is None
w-e-w Apr 22, 2024
246c269
add option to check file hash after download
w-e-w Apr 22, 2024
c69773d
ensure integrity for initial sd model download
w-e-w Apr 22, 2024
a1aa0af
add code for skipping CFG on early steps
drhead Apr 23, 2024
8016d78
add option for early cfg skip
drhead Apr 23, 2024
8326620
Add KL Optimal scheduler
drhead Apr 23, 2024
83182d2
change skip early cond option name and to float
drhead Apr 23, 2024
6e9b69a
change skip_early_cond code to use float
drhead Apr 23, 2024
33cbbf9
add s_min_uncond_all option
drhead Apr 23, 2024
029adbe
implement option to skip uncond on all steps below ngms
drhead Apr 23, 2024
50bb6e1
AVIF has quality setting too
pinanew Apr 23, 2024
8fa3fa7
fix exif_bytes referenced before assignment
w-e-w Apr 23, 2024
1091e3a
update jpeg_quality description
w-e-w Apr 23, 2024
e85e327
more extension tag filtering options
light-and-ray Apr 25, 2024
d5f6fdb
compact-checkbox-group
w-e-w Apr 26, 2024
3902aa2
Better error handling to skip non-standard ss_tag_frequency content
brendanhoar Apr 26, 2024
8dc9202
Better error handling when unable to read metadata from safetensors file
brendanhoar Apr 26, 2024
c5b7559
Better error handling when unable to extract contents of embedding/TI…
brendanhoar Apr 26, 2024
c5ae225
Better handling of embeddings with two rare, but not unusual, files i…
brendanhoar Apr 26, 2024
44afb48
Linter fix - extraneous whitespace
brendanhoar Apr 26, 2024
60c0799
Linter - except must not be bare.
brendanhoar Apr 26, 2024
9d964d3
no-referrer
w-e-w Apr 27, 2024
3a215de
vectorize kl-optimal sigma calculation
drhead Apr 28, 2024
3d3fc81
Add correct mimetype for .mjs files
huchenlei Apr 28, 2024
579f1ef
Allow old sampler names in API
missionfloyd Apr 29, 2024
4c7b22d
Fix dragging text within prompt input
missionfloyd Apr 29, 2024
c8336c4
Use existing function for old sampler names
missionfloyd Apr 30, 2024
9d39380
fix extra batch mode P Transparency
w-e-w Apr 30, 2024
89103b4
lora bundled TI infotext
w-e-w May 1, 2024
0e0e41e
use gradio theme colors in css
light-and-ray May 1, 2024
5d5224b
fix_p_invalid_sampler_and_scheduler
w-e-w May 1, 2024
7195c4d
two fingers press to open context menu
light-and-ray May 1, 2024
f12886a
use script_path for webui root in launch_utils
w-e-w May 4, 2024
dd93c47
Update imageviewer.js
bluelovers May 7, 2024
dbda59e
fix context menu position
light-and-ray May 7, 2024
e736c3b
Add files via upload
JLipnerPitt May 8, 2024
f7e349c
Add AVIF MIME type support to mimetype definitions
LoganBooker May 8, 2024
5fbac49
Added --models-dir option
MarcusNyne May 8, 2024
d2cc8cc
When creating a virtual environment, upgrade pip
MarcusNyne May 9, 2024
73d1caf
Add Align Your Steps to available schedulers
LoganBooker May 10, 2024
d6b4444
Use shared.sd_model.is_sdxl to determine base AYS sigmas
LoganBooker May 10, 2024
d44f241
use relative path for webui-assets css
w-e-w May 11, 2024
ef7713f
chore: sync v1.8.0 packages according to changelog, fix warning
elf-mouse May 14, 2024
5ab7d08
fix extention update when not on main branch
w-e-w May 15, 2024
022d835
use_checkpoint = False
huchenlei May 15, 2024
0e98529
Replace einops.rearrange with torch native
huchenlei May 15, 2024
9eb2f78
Precompute is_sdxl_inpaint flag
huchenlei May 15, 2024
6a48476
Fix flag check for SD15
huchenlei May 15, 2024
3e20b36
Fix attr access
huchenlei May 15, 2024
9c8075b
torch_utils.float64
w-e-w May 16, 2024
41f6684
mps, xpu compatibility
w-e-w May 16, 2024
f015b94
use torch_utils.float64
w-e-w May 16, 2024
51b13a8
Prevent uncessary bias backup
huchenlei May 16, 2024
b2ae449
Fix LoRA bias error
huchenlei May 16, 2024
221ac0b
img2img batch upload method
light-and-ray May 16, 2024
58eec83
Fully prevent use_checkpoint
huchenlei May 16, 2024
2a8a60c
Add --precision half cmd option
huchenlei May 16, 2024
47f1d42
Fix for SD15 models
huchenlei May 17, 2024
01491d3
Keep sigmas on CPU
drhead May 17, 2024
10f2407
xyz csv skipinitialspace
w-e-w May 17, 2024
53d6708
Patch timestep embedding to create tensor on-device
drhead May 17, 2024
cc9ca67
Add transformer forward patch
drhead May 17, 2024
dca9007
Fix SD15 dtype
huchenlei May 17, 2024
b57a70f
Proper fix of SD15 dtype
huchenlei May 17, 2024
1d74482
Default device for sigma tensor to CPU
LoganBooker May 17, 2024
281e0a0
scroll extensions table on overflow
light-and-ray May 18, 2024
feeb680
fix case where first step skilled if skip early cond is 0
drhead May 18, 2024
501ac01
Reformat
w-e-w May 18, 2024
969a462
xyz util confirm_range
w-e-w May 18, 2024
24a59ad
fix Hypertile xyz grid
w-e-w May 18, 2024
82884da
use apply_override for Clip skip
w-e-w May 18, 2024
1f39251
use override for uni_pc_order
w-e-w May 18, 2024
1e696b0
use override of sd_vae
w-e-w May 18, 2024
51e7122
remove unused code
w-e-w May 18, 2024
5867be2
Use different torch versions for Intel and ARM Macs
viking1304 May 20, 2024
344eda5
ReloadUI backgroundColor --background-fill-primary
w-e-w May 22, 2024
6dd53ce
Fix bug where file extension had an extra '.' under some circumstances
alcacode May 26, 2024
8d6f741
#15883 -> #15882
w-e-w May 28, 2024
10f8d0f
feat: lora partial update precede full update.
eatmoreapple Jun 4, 2024
25bbf31
Fix for grids without comprehensive infotexts
NouberNou Jun 6, 2024
53f6267
Typo on edit
NouberNou Jun 6, 2024
3c7384a
Merge pull request #15958 from NouberNou/Fix-Grids-Without-Infotexts
AUTOMATIC1111 Jun 8, 2024
46bcfbe
Merge pull request #15751 from LoganBooker/LoganBooker-Add-AlignYourS…
AUTOMATIC1111 Jun 8, 2024
6de733c
Merge pull request #15943 from eatmoreapple/update-lora-load
AUTOMATIC1111 Jun 8, 2024
0c0d71a
Merge pull request #15907 from AUTOMATIC1111/fix-change-log
AUTOMATIC1111 Jun 8, 2024
de7f5cd
Merge pull request #15804 from huchenlei/rearrange_fix
AUTOMATIC1111 Jun 8, 2024
0769aa3
integrated edits as recommended in the PR #15804
AUTOMATIC1111 Jun 8, 2024
00f37ad
Merge pull request #15893 from alcacode/dev
AUTOMATIC1111 Jun 8, 2024
e21b1e3
Merge pull request #15864 from AUTOMATIC1111/ReloadUI-backgroundColor…
AUTOMATIC1111 Jun 8, 2024
0edc04d
Merge branch 'dev' into patch-2
AUTOMATIC1111 Jun 8, 2024
9e1fc80
Merge pull request #15608 from drhead/patch-2
AUTOMATIC1111 Jun 8, 2024
b150b3a
Merge pull request #15607 from drhead/patch-1
AUTOMATIC1111 Jun 8, 2024
5429e4c
add proper infotext support for #15607
AUTOMATIC1111 Jun 8, 2024
15245d9
Merge pull request #15600 from AUTOMATIC1111/fix-corrupt-model-loop
AUTOMATIC1111 Jun 8, 2024
cd9e9e4
remove unneeded tabulation
AUTOMATIC1111 Jun 8, 2024
ba54c74
Merge pull request #15656 from AUTOMATIC1111/api-old-sampler-names
AUTOMATIC1111 Jun 8, 2024
33b73c4
Merge pull request #15820 from huchenlei/force_half
AUTOMATIC1111 Jun 8, 2024
ebfc9f6
Merge branch 'dev' into patch-4
AUTOMATIC1111 Jun 8, 2024
93b53dc
Merge pull request #15824 from drhead/patch-4
AUTOMATIC1111 Jun 8, 2024
616013f
Merge pull request #15851 from viking1304/torch-on-mac
AUTOMATIC1111 Jun 8, 2024
cbac72d
Merge pull request #15836 from AUTOMATIC1111/xyz-override-rework
AUTOMATIC1111 Jun 8, 2024
c3c90de
Merge pull request #15681 from AUTOMATIC1111/fix_p_invalid_sampler_an…
AUTOMATIC1111 Jun 8, 2024
96f907e
Merge branch 'dev' into fix-Hypertile-xyz
AUTOMATIC1111 Jun 8, 2024
04164a8
Merge pull request #15831 from AUTOMATIC1111/fix-Hypertile-xyz
AUTOMATIC1111 Jun 8, 2024
5977cb0
Merge pull request #15832 from AUTOMATIC1111/xyz-csv-skipinitialspace
AUTOMATIC1111 Jun 8, 2024
510f025
replace wsl-open with wslpath and explorer.exe
w-e-w Jun 3, 2024
ad229fa
Merge pull request #15803 from huchenlei/checkpoint_false
AUTOMATIC1111 Jun 8, 2024
603509e
as per wfjsw's suggestion, revert changes for sd_hijack_checkpoint.py
AUTOMATIC1111 Jun 8, 2024
371cb60
Merge pull request #15830 from light-and-ray/scroll_extensions_table_…
AUTOMATIC1111 Jun 8, 2024
816bc42
Merge pull request #15816 from huchenlei/bias_backup
AUTOMATIC1111 Jun 8, 2024
64bf57b
Merge pull request #15817 from light-and-ray/img2img_batch_upload
AUTOMATIC1111 Jun 8, 2024
6450d24
Merge pull request #15806 from huchenlei/inpaint_fix
AUTOMATIC1111 Jun 8, 2024
b4723bb
Merge pull request #15815 from AUTOMATIC1111/torch-float64-or-float32
AUTOMATIC1111 Jun 8, 2024
7b940e3
Merge pull request #15797 from AUTOMATIC1111/fix-extention-update-whe…
AUTOMATIC1111 Jun 8, 2024
88a5001
Merge branch 'dev' into dev
AUTOMATIC1111 Jun 8, 2024
9905341
Merge pull request #15783 from elf-mouse/dev
AUTOMATIC1111 Jun 8, 2024
07cf95c
update pickle safe filenames
AUTOMATIC1111 Jun 8, 2024
64ebb24
Merge pull request #15757 from AUTOMATIC1111/fix-fonts-with-subpath-
AUTOMATIC1111 Jun 8, 2024
5abdf51
Merge pull request #15750 from MarcusNyne/m9-240509-pip-upgrade
AUTOMATIC1111 Jun 8, 2024
c1c4b3f
Merge pull request #15738 from JLipnerPitt/JLipnerPitt-patch-1
AUTOMATIC1111 Jun 8, 2024
64783dd
Merge pull request #15742 from MarcusNyne/m9-240508-model-dir
AUTOMATIC1111 Jun 8, 2024
1a7ffa2
remove extra local variable
AUTOMATIC1111 Jun 8, 2024
debc6dd
Merge pull request #15739 from LoganBooker/LoganBooker-AVIF-mimetype-…
AUTOMATIC1111 Jun 8, 2024
4aebfe9
Merge pull request #15730 from bluelovers/patch-2
AUTOMATIC1111 Jun 8, 2024
74b1fc6
Merge pull request #15682 from light-and-ray/two_fingers_press_to_ope…
AUTOMATIC1111 Jun 8, 2024
b9dfc50
Merge pull request #15705 from AUTOMATIC1111/use-script_path-for-webu…
AUTOMATIC1111 Jun 8, 2024
a1130c2
Merge pull request #15664 from AUTOMATIC1111/fix-extra-batch-mode-P-T…
AUTOMATIC1111 Jun 8, 2024
742bfbe
Merge pull request #15679 from AUTOMATIC1111/lora-bundled-TI-infotext
AUTOMATIC1111 Jun 8, 2024
41b24d3
Merge pull request #15680 from light-and-ray/use_gradio_theme_colors_…
AUTOMATIC1111 Jun 8, 2024
9e51031
Merge pull request #15641 from AUTOMATIC1111/no-referrer
AUTOMATIC1111 Jun 8, 2024
a184e5d
Merge pull request #15657 from AUTOMATIC1111/drag-text-fix
AUTOMATIC1111 Jun 8, 2024
569f17c
Merge pull request #15654 from huchenlei/mime
AUTOMATIC1111 Jun 8, 2024
30461be
Merge pull request #15602 from AUTOMATIC1111/initial-model-download-i…
AUTOMATIC1111 Jun 8, 2024
3ef9f27
Merge branch 'dev' into bgh-handle-metadata-issues-more-cleanly
AUTOMATIC1111 Jun 8, 2024
6d8d272
Merge pull request #15632 from brendanhoar/bgh-handle-metadata-issues…
AUTOMATIC1111 Jun 8, 2024
2dbc7aa
Merge pull request #15627 from light-and-ray/more_extension_tag_filte…
AUTOMATIC1111 Jun 8, 2024
5ecfc20
Merge pull request #15610 from pinanew/pinanew-patch-1
AUTOMATIC1111 Jun 8, 2024
194c262
Merge pull request #15968 from AUTOMATIC1111/wsl-open
AUTOMATIC1111 Jun 8, 2024
547778b
possibly make NaN check cheaper
AUTOMATIC1111 Jun 8, 2024
58b24ea
Merge branch 'AUTOMATIC1111:master' into patch-3
drhead Jun 8, 2024
428975e
Merge pull request #1 from AUTOMATIC1111/dev
drhead Jun 8, 2024
39a6d56
patch k_diffusion to_d and strip device from schedulers
drhead Jun 8, 2024
d52a1e1
lint
drhead Jun 8, 2024
d875cda
Fix sdxl inpaint
huchenlei Jun 9, 2024
f89b5db
nit
huchenlei Jun 9, 2024
41ee2db
Merge pull request #15976 from huchenlei/fix_sdxl_inpaint
AUTOMATIC1111 Jun 9, 2024
6447ff4
feat: save pattern add `basename`
bluelovers Jun 9, 2024
6214aa7
performance: check for nans in unet only once, after all steps have b…
AUTOMATIC1111 Jun 9, 2024
981abbb
Merge pull request #15978 from bluelovers/pr/pattern-001
AUTOMATIC1111 Jun 9, 2024
e368cd2
stylistic changes for #15978
AUTOMATIC1111 Jun 9, 2024
aafbb5b
lint
AUTOMATIC1111 Jun 9, 2024
57e6d05
added tool for profiling code
AUTOMATIC1111 Jun 9, 2024
1d0bb39
Merge pull request #15823 from drhead/patch-3
AUTOMATIC1111 Jun 9, 2024
99e65ec
undo some changes from #15823 and fix whitespace
AUTOMATIC1111 Jun 9, 2024
d2097db
added onOptionsAvailable callback for javascript for
AUTOMATIC1111 Jun 9, 2024
74ee8fd
.gitignore trace.json
w-e-w Jun 9, 2024
a84000c
Merge pull request #15980 from AUTOMATIC1111/git-ignore-trace.json
AUTOMATIC1111 Jun 9, 2024
17e8461
Add process_before_every_sampling hook
huchenlei May 28, 2024
e33bb8f
Merge pull request #15984 from huchenlei/before_every_sampling
AUTOMATIC1111 Jun 10, 2024
abacb73
multi size grid
w-e-w Jun 10, 2024
123582b
Merge pull request #15988 from AUTOMATIC1111/multi-size-grid
AUTOMATIC1111 Jun 10, 2024
00e0938
Add option to enable clip skip for clip L on SDXL
silveroxides Jun 10, 2024
91ecc75
Update sd_hijack_clip.py
silveroxides Jun 10, 2024
d5e2627
Merge pull request #15992 from silveroxides/dev
AUTOMATIC1111 Jun 11, 2024
1f8f3a6
feat: prevent screen sleep during generation
zero41120 Jun 11, 2024
c803e11
fix: prevent create multiple wake lock
zero41120 Jun 12, 2024
f1e0bfe
ci: remove comments and console logs
zero41120 Jun 12, 2024
a30b19d
Merge pull request #16001 from zero41120/feat-prevent-screen-lock
AUTOMATIC1111 Jun 12, 2024
e60a8c4
merge
Jun 26, 2024
b35249a
stable
Jun 26, 2024
87794a2
stable
Jun 26, 2024
fac49c1
[IMPROVE LORA DATASET LABELING] trim dataset labels by removing main …
snghong Jun 30, 2024
2c45679
[IMPROVE LORA DATASET LABELING] trim dataset labels by removing main …
snghong Jun 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file modified .eslintignore
100644 → 100755
Empty file.
Empty file modified .eslintrc.js
100644 → 100755
Empty file.
Empty file modified .git-blame-ignore-revs
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/bug_report.yml
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/config.yml
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/feature_request.yml
100644 → 100755
Empty file.
Empty file modified .github/pull_request_template.md
100644 → 100755
Empty file.
Empty file modified .github/workflows/on_pull_request.yaml
100644 → 100755
Empty file.
Empty file modified .github/workflows/run_tests.yaml
100644 → 100755
Empty file.
Empty file modified .github/workflows/warns_merge_master.yml
100644 → 100755
Empty file.
14 changes: 5 additions & 9 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,41 +1,37 @@
__pycache__
*.ckpt
*.safetensors
# *.safetensors
*.pth
/ESRGAN/*
/SwinIR/*
/repositories
/venv
/tmp
/model.ckpt
/models/**/*
models/*
# !models/Stable-diffusion
/GFPGANv1.3.pth
/gfpgan/weights/*.pth
/ui-config.json
/outputs
/config.json
/log
/webui.settings.bat
/embeddings
/styles.csv
/params.txt
/styles.csv.bak
/webui-user.bat
/webui-user.sh
/interrogate
/user.css
/.idea
notification.mp3
/SwinIR
/textual_inversion
.vscode
/extensions
/test/stdout.txt
/test/stderr.txt
/cache.json*
/config_states/
/node_modules
/package-lock.json
/.coverage*
/test/test_outputs
extensions/
/cache
trace.json
Empty file modified .pylintrc
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion CHANGELOG.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 1.9.4

### Bug Fixes:
* pin setuptools version to fix the startup error ([#15883](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15883))
* pin setuptools version to fix the startup error ([#15882](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15882))

## 1.9.3

Expand Down
Empty file modified CITATION.cff
100644 → 100755
Empty file.
Empty file modified CODEOWNERS
100644 → 100755
Empty file.
Empty file modified LICENSE.txt
100644 → 100755
Empty file.
205 changes: 30 additions & 175 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,183 +1,38 @@
# Stable Diffusion web UI
A web interface for Stable Diffusion, implemented using Gradio library.
A web interface for Stable Diffusion. Fork of A1111/stable-diffusion-web-ui. For Ubuntu with use of [PyEnv](https://github.com/pyenv/pyenv).

![](screenshot.png)

## Features
[Detailed feature showcase with images](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features):
- Original txt2img and img2img modes
- One click install and run script (but you still must install python and git)
- Outpainting
- Inpainting
- Color Sketch
- Prompt Matrix
- Stable Diffusion Upscale
- Attention, specify parts of text that the model should pay more attention to
- a man in a `((tuxedo))` - will pay more attention to tuxedo
- a man in a `(tuxedo:1.21)` - alternative syntax
- select text and press `Ctrl+Up` or `Ctrl+Down` (or `Command+Up` or `Command+Down` if you're on a MacOS) to automatically adjust attention to selected text (code contributed by anonymous user)
- Loopback, run img2img processing multiple times
- X/Y/Z plot, a way to draw a 3 dimensional plot of images with different parameters
- Textual Inversion
- have as many embeddings as you want and use any names you like for them
- use multiple embeddings with different numbers of vectors per token
- works with half precision floating point numbers
- train embeddings on 8GB (also reports of 6GB working)
- Extras tab with:
- GFPGAN, neural network that fixes faces
- CodeFormer, face restoration tool as an alternative to GFPGAN
- RealESRGAN, neural network upscaler
- ESRGAN, neural network upscaler with a lot of third party models
- SwinIR and Swin2SR ([see here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/2092)), neural network upscalers
- LDSR, Latent diffusion super resolution upscaling
- Resizing aspect ratio options
- Sampling method selection
- Adjust sampler eta values (noise multiplier)
- More advanced noise setting options
- Interrupt processing at any time
- 4GB video card support (also reports of 2GB working)
- Correct seeds for batches
- Live prompt token length validation
- Generation parameters
- parameters you used to generate images are saved with that image
- in PNG chunks for PNG, in EXIF for JPEG
- can drag the image to PNG info tab to restore generation parameters and automatically copy them into UI
- can be disabled in settings
- drag and drop an image/text-parameters to promptbox
- Read Generation Parameters Button, loads parameters in promptbox to UI
- Settings page
- Running arbitrary python code from UI (must run with `--allow-code` to enable)
- Mouseover hints for most UI elements
- Possible to change defaults/mix/max/step values for UI elements via text config
- Tiling support, a checkbox to create images that can be tiled like textures
- Progress bar and live image generation preview
- Can use a separate neural network to produce previews with almost none VRAM or compute requirement
- Negative prompt, an extra text field that allows you to list what you don't want to see in generated image
- Styles, a way to save part of prompt and easily apply them via dropdown later
- Variations, a way to generate same image but with tiny differences
- Seed resizing, a way to generate same image but at slightly different resolution
- CLIP interrogator, a button that tries to guess prompt from an image
- Prompt Editing, a way to change prompt mid-generation, say to start making a watermelon and switch to anime girl midway
- Batch Processing, process a group of files using img2img
- Img2img Alternative, reverse Euler method of cross attention control
- Highres Fix, a convenience option to produce high resolution pictures in one click without usual distortions
- Reloading checkpoints on the fly
- Checkpoint Merger, a tab that allows you to merge up to 3 checkpoints into one
- [Custom scripts](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Custom-Scripts) with many extensions from community
- [Composable-Diffusion](https://energy-based-model.github.io/Compositional-Visual-Generation-with-Composable-Diffusion-Models/), a way to use multiple prompts at once
- separate prompts using uppercase `AND`
- also supports weights for prompts: `a cat :1.2 AND a dog AND a penguin :2.2`
- No token limit for prompts (original stable diffusion lets you use up to 75 tokens)
- DeepDanbooru integration, creates danbooru style tags for anime prompts
- [xformers](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Xformers), major speed increase for select cards: (add `--xformers` to commandline args)
- via extension: [History tab](https://github.com/yfszzx/stable-diffusion-webui-images-browser): view, direct and delete images conveniently within the UI
- Generate forever option
- Training tab
- hypernetworks and embeddings options
- Preprocessing images: cropping, mirroring, autotagging using BLIP or deepdanbooru (for anime)
- Clip skip
- Hypernetworks
- Loras (same as Hypernetworks but more pretty)
- A separate UI where you can choose, with preview, which embeddings, hypernetworks or Loras to add to your prompt
- Can select to load a different VAE from settings screen
- Estimated completion time in progress bar
- API
- Support for dedicated [inpainting model](https://github.com/runwayml/stable-diffusion#inpainting-with-stable-diffusion) by RunwayML
- via extension: [Aesthetic Gradients](https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients), a way to generate images with a specific aesthetic by using clip images embeds (implementation of [https://github.com/vicgalle/stable-diffusion-aesthetic-gradients](https://github.com/vicgalle/stable-diffusion-aesthetic-gradients))
- [Stable Diffusion 2.0](https://github.com/Stability-AI/stablediffusion) support - see [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#stable-diffusion-20) for instructions
- [Alt-Diffusion](https://arxiv.org/abs/2211.06679) support - see [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#alt-diffusion) for instructions
- Now without any bad letters!
- Load checkpoints in safetensors format
- Eased resolution restriction: generated image's dimensions must be a multiple of 8 rather than 64
- Now with a license!
- Reorder elements in the UI from settings screen
- [Segmind Stable Diffusion](https://huggingface.co/segmind/SSD-1B) support

## Installation and Running
Make sure the required [dependencies](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Dependencies) are met and follow the instructions available for:
- [NVidia](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs) (recommended)
- [AMD](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs) GPUs.
- [Intel CPUs, Intel GPUs (both integrated and discrete)](https://github.com/openvinotoolkit/stable-diffusion-webui/wiki/Installation-on-Intel-Silicon) (external wiki page)
- [Ascend NPUs](https://github.com/wangshuai09/stable-diffusion-webui/wiki/Install-and-run-on-Ascend-NPUs) (external wiki page)

Alternatively, use online services (like Google Colab):

- [List of Online Services](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Online-Services)

### Installation on Windows 10/11 with NVidia-GPUs using release package
1. Download `sd.webui.zip` from [v1.0.0-pre](https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre) and extract its contents.
2. Run `update.bat`.
3. Run `run.bat`.
> For more details see [Install-and-Run-on-NVidia-GPUs](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs)

### Automatic Installation on Windows
1. Install [Python 3.10.6](https://www.python.org/downloads/release/python-3106/) (Newer version of Python does not support torch), checking "Add Python to PATH".
2. Install [git](https://git-scm.com/download/win).
3. Download the stable-diffusion-webui repository, for example by running `git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git`.
4. Run `webui-user.bat` from Windows Explorer as normal, non-administrator, user.

### Automatic Installation on Linux
1. Install the dependencies:
```bash
# Debian-based:
sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0
# Red Hat-based:
sudo dnf install wget git python3 gperftools-libs libglvnd-glx
# openSUSE-based:
sudo zypper install wget git python3 libtcmalloc4 libglvnd
# Arch-based:
sudo pacman -S wget git python3
# Install
```
2. Navigate to the directory you would like the webui to be installed and execute the following command:
```bash
wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh
curl https://pyenv.run | bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc`
source ~/.bashrc
```
3. Run `webui.sh`.
4. Check `webui-user.sh` for options.
### Installation on Apple Silicon

Find the instructions [here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon).

## Contributing
Here's how to add code to this repo: [Contributing](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Contributing)

## Documentation

The documentation was moved from this README over to the project's [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki).
## Python Build Dependencies for PyEnv ([Wiki](https://github.com/pyenv/pyenv/wiki#suggested-build-environment))
### Mac
```
brew install openssl readline sqlite3 xz zlib tcl-tk
```

For the purposes of getting Google and other search engines to crawl the wiki, here's a link to the (not for humans) [crawlable wiki](https://github-wiki-see.page/m/AUTOMATIC1111/stable-diffusion-webui/wiki).
### Linux
```
sudo apt install build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
```

## Credits
Licenses for borrowed code can be found in `Settings -> Licenses` screen, and also in `html/licenses.html` file.
## Python Venv
```
pyenv install 3.10.13
pyenv shell 3.10.13
```

- Stable Diffusion - https://github.com/Stability-AI/stablediffusion, https://github.com/CompVis/taming-transformers
- k-diffusion - https://github.com/crowsonkb/k-diffusion.git
- Spandrel - https://github.com/chaiNNer-org/spandrel implementing
- GFPGAN - https://github.com/TencentARC/GFPGAN.git
- CodeFormer - https://github.com/sczhou/CodeFormer
- ESRGAN - https://github.com/xinntao/ESRGAN
- SwinIR - https://github.com/JingyunLiang/SwinIR
- Swin2SR - https://github.com/mv-lab/swin2sr
- LDSR - https://github.com/Hafiidz/latent-diffusion
- MiDaS - https://github.com/isl-org/MiDaS
- Ideas for optimizations - https://github.com/basujindal/stable-diffusion
- Cross Attention layer optimization - Doggettx - https://github.com/Doggettx/stable-diffusion, original idea for prompt editing.
- Cross Attention layer optimization - InvokeAI, lstein - https://github.com/invoke-ai/InvokeAI (originally http://github.com/lstein/stable-diffusion)
- Sub-quadratic Cross Attention layer optimization - Alex Birch (https://github.com/Birch-san/diffusers/pull/1), Amin Rezaei (https://github.com/AminRezaei0x443/memory-efficient-attention)
- Textual Inversion - Rinon Gal - https://github.com/rinongal/textual_inversion (we're not using his code, but we are using his ideas).
- Idea for SD upscale - https://github.com/jquesnelle/txt2imghd
- Noise generation for outpainting mk2 - https://github.com/parlance-zz/g-diffuser-bot
- CLIP interrogator idea and borrowing some code - https://github.com/pharmapsychotic/clip-interrogator
- Idea for Composable Diffusion - https://github.com/energy-based-model/Compositional-Visual-Generation-with-Composable-Diffusion-Models-PyTorch
- xformers - https://github.com/facebookresearch/xformers
- DeepDanbooru - interrogator for anime diffusers https://github.com/KichangKim/DeepDanbooru
- Sampling in float32 precision from a float16 UNet - marunine for the idea, Birch-san for the example Diffusers implementation (https://github.com/Birch-san/diffusers-play/tree/92feee6)
- Instruct pix2pix - Tim Brooks (star), Aleksander Holynski (star), Alexei A. Efros (no star) - https://github.com/timothybrooks/instruct-pix2pix
- Security advice - RyotaK
- UniPC sampler - Wenliang Zhao - https://github.com/wl-zhao/UniPC
- TAESD - Ollin Boer Bohan - https://github.com/madebyollin/taesd
- LyCORIS - KohakuBlueleaf
- Restart sampling - lambertae - https://github.com/Newbeeer/diffusion_restart_sampling
- Hypertile - tfernd - https://github.com/tfernd/HyperTile
- Initial Gradio script - posted on 4chan by an Anonymous user. Thank you Anonymous user.
- (You)
# Start
Ensure there is a Python3.10 installation and it is pointed at in webui-user.sh.
```
sudo ./webui.sh
sudo pm2 start webui.sh
```
sudo pm2 stop webui
Empty file modified _typos.toml
100644 → 100755
Empty file.
Loading
Loading