From 50035ad41462ded3d4b4ea8644d867cabe807bb3 Mon Sep 17 00:00:00 2001 From: lllyasviel Date: Wed, 7 Feb 2024 20:31:22 -0800 Subject: [PATCH] fix outpaint with inpaint_global_harmonious --- .../forge_preprocessor_inpaint/scripts/preprocessor_inpaint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions-builtin/forge_preprocessor_inpaint/scripts/preprocessor_inpaint.py b/extensions-builtin/forge_preprocessor_inpaint/scripts/preprocessor_inpaint.py index 6bbc141f..65fad8d9 100644 --- a/extensions-builtin/forge_preprocessor_inpaint/scripts/preprocessor_inpaint.py +++ b/extensions-builtin/forge_preprocessor_inpaint/scripts/preprocessor_inpaint.py @@ -20,6 +20,7 @@ class PreprocessorInpaint(Preprocessor): self.tags = ['Inpaint'] self.model_filename_filters = ['inpaint'] self.slider_resolution = PreprocessorParameter(visible=False) + self.fill_mask_with_one_when_resize_and_fill = True def process_before_every_sampling(self, process, cond, mask, *args, **kwargs): mask = mask.round() @@ -34,7 +35,6 @@ class PreprocessorInpaintOnly(PreprocessorInpaint): self.image = None self.mask = None self.latent = None - self.fill_mask_with_one_when_resize_and_fill = True def process_before_every_sampling(self, process, cond, mask, *args, **kwargs): mask = mask.round()