From 8e40c5b0a9ea64634e02adf742acd1f244fe32a9 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sun, 27 Jul 2025 16:32:35 -0400 Subject: [PATCH] add bigasp25 support Signed-off-by: Vladimir Mandic --- CHANGELOG.md | 11 +++++++++-- TODO.md | 1 + modules/sd_models.py | 7 +++++++ wiki | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 576df7827..52ee42738 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ Feature highlights include: - **ModernUI** layout redesign which should make it more user friendly and easier to navigate plus several new UI themes! -- New models [WanAI Wan 2.1](https://wan.video/) for text-to-image workflows, [FreePix F-Lite](https://huggingface.co/Freepik/F-Lite), [Bria 3.2](https://huggingface.co/briaai/BRIA-3.2) +- New models [WanAI Wan 2.1](https://wan.video/) for text-to-image workflows, [FreePix F-Lite](https://huggingface.co/Freepik/F-Lite), [Bria 3.2](https://huggingface.co/briaai/BRIA-3.2), [bigASP 2.5](https://civitai.com/models/1789765?modelVersionId=2025412) - Redesigned [LTXVideo](https://vladmandic.github.io/sdnext-docs/Video) interface with support for general video models plus optimized [FramePack](https://vladmandic.github.io/sdnext-docs/FramePack) and [LTXVideo](https://vladmandic.github.io/sdnext-docs/LTX) support - Fully integrated nudity detection and optional censorship with [NudeNet](https://vladmandic.github.io/sdnext-docs/NudeNet) - New background replacement and relightning methods using **Latent Bridge Matching** and new **PixelArt** processing filter @@ -16,7 +16,7 @@ Feature highlights include: - [Wiki](https://github.com/vladmandic/automatic/wiki) & [Docs](https://vladmandic.github.io/sdnext-docs/) updates, especially new end-to-end [Parameters](https://vladmandic.github.io/sdnext-docs/Parameters/) page In this release we finally break with legacy with the removal of the original [A1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui/) codebase which has not been maintained for a while now -This plus major cleanup of codebase and external dependencies resulted in ~55k LoC (*lines-of-code*) reduction and spread over [~750 files](https://github.com/vladmandic/sdnext/pull/4017) in ~160 commits! +This plus major cleanup of codebase and external dependencies resulted in ~55k LoC (*lines-of-code*) reduction and spread over [~750 files](https://github.com/vladmandic/sdnext/pull/4017) in ~200 commits! We also switched project license to [Apache-2.0](https://github.com/vladmandic/sdnext/blob/dev/LICENSE.txt) which means that SD.Next is now fully compatible with commercial and non-commercial use and redistribution regardless of modifications! @@ -48,6 +48,12 @@ For details, see [ChangeLog](https://github.com/vladmandic/automatic/blob/master Bria is a smaller 4B parameter model built entirely on licensed data and safe for commercial use *note*: this is a gated model, you need to [accept terms](https://huggingface.co/briaai/BRIA-3.2) and set your [huggingface token](https://vladmandic.github.io/sdnext-docs/Gated/) available via *networks -> models -> reference* + - [bigASP 2.5](https://civitai.com/models/1789765) + bigASP is an experimental SDXL finetune using Flow matching method + load as usual, and leave sampler set to *Default* + or you can use following samplers: *UniPC, DPM, DEIS, SA* + required sampler settings: *prediction-method=flow-prediction*, *sigma-method=flowmatch* + recommended sampler settings: *flow-shift=1.0* - [LBM: Latent Bridge Matching](https://github.com/gojasper/LBM) very fast automatic image background replacement methods with relightning! *simple*: automatic background replacement using [BiRefNet](https://github.com/ZhengPeng7/BiRefNet) @@ -152,6 +158,7 @@ For details, see [ChangeLog](https://github.com/vladmandic/automatic/blob/master - cleanup control infotext - allow upscaling with models that have implicit VAE processing - framepack improve offloading + - improve prompt parser tokenizer loader - improve scripts error handling - improve infotext param parsing - improve extensions ui search diff --git a/TODO.md b/TODO.md index 08b77b353..94abf20be 100644 --- a/TODO.md +++ b/TODO.md @@ -41,6 +41,7 @@ Main ToDo list can be found at [GitHub projects](https://github.com/users/vladma - Remove: CodeFormer - Remove: GFPGAN - ModernUI: Lite vs Expert mode +- [Canvas](https://konvajs.org/) ### Future Considerations - [TensorRT](https://github.com/huggingface/diffusers/pull/11173) diff --git a/modules/sd_models.py b/modules/sd_models.py index 99d965bb2..3777b2cbc 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -504,6 +504,12 @@ def load_diffuser_file(model_type, pipeline, checkpoint_info, diffusers_load_con return sd_model +def set_overrides(sd_model, checkpoint_info): + if 'bigaspv25' in checkpoint_info.name.lower(): + sd_model.scheduler = diffusers.UniPCMultistepScheduler(prediction_type="flow_prediction", use_flow_sigmas=True) + shared.log.info(f'Setting override: model="{checkpoint_info.name}" component=scheduler cls={sd_model.scheduler.__class__.__name__}') + + def set_defaults(sd_model, checkpoint_info): sd_model.sd_model_hash = checkpoint_info.calculate_shorthash() # pylint: disable=attribute-defined-outside-init sd_model.sd_checkpoint_info = checkpoint_info # pylint: disable=attribute-defined-outside-init @@ -603,6 +609,7 @@ def load_diffuser(checkpoint_info=None, timer=None, op='model', revision=None): shared.log.error(f'Load {op}: name="{checkpoint_info.name if checkpoint_info is not None else None}" not loaded') return + set_overrides(sd_model, checkpoint_info) set_defaults(sd_model, checkpoint_info) if "Kandinsky" in sd_model.__class__.__name__: # need a special case diff --git a/wiki b/wiki index 8df9dbd32..5835c1602 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 8df9dbd32e89d51698b73fc00ca6f649be35b39d +Subproject commit 5835c160258e58598595f9cb6105389ababe8eaa