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

@@ -33,6 +33,7 @@ class Preprocessor:
self.corp_image_with_a1111_mask_when_in_img2img_inpaint_tab = True
self.fill_mask_with_one_when_resize_and_fill = False
self.use_soft_projection_in_hr_fix = False
self.expand_mask_when_resize_and_fill = False
def setup_model_patcher(self, model, load_device=None, offload_device=None, dtype=torch.float32, **kwargs):
if load_device is None: