remove extra mask_blur
This commit is contained in:
parent
c7339bde1b
commit
0ecdb0af74
@ -404,7 +404,7 @@ class DiffusionInpaintModel(InpaintModel):
|
||||
def forward_pre_process(self, image, mask, config):
|
||||
if config.sd_mask_blur != 0:
|
||||
k = 2 * config.sd_mask_blur + 1
|
||||
mask = cv2.GaussianBlur(mask, (k, k), 0)[:, :, np.newaxis]
|
||||
mask = cv2.GaussianBlur(mask, (k, k), 0)
|
||||
|
||||
return image, mask
|
||||
|
||||
@ -412,7 +412,7 @@ class DiffusionInpaintModel(InpaintModel):
|
||||
if config.sd_match_histograms:
|
||||
result = self._match_histograms(result, image[:, :, ::-1], mask)
|
||||
|
||||
if config.sd_mask_blur != 0:
|
||||
k = 2 * config.sd_mask_blur + 1
|
||||
mask = cv2.GaussianBlur(mask, (k, k), 0)
|
||||
# if config.sd_mask_blur != 0:
|
||||
# k = 2 * config.sd_mask_blur + 1
|
||||
# mask = cv2.GaussianBlur(mask, (k, k), 0)
|
||||
return result, image, mask
|
||||
|
Loading…
Reference in New Issue
Block a user