From 1be2c861abbad9cf0db630ac0dc840ce7ee65517 Mon Sep 17 00:00:00 2001 From: Chaoses-Ib Date: Sun, 22 Dec 2024 20:09:07 +0800 Subject: [PATCH] fix(image): PILToImage and PILToMask https://github.com/Chaoses-Ib/ComfyScript/issues/83 Co-authored-by: Edward <65374678+mcmanusef@users.noreply.github.com> --- image.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/image.py b/image.py index 849675f..fc49f98 100644 --- a/image.py +++ b/image.py @@ -71,7 +71,7 @@ class PILToImage: CATEGORY = 'image/PIL' - def pil_images_to_images(images: Iterable[Image.Image]) -> torch.Tensor: + def pil_images_to_images(self, images: Iterable[Image.Image]) -> torch.Tensor: pil_images = images images = [] @@ -104,7 +104,7 @@ class PILToMask: CATEGORY = 'image/PIL' - def pil_images_to_masks(images: Iterable[Image.Image]) -> torch.Tensor: + def pil_images_to_masks(self, images: Iterable[Image.Image]) -> torch.Tensor: pil_images = images masks = [] diff --git a/pyproject.toml b/pyproject.toml index 0926c5b..f2a77aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ComfyUI_Ib_CustomNodes" -version = "0.2.2" +version = "0.2.3" description = 'Load Image From Path, PIL.Image' readme = "README.md" # requires-python = ">=3.8"