fix outpaint in inpaint_only+lama

the problem in inpaint_only+lama+"Resize and Fill" is fixed now.
SDXL+inpaint_only+lama+"Resize and Fill"+inpaint_fooocus_v26+"stop at 0.5 or 0.6" can be used as one SOTA outpaint method now
This commit is contained in:
lllyasviel
2024-02-14 02:45:23 -08:00
parent fa8be06613
commit d81e353d89
3 changed files with 59 additions and 40 deletions

View File

@@ -21,6 +21,7 @@ class PreprocessorInpaint(Preprocessor):
self.model_filename_filters = ['inpaint']
self.slider_resolution = PreprocessorParameter(visible=False)
self.fill_mask_with_one_when_resize_and_fill = True
self.expand_mask_when_resize_and_fill = True
def process_before_every_sampling(self, process, cond, mask, *args, **kwargs):
mask = mask.round()