From 4605f74f370d4d221ab1d50f21b72910fa6909c7 Mon Sep 17 00:00:00 2001 From: melMass Date: Mon, 9 Oct 2023 03:44:03 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20automatically=20disable?= =?UTF-8?q?=20tiling=20if=20seamless=20is=20on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Artifacts shows up again when using both on the VAE Decode --- nodes/model.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nodes/model.py b/nodes/model.py index e0193bf..4016a9a 100644 --- a/nodes/model.py +++ b/nodes/model.py @@ -2,6 +2,8 @@ import torch +from ..log import log + class VaeDecode_: """Wrapper for the 2 core decoders but also adding the sd seamless hack, taken from: FlyingFireCo/tiled_ksampler""" @@ -30,6 +32,11 @@ def decode( self, vae, samples, seamless_model, use_tiling_decoder=True, tile_size=512 ): if seamless_model: + if use_tiling_decoder: + log.error( + "You cannot use seamless mode with tiling decoder together, skipping tiling." + ) + use_tiling_decoder = False for layer in [ layer for layer in vae.first_stage_model.modules()