diff --git a/py/image_channel_merge.py b/py/image_channel_merge.py index 1d504d3..8452e58 100644 --- a/py/image_channel_merge.py +++ b/py/image_channel_merge.py @@ -46,7 +46,7 @@ class ImageChannelMerge: for c in channel_4: c4_images.append(torch.unsqueeze(c, 0)) else: - c4_images.append(Image.new('L', size=(width, height), color='white')) + c4_images.append(pil2tensor(Image.new('L', size=(width, height), color='white'))) max_batch = max(len(c1_images), len(c2_images), len(c3_images), len(c4_images)) for i in range(max_batch): diff --git a/pyproject.toml b/pyproject.toml index 254f53b..5b79d16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_layerstyle" description = "A set of nodes for ComfyUI it generate image like Adobe Photoshop's Layer Style. the Drop Shadow is first completed node, and follow-up work is in progress." -version = "1.0.21" +version = "1.0.22" license = "MIT" dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "opencv-contrib-python", "pymatting", "segment_anything", "timm", "addict", "yapf", "colour-science", "wget", "mediapipe", "loguru", "typer_config", "fastapi", "rich", "google-generativeai", "diffusers", "omegaconf", "tqdm", "transformers", "kornia", "image-reward", "ultralytics", "blend_modes", "blind-watermark", "qrcode", "pyzbar", "transparent-background", "huggingface_hub", "psd-tools"]