diff --git a/modules/processing_helpers.py b/modules/processing_helpers.py index 7d536999a..e31ebb028 100644 --- a/modules/processing_helpers.py +++ b/modules/processing_helpers.py @@ -549,7 +549,7 @@ def set_latents(p): def apply_circular(enable: bool, model): if not hasattr(model, 'unet') or not hasattr(model, 'vae'): return - current = getattr(model, 'texture_tiling', 0) + current = getattr(model, 'texture_tiling', None) if isinstance(current, bool) and current == enable: return try: @@ -561,7 +561,8 @@ def apply_circular(enable: bool, model): i += 1 layer.padding_mode = 'circular' if enable else 'zeros' model.texture_tiling = enable - shared.log.debug(f'Apply texture tiling: enabled={enable} layers={i} cls={model.__class__.__name__} ') + if current is not None or enable: + shared.log.debug(f'Apply texture tiling: enabled={enable} layers={i} cls={model.__class__.__name__} ') except Exception as e: debug(f"Diffusers tiling failed: {e}") diff --git a/scripts/xyz_grid_on.py b/scripts/xyz_grid_on.py index db454b2b7..5e070ce8b 100644 --- a/scripts/xyz_grid_on.py +++ b/scripts/xyz_grid_on.py @@ -332,7 +332,6 @@ class Script(scripts.Script): y_opt.apply(pc, y, ys) z_opt.apply(pc, z, zs) - print('HERE') t0 = time.time() try: processed = processing.process_images(pc)