...
 
Commits (9)
    https://gitcode.net/overbill1683/stable-diffusion-webui/-/commit/6c7c176dc9b2808fa897a8f52f445b48312b61bd fix mistake in #15583 2024-04-22T00:10:49+09:00 w-e-w 40751091+w-e-w@users.noreply.github.com https://gitcode.net/overbill1683/stable-diffusion-webui/-/commit/a183ea4ba773da5144e9f6b99fa48bff13078d2a undo adding scripts to sys.modules 2024-04-22T11:49:55+03:00 AUTOMATIC1111 16777216c@gmail.com https://gitcode.net/overbill1683/stable-diffusion-webui/-/commit/e4aa0c362e440cef6a6f728b2d4d695086f8cd3a Merge pull request #15587 from AUTOMATIC1111/fix-mistake-in-#15583 2024-04-22T11:50:34+03:00 AUTOMATIC1111 16777216c@gmail.com fix mistake in #15583 https://gitcode.net/overbill1683/stable-diffusion-webui/-/commit/e84703b2539c21d68881852f7e9738d76e7de26f update changelog 2024-04-22T11:59:54+03:00 AUTOMATIC1111 16777216c@gmail.com https://gitcode.net/overbill1683/stable-diffusion-webui/-/commit/61f6479ea9a85fd12b830be2dfe71a51db34b121 restore 1.8.0-style naming of scripts 2024-04-22T12:19:30+03:00 AUTOMATIC1111 16777216c@gmail.com https://gitcode.net/overbill1683/stable-diffusion-webui/-/commit/e9809de6512160501e34c54e9c8c5e5e493e306f restore 1.8.0-style naming of scripts 2024-04-22T18:23:58+09:00 w-e-w 40751091+w-e-w@users.noreply.github.com https://gitcode.net/overbill1683/stable-diffusion-webui/-/commit/3fdc3cfbbf50814d9609fb03e9730d16d6d20bb6 Merge pull request #15591 from AUTOMATIC1111/restore-1.8.0-style-naming-of-sc... 2024-04-22T12:24:06+03:00 AUTOMATIC1111 16777216c@gmail.com Restore 1.8.0 style naming of scripts https://gitcode.net/overbill1683/stable-diffusion-webui/-/commit/e837124f4b1b9dcf3caccd8d2fa5730cf3df099a changelog 2024-04-22T12:26:05+03:00 AUTOMATIC1111 16777216c@gmail.com https://gitcode.net/overbill1683/stable-diffusion-webui/-/commit/e2b177c508447cd3068993c67e165880348ff0d8 Merge branch 'dev' 2024-04-22T12:26:24+03:00 AUTOMATIC1111 16777216c@gmail.com
## 1.9.2
### Extensions and API:
* restore 1.8.0-style naming of scripts
## 1.9.1
### Minor:
* Add avif support ([#15582](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15582))
* Add filename patterns: `[sampler_scheduler]` and `[scheduler]` ([#15581](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15581))
### Extensions and API:
* undo adding scripts to sys.modules
* Add schedulers API endpoint ([#15577](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15577))
* Remove API upscaling factor limits ([#15560](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15560))
### Bug Fixes:
* Fix images do not match / Coordinate 'right' is less than 'left' ([#15534](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15534))
* fix: remove_callbacks_for_function should also remove from the ordered map ([#15533](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15533))
* fix x1 upscalers ([#15555](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15555))
* Fix cls.__module__ value in extension script ([#15532](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15532))
* fix typo in function call (eror -> error) ([#15531](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15531))
### Other:
* Hide 'No Image data blocks found.' message ([#15567](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15567))
* Allow webui.sh to be runnable from arbitrary directories containing a .git file ([#15561](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15561))
* Compatibility with Debian 11, Fedora 34+ and openSUSE 15.4+ ([#15544](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15544))
* numpy DeprecationWarning product -> prod ([#15547](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15547))
* get_crop_region_v2 ([#15583](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15583), [#15587](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15587))
## 1.9.0
### Features:
......@@ -85,7 +116,6 @@
* Fix extra-single-image API not doing upscale failed ([#15465](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15465))
* error handling paste_field callables ([#15470](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15470))
### Hardware:
* Add training support and change lspci for Ascend NPU ([#14981](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14981))
* Update to ROCm5.7 and PyTorch ([#14820](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14820))
......
from modules import scripts
from modules.shared import opts
xyz_grid = [x for x in scripts.scripts_data if x.script_class.__module__ == "scripts.xyz_grid"][0].module
xyz_grid = [x for x in scripts.scripts_data if x.script_class.__module__ == "xyz_grid.py"][0].module
def int_applier(value_name:str, min_range:int = -1, max_range:int = -1):
"""
......
......@@ -1617,7 +1617,6 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
x1, y1, x2, y2 = crop_region
mask = mask.crop(crop_region)
image_mask = images.resize_image(2, mask, self.width, self.height)
self.inpaint_full_res = False
self.paste_to = (x1, y1, x2-x1, y2-y1)
self.extra_generation_params["Inpaint area"] = "Only masked"
self.extra_generation_params["Masked area padding"] = self.inpaint_full_res_padding
......@@ -1625,6 +1624,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
crop_region = None
image_mask = None
self.mask_for_overlay = None
self.inpaint_full_res = False
massage = 'Unable to perform "Inpaint Only mask" because mask is blank, switch to img2img mode.'
model_hijack.comments.append(massage)
logging.info(massage)
......
......@@ -2,20 +2,17 @@ import os
import importlib.util
from modules import errors
import sys
loaded_scripts = {}
def load_module(path):
module_name, _ = os.path.splitext(os.path.basename(path))
full_module_name = "scripts." + module_name
module_spec = importlib.util.spec_from_file_location(full_module_name, path)
module_spec = importlib.util.spec_from_file_location(os.path.basename(path), path)
module = importlib.util.module_from_spec(module_spec)
module_spec.loader.exec_module(module)
loaded_scripts[path] = module
sys.modules[full_module_name] = module
return module
......