Browse Source

Merge branch 'fix-LoadImageMask' of https://github.com/flyingshutter/ComfyUI

pull/486/head
comfyanonymous 2 years ago
parent
commit
f15b4a7ffa
  1. 2
      nodes.py

2
nodes.py

@ -940,6 +940,8 @@ class LoadImageMask:
input_dir = folder_paths.get_input_directory()
image_path = os.path.join(input_dir, image)
i = Image.open(image_path)
if i.getbands() != ("R", "G", "B", "A"):
i = i.convert("RGBA")
mask = None
c = channel[0].upper()
if c in i.getbands():

Loading…
Cancel
Save