fix outpaint with inpaint_global_harmonious

This commit is contained in:
lllyasviel 2024-02-07 20:31:22 -08:00
parent 49ec325f6a
commit 50035ad414

View File

@ -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()