Skip to content

Commit 4d43618

Browse files
committed
Squashed commit of the following:
commit dc34c00 Author: w-e-w <[email protected]> Date: Fri Dec 27 22:10:13 2024 +0900 fix shadows name 'k' from outer scope while syntactically correct this triggers a false Unresolved reference 'k' error in PyCharms commit fc54833 Author: w-e-w <[email protected]> Date: Fri Dec 27 08:58:44 2024 +0900 Authenticated Sysinfo commit 078d04e Author: w-e-w <[email protected]> Date: Fri Dec 27 10:40:15 2024 +0900 ruff <path> is deprecated. Use ruff check <path> (AUTOMATIC1111#16753) commit 1a773bf Merge: f25c3fc f113474 Author: w-e-w <[email protected]> Date: Thu Dec 26 06:33:04 2024 +0900 Merge pull request AUTOMATIC1111#16751 from Neokmi/master Fix Codeformer and gfpgan extension , Inconsistent overlay layer types when visibility value is less than 1 commit f113474 Author: w-e-w <[email protected]> Date: Thu Dec 26 06:26:47 2024 +0900 lint commit 6577e06 Author: klx <[email protected]> Date: Thu Dec 26 02:16:05 2024 +0800 Update postprocessing_gfpgan.py Fix gfpgan extension , Inconsistent overlay layer types when visibility value is less than 1 commit 7953c57 Author: klx <[email protected]> Date: Thu Dec 26 02:14:49 2024 +0800 Update postprocessing_codeformer.py Fix Codeformer extension , Inconsistent overlay layer types when visibility value is less than 1 commit f25c3fc Author: w-e-w <[email protected]> Date: Wed Dec 25 05:43:55 2024 +0900 fix sd_vae_explanation (AUTOMATIC1111#16748) commit fc0952a Merge: 04903af b414c62 Author: w-e-w <[email protected]> Date: Tue Dec 24 22:58:43 2024 +0900 Merge pull request AUTOMATIC1111#16745 from Sanchows/removed-unused-import-modules-errors removed unnecessary import 'modules.errors' commit b414c62 Author: Alexander Sachenko <[email protected]> Date: Tue Dec 24 15:45:10 2024 +0300 removed unnecessary import modules.errors commit 04903af Merge: e8c3b1f 9568622 Author: w-e-w <[email protected]> Date: Wed Dec 18 03:21:48 2024 +0900 Merge pull request AUTOMATIC1111#16604 from Haoming02/ext-updt-parallel Check for Extension Updates in Parallel commit e8c3b1f Merge: 0120768 8bf30e3 Author: w-e-w <[email protected]> Date: Wed Dec 18 02:37:30 2024 +0900 Merge pull request AUTOMATIC1111#16718 from Haoming02/bracket-checker-order [Bracket Checker] Also check for the order of brackets commit 8bf30e3 Author: Haoming <[email protected]> Date: Wed Dec 18 01:02:40 2024 +0800 revert IIFE commit fbc51fa Author: Haoming <[email protected]> Date: Mon Dec 16 09:47:38 2024 +0800 skip escaped commit 7025a2c Author: Haoming <[email protected]> Date: Thu Dec 12 16:08:15 2024 +0800 check-for-order commit 0120768 Merge: 023454b b425b97 Author: w-e-w <[email protected]> Date: Thu Nov 28 17:39:12 2024 +0900 Merge pull request AUTOMATIC1111#16687 from Haoming02/dropdown4format Use gr.Dropdown for Image Formats commit b425b97 Author: w-e-w <[email protected]> Date: Thu Nov 28 16:56:10 2024 +0900 improve img fromat description commit 539ea39 Author: w-e-w <[email protected]> Date: Thu Nov 28 14:02:33 2024 +0900 use DropdownEditable use DropdownEditable so user can input other formats if they require it make the default png the first on the list commit 65bd61e Author: Haoming <[email protected]> Date: Wed Nov 27 10:42:50 2024 +0800 format-dropdown commit 023454b Author: w-e-w <[email protected]> Date: Thu Nov 21 11:33:59 2024 +0900 fix passing of literal backslash (AUTOMATIC1111#16671) commit cd869bb Author: w-e-w <[email protected]> Date: Thu Nov 21 02:29:41 2024 +0900 fix prompt-bracket-checker miscounting of literal tokens (AUTOMATIC1111#16669) commit 957888a Merge: 7799859 d2c9efb Author: w-e-w <[email protected]> Date: Tue Nov 19 14:41:37 2024 +0900 Merge pull request AUTOMATIC1111#16667 from AUTOMATIC1111/fix/safetensors-bump Bump safetensors to v0.4.5 commit d2c9efb Author: catboxanon <[email protected]> Date: Mon Nov 18 20:48:36 2024 -0500 Bump safetensors to v0.4.5 Resolves AUTOMATIC1111#16650 commit 7799859 Merge: 1b16c62 ca3bedb Author: w-e-w <[email protected]> Date: Sat Nov 2 01:28:12 2024 +0900 Merge pull request AUTOMATIC1111#16620 from AUTOMATIC1111/fix/api-webp-lossless Honor lossless WebP compression option in API commit ca3bedb Author: catboxanon <[email protected]> Date: Fri Nov 1 11:32:52 2024 -0400 Honor lossless webp compression option in API commit 1b16c62 Author: w-e-w <[email protected]> Date: Thu Oct 31 02:01:32 2024 +0900 use shared.hf_endpoint (AUTOMATIC1111#16611) commit 91de919 Author: w-e-w <[email protected]> Date: Wed Oct 30 22:34:37 2024 +0900 Warn if WebUI is installed under a dot directory (AUTOMATIC1111#16584) commit aa52408 Merge: 28323cf e6f36d9 Author: w-e-w <[email protected]> Date: Wed Oct 30 09:51:41 2024 +0900 Merge pull request AUTOMATIC1111#16606 from AUTOMATIC1111/fix/vweighting Fix config for SDXL v-pred commit e6f36d9 Author: catboxanon <[email protected]> Date: Tue Oct 29 13:27:32 2024 -0400 sd_xl_v.yaml: use_checkpoint = False In accordance with AUTOMATIC1111#15803 commit 28323cf Author: w-e-w <[email protected]> Date: Wed Oct 30 02:18:38 2024 +0900 XYZ option to disable grid (AUTOMATIC1111#16416) commit 533c7b7 Author: w-e-w <[email protected]> Date: Wed Oct 30 02:13:16 2024 +0900 Fix Default system None filter logic (AUTOMATIC1111#16309) commit ac28cad Author: catboxanon <[email protected]> Date: Tue Oct 29 11:49:09 2024 -0400 Fix weighting config for SDXL v-pred Fixes a small oversight I made. commit 5206b93 Author: w-e-w <[email protected]> Date: Wed Oct 30 00:03:21 2024 +0900 InputAccordion duplicate elem_id handling (AUTOMATIC1111#16381) commit 5948143 Author: w-e-w <[email protected]> Date: Tue Oct 29 23:59:04 2024 +0900 addEventListener {passive: false} (AUTOMATIC1111#16575) commit f31faf6 Author: viking1304 <[email protected]> Date: Tue Oct 29 15:54:58 2024 +0100 pyenv-win compatibility - another approach (AUTOMATIC1111#16287) commit 14c6d6c Author: w-e-w <[email protected]> Date: Tue Oct 29 23:45:45 2024 +0900 Disable Hires checkpoint if same as First pass checkpoint (AUTOMATIC1111#16269) commit 4ec10bc Author: w-e-w <[email protected]> Date: Tue Oct 29 23:38:55 2024 +0900 Fix postprocessing_enable_in_main_ui ScriptPostprocessing elem_id (AUTOMATIC1111#16373) commit 0bf36cf Author: w-e-w <[email protected]> Date: Tue Oct 29 23:35:46 2024 +0900 extra_only / main_ui_only ScriptPostprocessing (AUTOMATIC1111#16374) commit 820fe8d Author: w-e-w <[email protected]> Date: Tue Oct 29 23:30:08 2024 +0900 Allow newline in Extra Network activation text (AUTOMATIC1111#16428) commit deb3803 Author: w-e-w <[email protected]> Date: Tue Oct 29 23:28:21 2024 +0900 image embedding data cache (AUTOMATIC1111#16556) commit 9568622 Author: w-e-w <[email protected]> Date: Tue Oct 29 20:16:15 2024 +0900 limit number of simultaneous updates shared.opts.concurrent_git_fetch_limit commit df74c3c Author: Haoming <[email protected]> Date: Tue Oct 29 14:12:42 2024 +0800 threading commit d88a3c1 Merge: 38c8043 ee0ad5c Author: w-e-w <[email protected]> Date: Sun Oct 27 10:28:23 2024 +0900 Merge pull request AUTOMATIC1111#16588 from bluelovers/patch-3 chore(js): avoid lots of `Wake Lock is not supported.` commit 38c8043 Merge: 984b952 d8ad364 Author: w-e-w <[email protected]> Date: Sun Oct 27 01:09:41 2024 +0900 Merge pull request AUTOMATIC1111#16523 from changeworld/fix/typo Fix typo: Github -> GitHub commit ee0ad5c Author: bluelovers <[email protected]> Date: Fri Oct 25 09:59:45 2024 +0800 chore(js): avoid lots of `Wake Lock is not supported.` commit 984b952 Author: w-e-w <[email protected]> Date: Thu Oct 24 22:05:51 2024 +0900 Fix DAT models download (AUTOMATIC1111#16302) commit 5865da2 Merge: bb1f391 c2ce1d3 Author: w-e-w <[email protected]> Date: Sun Oct 20 11:40:02 2024 +0900 Merge pull request AUTOMATIC1111#16569 from AUTOMATIC1111/feat/ztsnr-auto Automatically enable ztSNR based on existence of key in `state_dict` commit bb1f391 Author: w-e-w <[email protected]> Date: Sun Oct 20 09:58:53 2024 +0900 clarify readme: weget ... chmod +x webui.sh (AUTOMATIC1111#16251) commit 6a59766 Author: w-e-w <[email protected]> Date: Sun Oct 20 09:56:12 2024 +0900 Add Skip Early CFG to XYZ (AUTOMATIC1111#16282) Co-authored-by: Yevhenii Hurin <[email protected]> commit 65423d2 Author: w-e-w <[email protected]> Date: Sun Oct 20 09:52:47 2024 +0900 MIME type text/css (AUTOMATIC1111#16406) commit c2bc187 Author: w-e-w <[email protected]> Date: Sun Oct 20 09:51:59 2024 +0900 fix modalImageViewer preview/result flicker (AUTOMATIC1111#16426) commit d0b27dc Merge: bb4cbaf cbaaf0a Author: w-e-w <[email protected]> Date: Sun Oct 20 09:42:21 2024 +0900 Merge pull request AUTOMATIC1111#16300 from hello2564/fix_NGMS_pr_typo fix NGMS pr typo commit c2ce1d3 Author: catboxanon <[email protected]> Date: Sat Oct 19 19:58:13 2024 -0400 Automatically enable ztSNR based on existence of key in state_dict commit bb4cbaf Merge: c462e5a 9677b09 Author: w-e-w <[email protected]> Date: Sun Oct 20 08:27:12 2024 +0900 Merge pull request AUTOMATIC1111#16341 from gutris1/devv add break-word for geninfo in pnginfo commit c462e5a Merge: 8b19b75 c9a06d1 Author: catboxanon <[email protected]> Date: Sat Oct 19 10:51:16 2024 -0400 Merge pull request AUTOMATIC1111#16460 from AUTOMATIC1111/sd-1.5-url commit 8b19b75 Merge: 907bfb5 1ae073c Author: AUTOMATIC1111 <[email protected]> Date: Sat Oct 19 17:40:56 2024 +0300 Merge pull request AUTOMATIC1111#16567 from AUTOMATIC1111/feat/sdxl-vpred Support and automatically detect SDXL V-prediction models commit 907bfb5 Author: AUTOMATIC1111 <[email protected]> Date: Sat Oct 19 17:33:58 2024 +0300 add w-e-w and catboxanon to codeowners file commit 1ae073c Author: catboxanon <[email protected]> Date: Sat Oct 19 06:53:19 2024 -0400 Support SDXL v-pred models commit c9a06d1 Author: missionfloyd <[email protected]> Date: Tue Oct 8 16:50:39 2024 -0600 Use stable-diffusion-v1-5 repo instead commit d8ad364 Author: Takashi Takebayashi <[email protected]> Date: Thu Oct 3 14:33:37 2024 +0900 Fix typo Github -> GitHub commit f57ec2b Author: missionfloyd <[email protected]> Date: Tue Sep 3 19:58:29 2024 -0600 Update stable diffusion 1.5 URL commit 9677b09 Author: gutris1 <[email protected]> Date: Wed Aug 7 17:37:23 2024 +0700 add break-word for geninfo in pnginfo commit cbaaf0a Author: hello2564 <[email protected]> Date: Wed Jul 31 14:55:30 2024 +0800 fix NGMS pr typo commit 4823909 Merge: 850e149 82a973c Author: AUTOMATIC1111 <[email protected]> Date: Sat Jul 27 15:50:26 2024 +0300 Merge branch 'master' into dev commit 850e149 Merge: 834297b 8e0881d Author: AUTOMATIC1111 <[email protected]> Date: Sat Jul 27 15:47:49 2024 +0300 Merge pull request AUTOMATIC1111#16275 from AUTOMATIC1111/fix-image-upscale-on-cpu fix image upscale on cpu commit 8e0881d Author: w-e-w <[email protected]> Date: Sat Jul 27 21:10:20 2024 +0900 fix image upscale on cpu for some reason upscale using cpu will fail with RuntimeError: Inplace update to inference tensor outside InferenceMode switch from no_grad to inference_mode seems to have fixed it commit 834297b Merge: 9f5a98d c19d044 Author: AUTOMATIC1111 <[email protected]> Date: Sat Jul 27 07:09:08 2024 +0300 Merge branch 'master' into dev
1 parent 82a973c commit 4d43618

File tree

1,264 files changed

+176582
-224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,264 files changed

+176582
-224
lines changed

.github/workflows/on_pull_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Ruff
2323
run: pip install ruff==0.3.3
2424
- name: Run Ruff
25-
run: ruff .
25+
run: ruff check .
2626
lint-js:
2727
name: eslint
2828
runs-on: ubuntu-latest

CODEOWNERS

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
1-
* @AUTOMATIC1111
2-
3-
# if you were managing a localization and were removed from this file, this is because
4-
# the intended way to do localizations now is via extensions. See:
5-
# https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Developing-extensions
6-
# Make a repo with your localization and since you are still listed as a collaborator
7-
# you can add it to the wiki page yourself. This change is because some people complained
8-
# the git commit log is cluttered with things unrelated to almost everyone and
9-
# because I believe this is the best overall for the project to handle localizations almost
10-
# entirely without my oversight.
11-
12-
1+
* @AUTOMATIC1111 @w-e-w @catboxanon

Python/LICENSE.txt

Lines changed: 650 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
# don't import any costly modules
2+
import os
3+
import sys
4+
5+
report_url = (
6+
"https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml"
7+
)
8+
9+
10+
def warn_distutils_present():
11+
if 'distutils' not in sys.modules:
12+
return
13+
import warnings
14+
15+
warnings.warn(
16+
"Distutils was imported before Setuptools, but importing Setuptools "
17+
"also replaces the `distutils` module in `sys.modules`. This may lead "
18+
"to undesirable behaviors or errors. To avoid these issues, avoid "
19+
"using distutils directly, ensure that setuptools is installed in the "
20+
"traditional way (e.g. not an editable install), and/or make sure "
21+
"that setuptools is always imported before distutils."
22+
)
23+
24+
25+
def clear_distutils():
26+
if 'distutils' not in sys.modules:
27+
return
28+
import warnings
29+
30+
warnings.warn(
31+
"Setuptools is replacing distutils. Support for replacing "
32+
"an already imported distutils is deprecated. In the future, "
33+
"this condition will fail. "
34+
f"Register concerns at {report_url}"
35+
)
36+
mods = [
37+
name
38+
for name in sys.modules
39+
if name == "distutils" or name.startswith("distutils.")
40+
]
41+
for name in mods:
42+
del sys.modules[name]
43+
44+
45+
def enabled():
46+
"""
47+
Allow selection of distutils by environment variable.
48+
"""
49+
which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
50+
if which == 'stdlib':
51+
import warnings
52+
53+
warnings.warn(
54+
"Reliance on distutils from stdlib is deprecated. Users "
55+
"must rely on setuptools to provide the distutils module. "
56+
"Avoid importing distutils or import setuptools first, "
57+
"and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. "
58+
f"Register concerns at {report_url}"
59+
)
60+
return which == 'local'
61+
62+
63+
def ensure_local_distutils():
64+
import importlib
65+
66+
clear_distutils()
67+
68+
# With the DistutilsMetaFinder in place,
69+
# perform an import to cause distutils to be
70+
# loaded from setuptools._distutils. Ref #2906.
71+
with shim():
72+
importlib.import_module('distutils')
73+
74+
# check that submodules load as expected
75+
core = importlib.import_module('distutils.core')
76+
assert '_distutils' in core.__file__, core.__file__
77+
assert 'setuptools._distutils.log' not in sys.modules
78+
79+
80+
def do_override():
81+
"""
82+
Ensure that the local copy of distutils is preferred over stdlib.
83+
84+
See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
85+
for more motivation.
86+
"""
87+
if enabled():
88+
warn_distutils_present()
89+
ensure_local_distutils()
90+
91+
92+
class _TrivialRe:
93+
def __init__(self, *patterns) -> None:
94+
self._patterns = patterns
95+
96+
def match(self, string):
97+
return all(pat in string for pat in self._patterns)
98+
99+
100+
class DistutilsMetaFinder:
101+
def find_spec(self, fullname, path, target=None):
102+
# optimization: only consider top level modules and those
103+
# found in the CPython test suite.
104+
if path is not None and not fullname.startswith('test.'):
105+
return None
106+
107+
method_name = 'spec_for_{fullname}'.format(**locals())
108+
method = getattr(self, method_name, lambda: None)
109+
return method()
110+
111+
def spec_for_distutils(self):
112+
if self.is_cpython():
113+
return None
114+
115+
import importlib
116+
import importlib.abc
117+
import importlib.util
118+
119+
try:
120+
mod = importlib.import_module('setuptools._distutils')
121+
except Exception:
122+
# There are a couple of cases where setuptools._distutils
123+
# may not be present:
124+
# - An older Setuptools without a local distutils is
125+
# taking precedence. Ref #2957.
126+
# - Path manipulation during sitecustomize removes
127+
# setuptools from the path but only after the hook
128+
# has been loaded. Ref #2980.
129+
# In either case, fall back to stdlib behavior.
130+
return None
131+
132+
class DistutilsLoader(importlib.abc.Loader):
133+
def create_module(self, spec):
134+
mod.__name__ = 'distutils'
135+
return mod
136+
137+
def exec_module(self, module):
138+
pass
139+
140+
return importlib.util.spec_from_loader(
141+
'distutils', DistutilsLoader(), origin=mod.__file__
142+
)
143+
144+
@staticmethod
145+
def is_cpython():
146+
"""
147+
Suppress supplying distutils for CPython (build and tests).
148+
Ref #2965 and #3007.
149+
"""
150+
return os.path.isfile('pybuilddir.txt')
151+
152+
def spec_for_pip(self):
153+
"""
154+
Ensure stdlib distutils when running under pip.
155+
See pypa/pip#8761 for rationale.
156+
"""
157+
if sys.version_info >= (3, 12) or self.pip_imported_during_build():
158+
return
159+
clear_distutils()
160+
self.spec_for_distutils = lambda: None
161+
162+
@classmethod
163+
def pip_imported_during_build(cls):
164+
"""
165+
Detect if pip is being imported in a build script. Ref #2355.
166+
"""
167+
import traceback
168+
169+
return any(
170+
cls.frame_file_is_setup(frame) for frame, line in traceback.walk_stack(None)
171+
)
172+
173+
@staticmethod
174+
def frame_file_is_setup(frame):
175+
"""
176+
Return True if the indicated frame suggests a setup.py file.
177+
"""
178+
# some frames may not have __file__ (#2940)
179+
return frame.f_globals.get('__file__', '').endswith('setup.py')
180+
181+
def spec_for_sensitive_tests(self):
182+
"""
183+
Ensure stdlib distutils when running select tests under CPython.
184+
185+
python/cpython#91169
186+
"""
187+
clear_distutils()
188+
self.spec_for_distutils = lambda: None
189+
190+
sensitive_tests = (
191+
[
192+
'test.test_distutils',
193+
'test.test_peg_generator',
194+
'test.test_importlib',
195+
]
196+
if sys.version_info < (3, 10)
197+
else [
198+
'test.test_distutils',
199+
]
200+
)
201+
202+
203+
for name in DistutilsMetaFinder.sensitive_tests:
204+
setattr(
205+
DistutilsMetaFinder,
206+
f'spec_for_{name}',
207+
DistutilsMetaFinder.spec_for_sensitive_tests,
208+
)
209+
210+
211+
DISTUTILS_FINDER = DistutilsMetaFinder()
212+
213+
214+
def add_shim():
215+
DISTUTILS_FINDER in sys.meta_path or insert_shim()
216+
217+
218+
class shim:
219+
def __enter__(self) -> None:
220+
insert_shim()
221+
222+
def __exit__(self, exc: object, value: object, tb: object) -> None:
223+
_remove_shim()
224+
225+
226+
def insert_shim():
227+
sys.meta_path.insert(0, DISTUTILS_FINDER)
228+
229+
230+
def _remove_shim():
231+
try:
232+
sys.meta_path.remove(DISTUTILS_FINDER)
233+
except ValueError:
234+
pass
235+
236+
237+
if sys.version_info < (3, 12):
238+
# DistutilsMetaFinder can only be disabled in Python < 3.12 (PEP 632)
239+
remove_shim = _remove_shim
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__import__('_distutils_hack').do_override()

Python/Lib/site-packages/pip-25.0.dist-info/LICENSE.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)