From b50d978e1b730d6836cf49bd21099ab3712a27fa Mon Sep 17 00:00:00 2001 From: lllyasviel Date: Tue, 13 Feb 2024 20:45:11 -0800 Subject: [PATCH] reduce difference of tile-colorfix to webui cn --- .../forge_preprocessor_tile/scripts/preprocessor_tile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions-builtin/forge_preprocessor_tile/scripts/preprocessor_tile.py b/extensions-builtin/forge_preprocessor_tile/scripts/preprocessor_tile.py index 1a4ca76a..083a3e8f 100644 --- a/extensions-builtin/forge_preprocessor_tile/scripts/preprocessor_tile.py +++ b/extensions-builtin/forge_preprocessor_tile/scripts/preprocessor_tile.py @@ -44,7 +44,11 @@ class PreprocessorTileColorFix(PreprocessorTile): unet = process.sd_model.forge_objects.unet.clone() sigma_data = process.sd_model.forge_objects.unet.model.model_sampling.sigma_data - k = int(self.variation) + + if getattr(process, 'is_hr_pass', False): + k = int(self.variation * 2) + else: + k = int(self.variation) def block_proc(h, flag, transformer_options): location, block_id = transformer_options['block']