Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
914 commits
Select commit Hold shift + click to select a range
9fd0cd6
update preview on Replace Preview
w-e-w Mar 10, 2024
7e5e673
add UI for reordering callbacks
AUTOMATIC1111 Mar 10, 2024
edc5620
Merge pull request #15201 from AUTOMATIC1111/update-preview-on-Replac…
AUTOMATIC1111 Mar 10, 2024
2f55d66
add support for specifying callback order in metadata
AUTOMATIC1111 Mar 10, 2024
3670b4f
lint
AUTOMATIC1111 Mar 10, 2024
1bbc8a1
Merge branch 'dev' into callback_order
AUTOMATIC1111 Mar 10, 2024
3e0146f
restore the lost Uncategorized options section
AUTOMATIC1111 Mar 10, 2024
eb10da8
type hinting in shared.py
light-and-ray Mar 11, 2024
2d57a2d
Update modules/shared.py
light-and-ray Mar 11, 2024
1a1205f
fix Restore progress
w-e-w Mar 11, 2024
4079b17
move postprocessing-for-training into builtin extensions
light-and-ray Mar 11, 2024
2e3a0f3
move upscale postprocessing under input accordion
light-and-ray Mar 11, 2024
8262cd7
Better workaround for Navi1, removing --pre for Navi3
DGdev91 Mar 11, 2024
994e08a
ascend npu readme
wangshuai09 Mar 12, 2024
b980c81
featch only active branch updates for extensions
light-and-ray Mar 12, 2024
74e2e52
Workaround for Navi1: pytorch nightly whl for 3.8 and 3.9
DGdev91 Mar 12, 2024
9fbfb8a
Better workaround for Navi1 - fix if
DGdev91 Mar 12, 2024
2efc7c1
Better workaround for Navi1, removing --pre for Navi3
DGdev91 Mar 12, 2024
32f0b5d
Merge branch 'dev' of https://github.com/DGdev91/stable-diffusion-web…
DGdev91 Mar 12, 2024
9f2ae1c
Add missing .mean
KohakuBlueleaf Mar 13, 2024
d18eb10
add hook
Haoming02 Mar 13, 2024
fd71b76
use re instead of hardcoding
Haoming02 Mar 14, 2024
4e17fc3
add user setting
Haoming02 Mar 14, 2024
c40f33c
PEP 604 annotations
w-e-w Mar 14, 2024
07805cb
fix: AttributeError when attempting to reshape rescale by org_module …
v0xie Mar 15, 2024
76fd487
Make imageviewer event listeners browser consistent
catboxanon Mar 15, 2024
8eaa7e9
Support dragdrop for URLs
catboxanon Mar 15, 2024
5f4203b
Strip comments from hires fix prompt
missionfloyd Mar 15, 2024
6f51e05
prevent alt menu for firefox
light-and-ray Mar 15, 2024
887a512
fix issue with Styles when Hires prompt is used
w-e-w Mar 15, 2024
a3a648b
bump action version
w-e-w Mar 15, 2024
01ba5ad
Merge pull request #15272 from AUTOMATIC1111/bump-action-version
AUTOMATIC1111 Mar 16, 2024
c5aa7b6
Merge pull request #15269 from AUTOMATIC1111/fix-Hires-prompt-Styles
AUTOMATIC1111 Mar 16, 2024
3ffe47c
Merge pull request #15263 from AUTOMATIC1111/fix-hr-comments
AUTOMATIC1111 Mar 16, 2024
0cc3647
Merge pull request #15261 from catboxanon/fix/imageviewer-click
AUTOMATIC1111 Mar 16, 2024
3cb698a
Merge pull request #15260 from v0xie/fix-OFT-MhA-AttributeError
AUTOMATIC1111 Mar 16, 2024
a072c19
Merge pull request #15259 from AUTOMATIC1111/PEP-604-annotations
AUTOMATIC1111 Mar 16, 2024
c9244ef
Merge pull request #15224 from DGdev91/dev
AUTOMATIC1111 Mar 16, 2024
afb9296
Merge pull request #15244 from Haoming02/auto-scale-by
AUTOMATIC1111 Mar 16, 2024
63c3c4d
simplify code for #15244
AUTOMATIC1111 Mar 16, 2024
d38b390
Merge pull request #15239 from AUTOMATIC1111/Fix-lora-bugs
AUTOMATIC1111 Mar 16, 2024
1282bce
Merge pull request #15233 from light-and-ray/featch_only_active_branc…
AUTOMATIC1111 Mar 16, 2024
8bc9978
Merge pull request #15228 from wangshuai09/ascend_npu_readme
AUTOMATIC1111 Mar 16, 2024
446e49d
Merge branch 'dev' into move_upscale_postprocessing_under_input_accor…
AUTOMATIC1111 Mar 16, 2024
2fc47b4
Merge pull request #15223 from light-and-ray/move_upscale_postprocess…
AUTOMATIC1111 Mar 16, 2024
03ea0f3
Merge pull request #15222 from light-and-ray/move_postprocessing-for-…
AUTOMATIC1111 Mar 16, 2024
f7bad19
Merge pull request #15221 from AUTOMATIC1111/fix-Restore-progress
AUTOMATIC1111 Mar 16, 2024
9fd6932
Merge pull request #15211 from light-and-ray/type_hintinh_in_shared.py
AUTOMATIC1111 Mar 16, 2024
5bd2724
Merge pull request #15205 from AUTOMATIC1111/callback_order
AUTOMATIC1111 Mar 16, 2024
38a7dc5
v180_hr_styles actual version number
w-e-w Mar 16, 2024
cc8ea32
fix ui-config for InputAccordion
light-and-ray Mar 12, 2024
e8613db
Merge pull request #15231 from light-and-ray/fix_ui-config_for_InputA…
AUTOMATIC1111 Mar 16, 2024
bb9df5c
Merge pull request #15276 from AUTOMATIC1111/v180_hr_styles-actual-ve…
AUTOMATIC1111 Mar 16, 2024
79514e5
prevent defaults for alt only if mouse inside image
light-and-ray Mar 16, 2024
9142ce8
fix linter and do not require reload page if option was changed
light-and-ray Mar 16, 2024
eb2ea8d
check e.key in up event
light-and-ray Mar 16, 2024
7598a92
use e.key instead of e.code
light-and-ray Mar 16, 2024
c364b60
handle 0 wheel deltaX
light-and-ray Mar 15, 2024
874809e
Merge pull request #15268 from light-and-ray/handle_0_wheel_deltaX
AUTOMATIC1111 Mar 16, 2024
2f9d1c3
Merge pull request #15267 from light-and-ray/prevent_alt_menu_on_firefox
AUTOMATIC1111 Mar 16, 2024
0283826
prevent make alt key from opening main menu if it's used for brush si…
AUTOMATIC1111 Mar 16, 2024
cb09e1e
Merge pull request #15179 from llnancy/master
AUTOMATIC1111 Mar 16, 2024
bf35c66
fix for #15179
AUTOMATIC1111 Mar 16, 2024
1792e19
Use correct implementation, fix device error
KohakuBlueleaf Mar 16, 2024
199c51d
linter
KohakuBlueleaf Mar 16, 2024
8dcb8fa
Merge branch 'dev' into dora-weight-decompose
AUTOMATIC1111 Mar 16, 2024
df8c09b
Merge pull request #15283 from AUTOMATIC1111/dora-weight-decompose
AUTOMATIC1111 Mar 16, 2024
3da13f0
Fix dragging to/from firefox
missionfloyd Mar 16, 2024
83a9dd8
Download image client-side
missionfloyd Mar 16, 2024
446cd5a
dragdrop: add error handling for URLs
catboxanon Mar 17, 2024
6d8b7ec
Merge pull request #15262 from catboxanon/feat/dragdrop-urls
AUTOMATIC1111 Mar 17, 2024
93c7b9d
linter for #15262
AUTOMATIC1111 Mar 17, 2024
e9b8a89
allow use zoom.js outside webui context
light-and-ray Mar 17, 2024
66355b4
use diskcache library for caching
AUTOMATIC1111 Mar 17, 2024
c12ba58
Merge pull request #15286 from light-and-ray/allow_use_zoom.js_outsid…
AUTOMATIC1111 Mar 17, 2024
c3f75d1
little fixes zoom.js
light-and-ray Mar 17, 2024
c95c460
Merge pull request #15288 from light-and-ray/allow_use_zoom.js_outsid…
AUTOMATIC1111 Mar 17, 2024
b1cd018
allow variants for extension name in metadata.ini
light-and-ray Mar 17, 2024
ef35619
Extras upscaler: option limit target resolution
light-and-ray Mar 17, 2024
4ce2e25
Merge pull request #15290 from light-and-ray/allow_variants_for_exten…
AUTOMATIC1111 Mar 17, 2024
908d522
update ruff to 0.3.3
AUTOMATIC1111 Mar 17, 2024
06c5dd0
maybe fix tests
light-and-ray Mar 17, 2024
79cbc92
change code for variant requirements in metadata.ini
AUTOMATIC1111 Mar 17, 2024
81be357
hide limit target resolution under option
light-and-ray Mar 17, 2024
fd83d4e
add .needs_reload_ui()
light-and-ray Mar 17, 2024
daa1b33
make reloading UI scripts optional when doing Reload UI, and off by d…
AUTOMATIC1111 Mar 17, 2024
611faad
change the default name for callback from None to "unnamed"
AUTOMATIC1111 Mar 17, 2024
f1b090e
Merge pull request #15287 from AUTOMATIC1111/diskcache
AUTOMATIC1111 Mar 17, 2024
df4da02
Tweak diskcache limits
akx Mar 17, 2024
8ac4a20
Merge pull request #15299 from AUTOMATIC1111/diskcache-bett
AUTOMATIC1111 Mar 17, 2024
2a6054f
Update sd_hijack_ddpm_v1.py
Dalton-Murray Mar 18, 2024
51cb20e
Update ddpm_edit.py
Dalton-Murray Mar 18, 2024
203afa3
update tooltip
light-and-ray Mar 18, 2024
c4664b5
fix for listing wrong requirements for extensions
AUTOMATIC1111 Mar 18, 2024
e9d4da7
restore outputs path
w-e-w Mar 18, 2024
7ac7600
Merge pull request #15307 from AUTOMATIC1111/restore-outputs-path
AUTOMATIC1111 Mar 18, 2024
3fa1ebe
Escape btn_copy_path filename
missionfloyd Mar 19, 2024
522121b
Merge pull request #15316 from AUTOMATIC1111/escape-filename
AUTOMATIC1111 Mar 19, 2024
c4a00af
use existing quote_js function for #15316
AUTOMATIC1111 Mar 19, 2024
a6b5a51
Implementation for sgm_uniform branch
KohakuBlueleaf Mar 19, 2024
d44b8aa
Merge pull request #15325 from AUTOMATIC1111/sgm_uniform
AUTOMATIC1111 Mar 19, 2024
61f3217
Update ddpm_edit.py
Dalton-Murray Mar 19, 2024
8627683
Update sd_hijack_ddpm_v1.py
Dalton-Murray Mar 19, 2024
8f45032
Formatting ddpm_edit
Dalton-Murray Mar 19, 2024
4977941
Formatting sd_hijack_ddpm_v1.py
Dalton-Murray Mar 19, 2024
d7f4847
Fix extra networks buttons when filename contains an apostrophe
missionfloyd Mar 20, 2024
6e420c7
Merge branch 'dev' into extra-networks-buttons
missionfloyd Mar 20, 2024
b5c3334
Don't use quote_js on filename
missionfloyd Mar 20, 2024
060e55d
Merge pull request #15331 from AUTOMATIC1111/extra-networks-buttons
AUTOMATIC1111 Mar 20, 2024
25cd53d
scheduler selection in main UI
AUTOMATIC1111 Mar 20, 2024
61f4883
FIX: Allow PNG-RGBA for Extras Tab
Gourieff Mar 20, 2024
76f8436
add Uniform scheduler
AUTOMATIC1111 Mar 20, 2024
ac9aa44
do not add 'Automatic' to infotext
AUTOMATIC1111 Mar 20, 2024
31306ce
change the behavior of discard_next_to_last_sigma for sgm_uniform to …
AUTOMATIC1111 Mar 20, 2024
702edb2
FIX: initial_pp RGBA right way
Gourieff Mar 20, 2024
8ec8901
FIX: No specific type for 'image' arg
Gourieff Mar 20, 2024
e0cad0f
Merge remote-tracking branch 'upstream/dev' into extras--allow-png-rg…
Gourieff Mar 20, 2024
5fd9a40
Revert sd_hijack_ddpm_v1.py
Dalton-Murray Mar 21, 2024
f010dff
Revert ddpm_edit.py
Dalton-Murray Mar 21, 2024
b5b0491
Include running pytorch lightning check
Dalton-Murray Mar 21, 2024
4eb5e09
Update initialize_util.py
Dalton-Murray Mar 21, 2024
4bc2963
Remove unnecessary import
Dalton-Murray Mar 21, 2024
41907b2
Cleanup sd_hijack_ddpm_v1.py
Dalton-Murray Mar 21, 2024
4e6e257
Cleanup ddpm_edit.py
Dalton-Murray Mar 21, 2024
32ba757
Re-add import but after if check
Dalton-Murray Mar 21, 2024
6507589
Merge pull request #15310 from Dalton-Murray/update-pytorch-lightning…
AUTOMATIC1111 Mar 21, 2024
5c5594f
linter
AUTOMATIC1111 Mar 21, 2024
b80b1cf
Merge pull request #15334 from Gourieff/extras--allow-png-rgba--dev
AUTOMATIC1111 Mar 21, 2024
57727e5
make #15334 work without making copies of images
AUTOMATIC1111 Mar 21, 2024
721c430
escape brackets in lora random prompt generator
light-and-ray Mar 21, 2024
2941e1f
Add Size as an XYZ Grid option
akx Mar 22, 2024
f3ca6a9
Fix for #15333
kaalibro Mar 22, 2024
db61b87
Merge pull request #15361 from kaalibro/fix/scheduler_selection
AUTOMATIC1111 Mar 24, 2024
bf2f7b3
Merge pull request #15333 from AUTOMATIC1111/scheduler_selection
AUTOMATIC1111 Mar 24, 2024
0affa24
Merge pull request #15354 from akx/xyz-script-size
AUTOMATIC1111 Mar 24, 2024
755d2cb
Merge pull request #15343 from light-and-ray/escape_brackets_in_lora_…
AUTOMATIC1111 Mar 24, 2024
c440250
Support `ssmd_cover_images`
catboxanon Mar 24, 2024
9aa9e98
support scheduler selection in hires fix
AUTOMATIC1111 Mar 24, 2024
b0b90dc
Merge pull request #15319 from catboxanon/feat/ssmd_cover_images
AUTOMATIC1111 Mar 24, 2024
dfbdb5a
put request: gr.Request at start of img2img function similar to txt2img
AUTOMATIC1111 Mar 25, 2024
f62217b
minor bug fix of sd model memory management
Mar 21, 2024
f4633cb
fix: when find already_loaded model, remove loaded by array index
Mar 26, 2024
c321680
interrupt upscale
light-and-ray Mar 26, 2024
16522cb
fix typo in call_queue.py
eltociear Mar 26, 2024
5461b00
fix: Python version check for PyTorch installation compatibility
ochen1 Mar 27, 2024
4e2bb72
fix_ui_config_for_hires_sampler_and_scheduler
light-and-ray Mar 27, 2024
8687163
Merge pull request #15394 from light-and-ray/fix_ui_config_for_hires_…
AUTOMATIC1111 Mar 27, 2024
1dc8cc1
Merge branch 'dev' into patch-1
AUTOMATIC1111 Mar 30, 2024
470d402
Merge pull request #15390 from ochen1/patch-1
AUTOMATIC1111 Mar 30, 2024
c4c8a64
restore the line lost in the merge
AUTOMATIC1111 Mar 30, 2024
80b8710
Merge pull request #15386 from eltociear/patch-3
AUTOMATIC1111 Mar 30, 2024
642bca4
Merge pull request #15380 from light-and-ray/interrupt_upscale
AUTOMATIC1111 Mar 30, 2024
9809619
Merge pull request #15382 from huaizong/fix/whz/model-loaded-remove-v3
AUTOMATIC1111 Mar 30, 2024
8bebfde
Merge pull request #15350 from baseco/memory-bug-fix
AUTOMATIC1111 Mar 30, 2024
7f3ce06
Merge pull request #15293 from light-and-ray/extras_upscaler_limit_ta…
AUTOMATIC1111 Mar 31, 2024
dcd4f88
rework code/UI for #15293
AUTOMATIC1111 Mar 31, 2024
bfa20d2
resize Max side length field
AUTOMATIC1111 Mar 31, 2024
f1a6c5f
add an option to hide postprocessing options in Extras tab
AUTOMATIC1111 Mar 31, 2024
ea83180
fix CodeFormer weight
Mar 31, 2024
4ccbae3
fix dcd4f880a86e500ec88ddf7eafe65894a24b85a3
light-and-ray Mar 31, 2024
23ef502
Merge pull request #15414 from DrBiggusDickus/dev2
AUTOMATIC1111 Mar 31, 2024
859f0f6
Merge pull request #15415 from light-and-ray/fix_dcd4f880a86e500ec88d…
AUTOMATIC1111 Mar 31, 2024
0a7d1e7
fix upscaler 2
light-and-ray Mar 31, 2024
aa4a451
Merge pull request #15417 from light-and-ray/fix_upscaler_2
AUTOMATIC1111 Mar 31, 2024
e73a7e4
feat: ensure the indexability of dynamically imported packages
storyicon Apr 1, 2024
86861f8
fix upscaler 2 images do not match
light-and-ray Apr 1, 2024
7192961
Merge pull request #15425 from light-and-ray/fix_upscaler_2_images_do…
AUTOMATIC1111 Apr 1, 2024
a669b8a
fix: remove script callbacks in ordered_callbacks_map
v0xie Apr 1, 2024
0cb2bbd
Merge pull request #15428 from v0xie/fix/remove-callbacks
AUTOMATIC1111 Apr 1, 2024
b372fb6
fix API upscale
AUTOMATIC1111 Apr 1, 2024
92e6aa3
open_folder as util
w-e-w Apr 5, 2024
a05d89b
Merge branch 'dev' into open_folder-as-util
w-e-w Apr 5, 2024
20123d4
open_folder docstring
w-e-w Apr 5, 2024
989b89b
Use HF_ENDPOINT variable for HuggingFace domain with default
Apr 5, 2024
73f7812
Merge pull request #15443 from Satariall/add-hf_endpoint-variable
AUTOMATIC1111 Apr 6, 2024
acb2033
put HF_ENDPOINT into shared for #15443
AUTOMATIC1111 Apr 6, 2024
447198f
Merge pull request #15442 from AUTOMATIC1111/open_folder-as-util
AUTOMATIC1111 Apr 6, 2024
badb70d
Merge pull request #15423 from storyicon/master
AUTOMATIC1111 Apr 6, 2024
23c06a5
use 'scripts.' prefix for names of dynamically loaded modules
AUTOMATIC1111 Apr 6, 2024
2ad17a6
re-add update_file_entry
w-e-w Apr 6, 2024
c16a27c
Merge pull request #15446 from AUTOMATIC1111/re-add-update_file_entry
AUTOMATIC1111 Apr 6, 2024
e164031
1.9.0 changelog
AUTOMATIC1111 Apr 6, 2024
6efdfe3
if use use_main_prompt index = 0
w-e-w Apr 7, 2024
47ed9b2
allow list or callables in generation_params
w-e-w Apr 7, 2024
219e644
re-work extra_generation_params for Hires prompt
w-e-w Apr 7, 2024
1e1176b
non-serializable as None
w-e-w Apr 8, 2024
e3aabe6
add documentation for create_infotext
w-e-w Apr 8, 2024
d9708c9
fix limited file write (thanks, Sylwia)
AUTOMATIC1111 Apr 8, 2024
3786f37
fix limited file write (thanks, Sylwia)
AUTOMATIC1111 Apr 8, 2024
2580235
Fix extra-single-image API not doing upscale failed
jordenyt Apr 9, 2024
c48b6bf
Merge pull request #15465 from jordenyt/fix-extras-api-upscale-enabled
AUTOMATIC1111 Apr 9, 2024
696d681
Merge pull request #15465 from jordenyt/fix-extras-api-upscale-enabled
AUTOMATIC1111 Apr 9, 2024
a976f4d
Merge pull request #15460 from AUTOMATIC1111/create_infotext-index-an…
AUTOMATIC1111 Apr 9, 2024
7f69161
Merge pull request #15460 from AUTOMATIC1111/create_infotext-index-an…
AUTOMATIC1111 Apr 9, 2024
600f339
Warning when Script is not found
w-e-w Apr 9, 2024
ef83f68
catch exception for all paste_fields callable
w-e-w Apr 9, 2024
ac8ffb3
Merge pull request #15470 from AUTOMATIC1111/read-infotext-Script-not…
AUTOMATIC1111 Apr 9, 2024
88f70ce
Merge pull request #15470 from AUTOMATIC1111/read-infotext-Script-not…
AUTOMATIC1111 Apr 9, 2024
4068429
fix: Coordinate 'right' is less than 'left'
storyicon Apr 10, 2024
592e40e
update restricted_opts
w-e-w Apr 11, 2024
3fadb4f
Merge pull request #15492 from w-e-w/update-restricted_opts
AUTOMATIC1111 Apr 11, 2024
a196319
Merge pull request #15492 from w-e-w/update-restricted_opts
AUTOMATIC1111 Apr 11, 2024
d282d24
update changelog
AUTOMATIC1111 Apr 13, 2024
adadb4e
Merge branch 'release_candidate'
AUTOMATIC1111 Apr 13, 2024
ff6f468
Merge branch 'master' into dev
AUTOMATIC1111 Apr 13, 2024
8e1c356
fix typo in function call (eror -> error)
thatfuckingbird Apr 15, 2024
0f82948
Fix cls.__module__
huchenlei Apr 16, 2024
a95326b
nit
huchenlei Apr 16, 2024
bba306d
fix: remove callbacks properly in remove_callbacks_for_function()
travisg Apr 16, 2024
0980fdf
fix: images do not match
storyicon Apr 16, 2024
50190ca
Compatibility with Debian 11, Fedora 34+ and openSUSE 15.4+
cabelo Apr 17, 2024
63fd38a
numpy DeprecationWarning product -> prod
w-e-w Apr 17, 2024
9d4fdc4
fix x1 upscalers
light-and-ray Apr 17, 2024
909c3df
Remove API upscaling factor limits
missionfloyd Apr 18, 2024
ba2a737
Allow webui.sh to be runnable from directories containing a .git file
speculativemoonstone Apr 18, 2024
71314e4
feat:compatible with inconsistent/empty mask
storyicon Apr 18, 2024
d212fb5
Hide 'No Image data blocks found.' message
missionfloyd Apr 19, 2024
5cb567c
Add schedulers API endpoint
missionfloyd Apr 20, 2024
b5b1487
FilenameGenerator Sampler Scheduler
w-e-w Apr 20, 2024
49fee7c
Add avif support
kaanyalova Apr 20, 2024
cde35be
Merge pull request #15582 from kaanyalova/avif-support
AUTOMATIC1111 Apr 21, 2024
f8f5d6c
Merge pull request #15577 from AUTOMATIC1111/api-get-schedulers
AUTOMATIC1111 Apr 21, 2024
3810413
Merge pull request #15581 from AUTOMATIC1111/FilenameGenerator-sample…
AUTOMATIC1111 Apr 21, 2024
449bc7b
Merge pull request #15534 from storyicon/fix-masking
AUTOMATIC1111 Apr 21, 2024
c8ac42a
Merge pull request #15533 from travisg/callback-fix
AUTOMATIC1111 Apr 21, 2024
367b823
Merge pull request #15567 from AUTOMATIC1111/no-image-data-blocks-debug
AUTOMATIC1111 Apr 21, 2024
6f4f6bf
add more info to the error message for #15567
AUTOMATIC1111 Apr 21, 2024
8d6e72d
Merge pull request #15561 from speculativemoonstone/fix-launch-git-di…
AUTOMATIC1111 Apr 21, 2024
ce19a7b
Merge pull request #15544 from cabelo/master
AUTOMATIC1111 Apr 21, 2024
daae178
Merge pull request #15560 from AUTOMATIC1111/api-downscale
AUTOMATIC1111 Apr 21, 2024
a44ed23
Merge pull request #15555 from light-and-ray/fix_x1_upscalers
AUTOMATIC1111 Apr 21, 2024
d74fc56
Merge pull request #15547 from AUTOMATIC1111/numpy-DeprecationWarning…
AUTOMATIC1111 Apr 21, 2024
9bcfb92
rename logging from textual inversion to not confuse it with global l…
AUTOMATIC1111 Apr 21, 2024
c0eaeb1
Merge pull request #15532 from huchenlei/fix_module
AUTOMATIC1111 Apr 21, 2024
d1998d7
Merge pull request #15531 from thatfuckingbird/fix-mistyped-function-…
AUTOMATIC1111 Apr 21, 2024
db263df
get_crop_region_v2
w-e-w Apr 21, 2024
e6a8d0b
Merge pull request #15583 from AUTOMATIC1111/get_crop_region_v2
AUTOMATIC1111 Apr 21, 2024
6c7c176
fix mistake in #15583
w-e-w Apr 21, 2024
a183ea4
undo adding scripts to sys.modules
AUTOMATIC1111 Apr 22, 2024
e4aa0c3
Merge pull request #15587 from AUTOMATIC1111/fix-mistake-in-#15583
AUTOMATIC1111 Apr 22, 2024
e84703b
update changelog
AUTOMATIC1111 Apr 22, 2024
61f6479
restore 1.8.0-style naming of scripts
AUTOMATIC1111 Apr 22, 2024
e9809de
restore 1.8.0-style naming of scripts
w-e-w Apr 22, 2024
3fdc3cf
Merge pull request #15591 from AUTOMATIC1111/restore-1.8.0-style-nami…
AUTOMATIC1111 Apr 22, 2024
e837124
changelog
AUTOMATIC1111 Apr 22, 2024
e2b177c
Merge branch 'dev'
AUTOMATIC1111 Apr 22, 2024
821adc3
fix get_crop_region_v2
w-e-w Apr 22, 2024
8f64dad
Merge pull request #15594 from AUTOMATIC1111/fix-get_crop_region_v2
AUTOMATIC1111 Apr 22, 2024
7dfe959
update changelog
AUTOMATIC1111 Apr 22, 2024
1c0a0c4
Merge branch 'dev'
AUTOMATIC1111 Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ module.exports = {
//extraNetworks.js
requestGet: "readonly",
popup: "readonly",
// profilerVisualization.js
createVisualizationTable: "readonly",
// from python
localization: "readonly",
// progrssbar.js
Expand All @@ -86,8 +88,6 @@ module.exports = {
// imageviewer.js
modalPrevImage: "readonly",
modalNextImage: "readonly",
// token-counters.js
setupTokenCounters: "readonly",
// localStorage.js
localSet: "readonly",
localGet: "readonly",
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/on_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout Code
uses: actions/checkout@v3
- uses: actions/setup-python@v4
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
# NB: there's no cache: pip here since we're not installing anything
# from the requirements.txt file(s) in the repository; it's faster
# not to have GHA download an (at the time of writing) 4 GB cache
# of PyTorch and other dependencies.
- name: Install Ruff
run: pip install ruff==0.1.6
run: pip install ruff==0.3.3
- name: Run Ruff
run: ruff .
lint-js:
Expand All @@ -29,9 +29,9 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm i --ci
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.10.6
cache: pip
cache-dependency-path: |
**/requirements*txt
launch.py
- name: Cache models
id: cache-models
uses: actions/cache@v4
with:
path: models
key: "2023-12-30"
- name: Install test dependencies
run: pip install wait-for-it -r requirements-test.txt
env:
Expand All @@ -33,6 +39,8 @@ jobs:
TORCH_INDEX_URL: https://download.pytorch.org/whl/cpu
WEBUI_LAUNCH_LIVE_OUTPUT: "1"
PYTHONUNBUFFERED: "1"
- name: Print installed packages
run: pip freeze
- name: Start test server
run: >
python -m coverage run
Expand All @@ -49,7 +57,7 @@ jobs:
2>&1 | tee output.txt &
- name: Run tests
run: |
wait-for-it --service 127.0.0.1:7860 -t 600
wait-for-it --service 127.0.0.1:7860 -t 20
python -m pytest -vv --junitxml=test/results.xml --cov . --cov-report=xml --verify-base-url test
- name: Kill test server
if: always()
Expand All @@ -60,13 +68,13 @@ jobs:
python -m coverage report -i
python -m coverage html -i
- name: Upload main app output
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: output
path: output.txt
- name: Upload coverage HTML
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: htmlcov
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ notification.mp3
/node_modules
/package-lock.json
/.coverage*
/test/test_outputs
/cache
301 changes: 295 additions & 6 deletions CHANGELOG.md

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stable Diffusion web UI
A browser interface based on Gradio library for Stable Diffusion.
A web interface for Stable Diffusion, implemented using Gradio library.

![](screenshot.png)

Expand Down Expand Up @@ -98,6 +98,7 @@ Make sure the required [dependencies](https://github.com/AUTOMATIC1111/stable-di
- [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):

Expand Down Expand Up @@ -151,11 +152,12 @@ Licenses for borrowed code can be found in `Settings -> Licenses` screen, and al

- Stable Diffusion - https://github.com/Stability-AI/stablediffusion, https://github.com/CompVis/taming-transformers
- k-diffusion - https://github.com/crowsonkb/k-diffusion.git
- 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
- 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
Expand Down
5 changes: 5 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[default.extend-words]
# Part of "RGBa" (Pillow's pre-multiplied alpha RGB mode)
Ba = "Ba"
# HSA is something AMD uses for their GPUs
HSA = "HSA"
98 changes: 98 additions & 0 deletions configs/sd_xl_inpaint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
model:
target: sgm.models.diffusion.DiffusionEngine
params:
scale_factor: 0.13025
disable_first_stage_autocast: True

denoiser_config:
target: sgm.modules.diffusionmodules.denoiser.DiscreteDenoiser
params:
num_idx: 1000

weighting_config:
target: sgm.modules.diffusionmodules.denoiser_weighting.EpsWeighting
scaling_config:
target: sgm.modules.diffusionmodules.denoiser_scaling.EpsScaling
discretization_config:
target: sgm.modules.diffusionmodules.discretizer.LegacyDDPMDiscretization

network_config:
target: sgm.modules.diffusionmodules.openaimodel.UNetModel
params:
adm_in_channels: 2816
num_classes: sequential
use_checkpoint: True
in_channels: 9
out_channels: 4
model_channels: 320
attention_resolutions: [4, 2]
num_res_blocks: 2
channel_mult: [1, 2, 4]
num_head_channels: 64
use_spatial_transformer: True
use_linear_in_transformer: True
transformer_depth: [1, 2, 10] # note: the first is unused (due to attn_res starting at 2) 32, 16, 8 --> 64, 32, 16
context_dim: 2048
spatial_transformer_attn_type: softmax-xformers
legacy: False

conditioner_config:
target: sgm.modules.GeneralConditioner
params:
emb_models:
# crossattn cond
- is_trainable: False
input_key: txt
target: sgm.modules.encoders.modules.FrozenCLIPEmbedder
params:
layer: hidden
layer_idx: 11
# crossattn and vector cond
- is_trainable: False
input_key: txt
target: sgm.modules.encoders.modules.FrozenOpenCLIPEmbedder2
params:
arch: ViT-bigG-14
version: laion2b_s39b_b160k
freeze: True
layer: penultimate
always_return_pooled: True
legacy: False
# vector cond
- is_trainable: False
input_key: original_size_as_tuple
target: sgm.modules.encoders.modules.ConcatTimestepEmbedderND
params:
outdim: 256 # multiplied by two
# vector cond
- is_trainable: False
input_key: crop_coords_top_left
target: sgm.modules.encoders.modules.ConcatTimestepEmbedderND
params:
outdim: 256 # multiplied by two
# vector cond
- is_trainable: False
input_key: target_size_as_tuple
target: sgm.modules.encoders.modules.ConcatTimestepEmbedderND
params:
outdim: 256 # multiplied by two

first_stage_config:
target: sgm.models.autoencoder.AutoencoderKLInferenceWrapper
params:
embed_dim: 4
monitor: val/rec_loss
ddconfig:
attn_type: vanilla-xformers
double_z: true
z_channels: 4
resolution: 256
in_channels: 3
out_ch: 3
ch: 128
ch_mult: [1, 2, 4, 4]
num_res_blocks: 2
attn_resolutions: []
dropout: 0.0
lossconfig:
target: torch.nn.Identity
8 changes: 4 additions & 4 deletions extensions-builtin/LDSR/sd_hijack_ddpm_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def p_losses(self, x_start, t, noise=None):
elif self.parameterization == "x0":
target = x_start
else:
raise NotImplementedError(f"Paramterization {self.parameterization} not yet supported")
raise NotImplementedError(f"Parameterization {self.parameterization} not yet supported")

loss = self.get_loss(model_out, target, mean=False).mean(dim=[1, 2, 3])

Expand Down Expand Up @@ -880,7 +880,7 @@ def forward(self, x, c, *args, **kwargs):
def apply_model(self, x_noisy, t, cond, return_ids=False):

if isinstance(cond, dict):
# hybrid case, cond is exptected to be a dict
# hybrid case, cond is expected to be a dict
pass
else:
if not isinstance(cond, list):
Expand Down Expand Up @@ -916,7 +916,7 @@ def apply_model(self, x_noisy, t, cond, return_ids=False):
cond_list = [{c_key: [c[:, :, :, :, i]]} for i in range(c.shape[-1])]

elif self.cond_stage_key == 'coordinates_bbox':
assert 'original_image_size' in self.split_input_params, 'BoudingBoxRescaling is missing original_image_size'
assert 'original_image_size' in self.split_input_params, 'BoundingBoxRescaling is missing original_image_size'

# assuming padding of unfold is always 0 and its dilation is always 1
n_patches_per_row = int((w - ks[0]) / stride[0] + 1)
Expand All @@ -926,7 +926,7 @@ def apply_model(self, x_noisy, t, cond, return_ids=False):
num_downs = self.first_stage_model.encoder.num_resolutions - 1
rescale_latent = 2 ** (num_downs)

# get top left postions of patches as conforming for the bbbox tokenizer, therefore we
# get top left positions of patches as conforming for the bbbox tokenizer, therefore we
# need to rescale the tl patch coordinates to be in between (0,1)
tl_patch_coordinates = [(rescale_latent * stride[0] * (patch_nr % n_patches_per_row) / full_img_w,
rescale_latent * stride[1] * (patch_nr // n_patches_per_row) / full_img_h)
Expand Down
2 changes: 1 addition & 1 deletion extensions-builtin/Lora/lyco_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def factorization(dimension: int, factor:int=-1) -> tuple[int, int]:
In LoRA with Kroneckor Product, first value is a value for weight scale.
secon value is a value for weight.
Becuase of non-commutative property, A⊗B ≠ B⊗A. Meaning of two matrices is slightly different.
Because of non-commutative property, A⊗B ≠ B⊗A. Meaning of two matrices is slightly different.
examples)
factor
Expand Down
Loading