diff --git a/CHANGELOG.md b/CHANGELOG.md index 50bc917f1..9d1662c5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,27 +4,28 @@ - **Models** - [FLUX.1-Krea-Dev](https://www.krea.ai/blog/flux-krea-open-source-release) - new 12B base model compatible with FLUX.1-Dev from Black Forest Labs with opinionated aesthetics and aesthetic preferences in mind + new 12B base model compatible with FLUX.1-Dev from *Black Forest Labs* with opinionated aesthetics and aesthetic preferences in mind simply select in *networks -> models -> reference* - [Chroma](https://huggingface.co/lodestones/Chroma) + great model based on FLUX.1 and then redesigned and retrained by *lodestones* update with latest **v48**, **v48 Detail Calibrated** and **v46 Flash** variants simply select in *networks -> models -> reference* -- **Feature** - - **Wan** select which stage to run: *first/second/both* with configurable *boundary ration* when running both stages - in settings -> model options - - prompt parser allow explict `BOS` and `EOS` tokens in prompt - - **Nunchaku** support for *FLUX.1-Fill* and *FLUX.1-Depth* models - **UI** - new embedded docs/wiki search! **Docs** search: fully-local and works in real-time on all document pages **Wiki** search: uses github api to search online wiki pages - modernui checkbox/radio styling - **Offloading** - - changed default values for offloading based on detected gpu memory + - changed **default** values for offloading based on detected gpu memory see [offloading docs](https://vladmandic.github.io/sdnext-docs/Offload/) for details - new feature to specify which modules to offload always or never in *settings -> models & loading -> offload always/never* - new `highvram` profile provides significant performance boost on gpus with more than 24gb +- **Features** + - **Wan** select which stage to run: *first/second/both* with configurable *boundary ration* when running both stages + in settings -> model options + - prompt parser allow explict `BOS` and `EOS` tokens in prompt + - **Nunchaku** support for *FLUX.1-Fill* and *FLUX.1-Depth* models - **Fixes** - fix Wan 2.2-5B I2V workflow - fix inpaint image metadata @@ -33,6 +34,7 @@ - fix api progress reporting endpoint - fix openvino backend failing to compile - fix nunchaku fallback on unsupported model + - api set default script-name - avoid forced gc and rely on thresholds - add missing interrogate in output panel diff --git a/TODO.md b/TODO.md index 94abf20be..c50ae0e51 100644 --- a/TODO.md +++ b/TODO.md @@ -4,6 +4,9 @@ Main ToDo list can be found at [GitHub projects](https://github.com/users/vladma ## Current +- Reset quicksettings +- Gallery: force refresh on delete + ## Future Candidates - [Modular pipelines and guiders](https://github.com/huggingface/diffusers/issues/11915) @@ -26,6 +29,16 @@ Main ToDo list can be found at [GitHub projects](https://github.com/users/vladma - see - blocked by `insightface` +## ModernUI + +- Extensions tab: Full CSS +- Models tab: + - Current + - Validate: broken table + - Update: broken table + - CivitAI: redesign downloader +- History + ### Under Consideration - [IPAdapter negative guidance](https://github.com/huggingface/diffusers/discussions/7167) diff --git a/modules/api/models.py b/modules/api/models.py index 9feed99df..010467f66 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -200,7 +200,7 @@ ReqTxt2Img = PydanticModelGenerator( {"key": "sampler_index", "type": Union[int, str], "default": 0}, {"key": "sampler_name", "type": str, "default": "Default"}, {"key": "hr_sampler_name", "type": str, "default": "Same as primary"}, - {"key": "script_name", "type": Optional[str], "default": "none"}, + {"key": "script_name", "type": Optional[str], "default": ""}, {"key": "script_args", "type": list, "default": []}, {"key": "send_images", "type": bool, "default": True}, {"key": "save_images", "type": bool, "default": False}, @@ -228,7 +228,7 @@ ReqImg2Img = PydanticModelGenerator( {"key": "denoising_strength", "type": float, "default": 0.5}, {"key": "mask", "type": Optional[str], "default": None}, {"key": "include_init_images", "type": bool, "default": False, "exclude": True}, - {"key": "script_name", "type": Optional[str], "default": "none"}, + {"key": "script_name", "type": Optional[str], "default": ""}, {"key": "script_args", "type": list, "default": []}, {"key": "send_images", "type": bool, "default": True}, {"key": "save_images", "type": bool, "default": False}, diff --git a/modules/scripts.py b/modules/scripts.py index 49debeac8..61c46ad86 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -1,2 +1,19 @@ # compatibility with extensions that import scripts directly +from modules import scripts_manager from modules.scripts_manager import * # noqa: F403 # pylint: disable=wildcard-import + + +scripts_txt2img = None +scripts_img2img = None +scripts_control = None +scripts_current = None +scripts_postproc = None + + +def register_runners(): + global scripts_txt2img, scripts_img2img, scripts_control, scripts_current, scripts_postproc + scripts_txt2img = scripts_manager.scripts_txt2img + scripts_img2img = scripts_manager.scripts_img2img + scripts_control = scripts_manager.scripts_control + scripts_current = scripts_manager.scripts_current + scripts_postproc = scripts_manager.scripts_postproc diff --git a/webui.py b/webui.py index 25132d1fb..22735c6f1 100644 --- a/webui.py +++ b/webui.py @@ -19,6 +19,7 @@ import modules.devices import modules.sd_checkpoint import modules.sd_samplers import modules.scripts_manager +import modules.scripts import modules.sd_models import modules.sd_vae import modules.sd_unet @@ -106,6 +107,7 @@ def initialize(): log.info('Load extensions') t_timer, t_total = modules.scripts_manager.load_scripts() + modules.scripts.register_runners() timer.startup.record("extensions") timer.startup.records["extensions"] = t_total # scripts can reset the time log.debug(f'Extensions init time: {t_timer.summary()}') diff --git a/wiki b/wiki index ffd35365c..79b18f2c5 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit ffd35365c38ebb8e5dbede4d41207cef5c0f96d5 +Subproject commit 79b18f2c5e3438f3f564fd264fdb27bed76b0f72