mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-09 17:39:59 +00:00
fix outpaint with inpaint_global_harmonious
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user