From 2714d29993a06c3a542eadbf577a77a6cf5d77dc Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 26 Jun 2025 09:30:15 -0400 Subject: [PATCH] fix unapply texture tiling Signed-off-by: Vladimir Mandic --- CHANGELOG.md | 1 + modules/processing_helpers.py | 3 ++- modules/sd_models.py | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96d8fc9a2..cccb4ede7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ - Fix prompt parser batch size - Fix process batch with batch count - Fix process batch double image save + - Fix unapply texture tiling ## Update for 2025-06-16 diff --git a/modules/processing_helpers.py b/modules/processing_helpers.py index b41127e69..013b32109 100644 --- a/modules/processing_helpers.py +++ b/modules/processing_helpers.py @@ -551,7 +551,8 @@ def set_latents(p): def apply_circular(enable: bool, model): if not hasattr(model, 'unet') or not hasattr(model, 'vae'): return - if getattr(model, 'texture_tiling', False) == enable: + current = getattr(model, 'texture_tiling', 0) + if isinstance(current, bool) and current == enable: return try: i = 0 diff --git a/modules/sd_models.py b/modules/sd_models.py index f6a7e53db..0530f5a5b 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -427,7 +427,6 @@ def load_diffuser_folder(model_type, pipeline, checkpoint_info, diffusers_load_c def load_diffuser_file(model_type, pipeline, checkpoint_info, diffusers_load_config, op='model'): sd_model = None - diffusers_load_config["local_files_only"] = diffusers_version < 28 # must be true for old diffusers, otherwise false but we override config for sd15/sdxl diffusers_load_config["extract_ema"] = shared.opts.diffusers_extract_ema if pipeline is None: shared.log.error(f'Load {op}: pipeline={shared.opts.diffusers_pipeline} not initialized')