Skip to content

Commit

Permalink
Revert "add binary mask"
Browse files Browse the repository at this point in the history
This reverts commit fc7e3c5.
  • Loading branch information
vladmandic committed Oct 26, 2023
1 parent 4b91ee0 commit 90d2197
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ def apply_overlay(image, paste_loc, index, overlays):
return image


def create_binary_mask(image):
if image.mode == 'RGBA' and image.getextrema()[-1] != (255, 255):
image = image.split()[-1].convert("L").point(lambda x: 255 if x > 128 else 0)
else:
image = image.convert('L')
return image


def txt2img_image_conditioning(sd_model, x, width, height):
if sd_model.model.conditioning_key in {'hybrid', 'concat'}: # Inpainting models
# The "masked-image" in this case will just be all zeros since the entire image is masked.
Expand Down

0 comments on commit 90d2197

Please sign in to comment.