From 33d9f817de53f80bcd2631f0dcee13066975f829 Mon Sep 17 00:00:00 2001 From: chflame Date: Sun, 24 Mar 2024 22:05:02 +0800 Subject: [PATCH] remove attribute OUTPUT_NODE of all nodes --- py/TextJoin.py | 1 - py/birefnet_ultra.py | 3 +-- py/channel_shake.py | 1 - py/color_adapter.py | 1 - py/color_correct_HSV.py | 1 - py/color_correct_LAB.py | 1 - py/color_correct_LUTapply.py | 1 - py/color_correct_RGB.py | 1 - py/color_correct_YUV.py | 1 - py/color_correct_brightness&contrast.py | 1 - py/color_correct_exposure.py | 1 - py/color_correct_gamma.py | 1 - py/color_correct_shadow&highlight.py | 1 - py/color_image.py | 1 - py/color_image_v2.py | 1 - py/color_map.py | 1 - py/color_overlay.py | 1 - py/color_picker.py | 1 - py/create_gradient_mask.py | 1 - py/crop_by_mask.py | 1 - py/crop_by_mask_v2.py | 1 - py/drop_shadow.py | 1 - py/extand_canvas.py | 1 - py/film_post.py | 1 - py/gaussian_blur.py | 1 - py/get_color_tone.py | 1 - py/get_image_size.py | 1 - py/gradient_image.py | 1 - py/gradient_image_v2.py | 1 - py/gradient_overlay.py | 1 - py/image_auto_crop.py | 1 - py/image_auto_crop_v2.py | 1 - py/image_blend.py | 1 - py/image_blend_advance.py | 1 - py/image_channel_merge.py | 1 - py/image_channel_split.py | 1 - py/image_combine_alpha.py | 1 - py/image_hub.py | 1 - py/image_mask_scale_as.py | 1 - py/image_opacity.py | 1 - py/image_remove_alpha.py | 1 - py/image_scale_by_aspect_ratio.py | 1 - py/image_scale_by_aspect_ratio_v2.py | 1 - py/image_scale_restore.py | 1 - py/image_scale_restore_v2.py | 1 - py/image_shift.py | 1 - py/inner_glow.py | 1 - py/inner_shadow.py | 1 - py/lama.py | 1 - py/layer_image_transform.py | 1 - py/layer_mask_transform.py | 1 - py/light_leak.py | 1 - py/mask_box_detect.py | 1 - py/mask_by_different.py | 1 - py/mask_edge_shrink.py | 1 - py/mask_gradient.py | 1 - py/mask_grow.py | 1 - py/mask_invert.py | 1 - py/mask_motion_blur.py | 1 - py/mask_preview.py | 1 + py/mask_stroke.py | 1 - py/motion_blur.py | 1 - py/outer_glow.py | 1 - py/person_mask_Ultra.py | 1 - py/person_mask_ultra_v2.py | 1 - py/pixel_spread.py | 1 - py/prompt_embellish.py | 1 - py/prompt_tagger.py | 1 - py/restore_crop_box.py | 1 - py/segment_anything_ultra.py | 1 - py/segment_anything_ultra_v2.py | 1 - py/shadow&highlight_mask.py | 1 - py/sharp&soft.py | 1 - py/simple_text_image.py | 1 - py/skin_beauty.py | 1 - py/soft_light.py | 1 - py/stroke.py | 1 - py/text_image.py | 1 - py/water_color.py | 1 - py/xy2percent.py | 1 - 80 files changed, 2 insertions(+), 80 deletions(-) diff --git a/py/TextJoin.py b/py/TextJoin.py index cde334f..cd140d1 100644 --- a/py/TextJoin.py +++ b/py/TextJoin.py @@ -24,7 +24,6 @@ class TextJoin: RETURN_NAMES = ("text",) FUNCTION = "text_join" CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def text_join(self, **kwargs): diff --git a/py/birefnet_ultra.py b/py/birefnet_ultra.py index e74d2a5..e8413fe 100644 --- a/py/birefnet_ultra.py +++ b/py/birefnet_ultra.py @@ -1,11 +1,10 @@ -import torch from .imagefunc import * +import torch import torch.nn as nn from torchvision import transforms from .BiRefNet.baseline import BiRefNet -# from .BiRefNet import config from .BiRefNet.config import Config NODE_NAME = 'BiRefNetUltra' diff --git a/py/channel_shake.py b/py/channel_shake.py index c39fe17..fe8acdf 100644 --- a/py/channel_shake.py +++ b/py/channel_shake.py @@ -25,7 +25,6 @@ class ChannelShake: RETURN_NAMES = ("image",) FUNCTION = 'channel_shake' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def channel_shake(self, image, distance, angle, mode, ): diff --git a/py/color_adapter.py b/py/color_adapter.py index c02fb08..2778cbb 100644 --- a/py/color_adapter.py +++ b/py/color_adapter.py @@ -24,7 +24,6 @@ class ColorAdapter: RETURN_NAMES = ("image",) FUNCTION = 'color_adapter' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_adapter(self, image, color_ref_image, opacity): ret_images = [] diff --git a/py/color_correct_HSV.py b/py/color_correct_HSV.py index 76f04f1..5c841a8 100644 --- a/py/color_correct_HSV.py +++ b/py/color_correct_HSV.py @@ -25,7 +25,6 @@ class ColorCorrectHSV: RETURN_NAMES = ("image",) FUNCTION = 'color_correct_HSV' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_correct_HSV(self, image, H, S, V): diff --git a/py/color_correct_LAB.py b/py/color_correct_LAB.py index 1c726c1..684b5e2 100644 --- a/py/color_correct_LAB.py +++ b/py/color_correct_LAB.py @@ -25,7 +25,6 @@ class ColorCorrectLAB: RETURN_NAMES = ("image",) FUNCTION = 'color_correct_LAB' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_correct_LAB(self, image, L, A, B): diff --git a/py/color_correct_LUTapply.py b/py/color_correct_LUTapply.py index 930817b..15dedea 100644 --- a/py/color_correct_LUTapply.py +++ b/py/color_correct_LUTapply.py @@ -24,7 +24,6 @@ class ColorCorrectLUTapply: RETURN_NAMES = ("image",) FUNCTION = 'color_correct_LUTapply' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_correct_LUTapply(self, image, LUT, color_space): ret_images = [] diff --git a/py/color_correct_RGB.py b/py/color_correct_RGB.py index d97bf67..76bb75e 100644 --- a/py/color_correct_RGB.py +++ b/py/color_correct_RGB.py @@ -25,7 +25,6 @@ class ColorCorrectRGB: RETURN_NAMES = ("image",) FUNCTION = 'color_correct_RGB' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_correct_RGB(self, image, R, G, B): diff --git a/py/color_correct_YUV.py b/py/color_correct_YUV.py index 3f666f9..91368a8 100644 --- a/py/color_correct_YUV.py +++ b/py/color_correct_YUV.py @@ -25,7 +25,6 @@ class ColorCorrectYUV: RETURN_NAMES = ("image",) FUNCTION = 'color_correct_YUV' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_correct_YUV(self, image, Y, U, V): diff --git a/py/color_correct_brightness&contrast.py b/py/color_correct_brightness&contrast.py index f6da08a..1ead640 100644 --- a/py/color_correct_brightness&contrast.py +++ b/py/color_correct_brightness&contrast.py @@ -25,7 +25,6 @@ class ColorCorrectBrightnessAndContrast: RETURN_NAMES = ("image",) FUNCTION = 'color_correct_brightness_and_contrast' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_correct_brightness_and_contrast(self, image, brightness, contrast, saturation): diff --git a/py/color_correct_exposure.py b/py/color_correct_exposure.py index 08daa4b..c75aa19 100644 --- a/py/color_correct_exposure.py +++ b/py/color_correct_exposure.py @@ -23,7 +23,6 @@ class ColorCorrectExposure: RETURN_NAMES = ("image",) FUNCTION = 'color_correct_exposure' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_correct_exposure(self, image, exposure): diff --git a/py/color_correct_gamma.py b/py/color_correct_gamma.py index eb1dc4b..9e1b051 100644 --- a/py/color_correct_gamma.py +++ b/py/color_correct_gamma.py @@ -23,7 +23,6 @@ class ColorCorrectGamma: RETURN_NAMES = ("image",) FUNCTION = 'color_correct_gamma' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_correct_gamma(self, image, gamma): diff --git a/py/color_correct_shadow&highlight.py b/py/color_correct_shadow&highlight.py index 7ec84c4..45ce6c6 100644 --- a/py/color_correct_shadow&highlight.py +++ b/py/color_correct_shadow&highlight.py @@ -39,7 +39,6 @@ class ColorCorrectShadowAndHighlight: RETURN_NAMES = ("image",) FUNCTION = 'color_shadow_and_highlight' CATEGORY = '😺dzNodes/LayerColor' - OUTPUT_NODE = True def color_shadow_and_highlight(self, image, shadow_brightness, shadow_saturation, diff --git a/py/color_image.py b/py/color_image.py index 00be88f..a5802e3 100644 --- a/py/color_image.py +++ b/py/color_image.py @@ -22,7 +22,6 @@ class ColorImage: RETURN_NAMES = ("image", ) FUNCTION = 'color_image' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def color_image(self, width, height, color, ): diff --git a/py/color_image_v2.py b/py/color_image_v2.py index 1bf649a..701a130 100644 --- a/py/color_image_v2.py +++ b/py/color_image_v2.py @@ -29,7 +29,6 @@ class ColorImageV2: RETURN_NAMES = ("image", ) FUNCTION = 'color_image_v2' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def color_image_v2(self, size, custom_width, custom_height, color, size_as=None ): diff --git a/py/color_map.py b/py/color_map.py index dab1575..76ec18a 100644 --- a/py/color_map.py +++ b/py/color_map.py @@ -29,7 +29,6 @@ class ColorMap: RETURN_NAMES = ("image",) FUNCTION = 'color_map' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def color_map(self, image, color_map, opacity ): diff --git a/py/color_overlay.py b/py/color_overlay.py index c779fa5..7fd01c4 100644 --- a/py/color_overlay.py +++ b/py/color_overlay.py @@ -28,7 +28,6 @@ class ColorOverlay: RETURN_NAMES = ("image",) FUNCTION = 'color_overlay' CATEGORY = '😺dzNodes/LayerStyle' - OUTPUT_NODE = True def color_overlay(self, background_image, layer_image, invert_mask, blend_mode, opacity, color, diff --git a/py/color_picker.py b/py/color_picker.py index 07de9ce..7561e14 100644 --- a/py/color_picker.py +++ b/py/color_picker.py @@ -22,7 +22,6 @@ class ColorPicker: RETURN_NAMES = ("value",) FUNCTION = 'picker' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def picker(self, color, mode): ret = color diff --git a/py/create_gradient_mask.py b/py/create_gradient_mask.py index a1a9840..52d0598 100644 --- a/py/create_gradient_mask.py +++ b/py/create_gradient_mask.py @@ -29,7 +29,6 @@ class CreateGradientMask: RETURN_NAMES = ("mask", ) FUNCTION = 'create_gradient_mask' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def create_gradient_mask(self, width, height, gradient_side, gradient_scale, gradient_offset, opacity, size_as=None): diff --git a/py/crop_by_mask.py b/py/crop_by_mask.py index b1d01cb..5a0ad01 100644 --- a/py/crop_by_mask.py +++ b/py/crop_by_mask.py @@ -29,7 +29,6 @@ class CropByMask: RETURN_NAMES = ("croped_image", "croped_mask", "crop_box", "box_preview") FUNCTION = 'crop_by_mask' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def crop_by_mask(self, image, mask_for_crop, invert_mask, detect, top_reserve, bottom_reserve, left_reserve, right_reserve diff --git a/py/crop_by_mask_v2.py b/py/crop_by_mask_v2.py index 707a441..7b7d8eb 100644 --- a/py/crop_by_mask_v2.py +++ b/py/crop_by_mask_v2.py @@ -30,7 +30,6 @@ class CropByMaskV2: RETURN_NAMES = ("croped_image", "croped_mask", "crop_box", "box_preview") FUNCTION = 'crop_by_mask_v2' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def crop_by_mask_v2(self, image, mask, invert_mask, detect, top_reserve, bottom_reserve, diff --git a/py/drop_shadow.py b/py/drop_shadow.py index cd19ddd..def791c 100644 --- a/py/drop_shadow.py +++ b/py/drop_shadow.py @@ -32,7 +32,6 @@ class DropShadow: RETURN_NAMES = ("image",) FUNCTION = 'drop_shadow' CATEGORY = '😺dzNodes/LayerStyle' - OUTPUT_NODE = True def drop_shadow(self, background_image, layer_image, invert_mask, blend_mode, opacity, distance_x, distance_y, diff --git a/py/extand_canvas.py b/py/extand_canvas.py index d044fa2..19cbcb5 100644 --- a/py/extand_canvas.py +++ b/py/extand_canvas.py @@ -29,7 +29,6 @@ class ExtendCanvas: RETURN_NAMES = ("image", "mask") FUNCTION = 'extend_canvas' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def extend_canvas(self, image, invert_mask, top, bottom, left, right, color, diff --git a/py/film_post.py b/py/film_post.py index fd688ee..f11d732 100644 --- a/py/film_post.py +++ b/py/film_post.py @@ -36,7 +36,6 @@ class Film: RETURN_NAMES = ("image",) FUNCTION = 'film' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def film(self, image, center_x, center_y, saturation, vignette_intensity, grain_power, grain_scale, grain_sat, grain_shadows, grain_highs, diff --git a/py/gaussian_blur.py b/py/gaussian_blur.py index 7bd76c9..7e63ca8 100644 --- a/py/gaussian_blur.py +++ b/py/gaussian_blur.py @@ -23,7 +23,6 @@ class GaussianBlur: RETURN_NAMES = ("image",) FUNCTION = 'gaussian_blur' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def gaussian_blur(self, image, blur): diff --git a/py/get_color_tone.py b/py/get_color_tone.py index 9d2dde8..87ac4cb 100644 --- a/py/get_color_tone.py +++ b/py/get_color_tone.py @@ -21,7 +21,6 @@ class GetColorTone: RETURN_NAMES = ("RGB color in HEX", "HSV color in list") FUNCTION = 'get_color_tone' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def get_color_tone(self, image, mode,): if image.shape[0] > 0: diff --git a/py/get_image_size.py b/py/get_image_size.py index bbd3b54..45f3141 100644 --- a/py/get_image_size.py +++ b/py/get_image_size.py @@ -20,7 +20,6 @@ class GetImageSize: RETURN_NAMES = ("width", "height", "original_size") FUNCTION = 'get_image_size' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def get_image_size(self, image,): diff --git a/py/gradient_image.py b/py/gradient_image.py index 46370d7..a072bfc 100644 --- a/py/gradient_image.py +++ b/py/gradient_image.py @@ -24,7 +24,6 @@ class GradientImage: RETURN_NAMES = ("image", ) FUNCTION = 'gradient_image' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def gradient_image(self, width, height, angle, start_color, end_color, ): diff --git a/py/gradient_image_v2.py b/py/gradient_image_v2.py index 9be2188..a7b817b 100644 --- a/py/gradient_image_v2.py +++ b/py/gradient_image_v2.py @@ -33,7 +33,6 @@ class GradientImageV2: RETURN_NAMES = ("image", ) FUNCTION = 'gradient_image_v2' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def gradient_image_v2(self, size, custom_width, custom_height, angle, start_color, end_color, size_as=None): diff --git a/py/gradient_overlay.py b/py/gradient_overlay.py index 302c5a6..8bfae52 100644 --- a/py/gradient_overlay.py +++ b/py/gradient_overlay.py @@ -32,7 +32,6 @@ class GradientOverlay: RETURN_NAMES = ("image",) FUNCTION = 'gradient_overlay' CATEGORY = '😺dzNodes/LayerStyle' - OUTPUT_NODE = True def gradient_overlay(self, background_image, layer_image, invert_mask, blend_mode, opacity, diff --git a/py/image_auto_crop.py b/py/image_auto_crop.py index e789570..92a5648 100644 --- a/py/image_auto_crop.py +++ b/py/image_auto_crop.py @@ -39,7 +39,6 @@ class ImageAutoCrop: RETURN_NAMES = ("cropped_image", "box_preview", "cropped_mask",) FUNCTION = 'image_auto_crop' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_auto_crop(self, image, detect, border_reserve, aspect_ratio, proportional_width, proportional_height, background_color, ultra_detail_range, scale_to_longest_side, longest_side, diff --git a/py/image_auto_crop_v2.py b/py/image_auto_crop_v2.py index 0e8ae7b..7aa7776 100644 --- a/py/image_auto_crop_v2.py +++ b/py/image_auto_crop_v2.py @@ -47,7 +47,6 @@ class ImageAutoCropV2: RETURN_NAMES = ("cropped_image", "box_preview", "cropped_mask",) FUNCTION = 'image_auto_crop_v2' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_auto_crop_v2(self, image, fill_background, background_color, aspect_ratio, proportional_width, proportional_height, diff --git a/py/image_blend.py b/py/image_blend.py index 52e1491..d204678 100644 --- a/py/image_blend.py +++ b/py/image_blend.py @@ -27,7 +27,6 @@ class ImageBlend: RETURN_NAMES = ("image",) FUNCTION = 'image_blend' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_blend(self, background_image, layer_image, invert_mask, blend_mode, opacity, diff --git a/py/image_blend_advance.py b/py/image_blend_advance.py index d39bdb1..892f582 100644 --- a/py/image_blend_advance.py +++ b/py/image_blend_advance.py @@ -37,7 +37,6 @@ class ImageBlendAdvance: RETURN_NAMES = ("image", "mask") FUNCTION = 'image_blend_advance' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_blend_advance(self, background_image, layer_image, invert_mask, blend_mode, opacity, diff --git a/py/image_channel_merge.py b/py/image_channel_merge.py index 963a444..1d504d3 100644 --- a/py/image_channel_merge.py +++ b/py/image_channel_merge.py @@ -26,7 +26,6 @@ class ImageChannelMerge: RETURN_NAMES = ("image",) FUNCTION = 'image_channel_merge' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_channel_merge(self, channel_1, channel_2, channel_3, mode, channel_4=None): diff --git a/py/image_channel_split.py b/py/image_channel_split.py index 161fb94..bdf4fe7 100644 --- a/py/image_channel_split.py +++ b/py/image_channel_split.py @@ -23,7 +23,6 @@ class ImageChannelSplit: RETURN_NAMES = ("channel_1", "channel_2", "channel_3", "channel_4",) FUNCTION = 'image_channel_split' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_channel_split(self, image, mode): diff --git a/py/image_combine_alpha.py b/py/image_combine_alpha.py index bac7e34..a2bc3b4 100644 --- a/py/image_combine_alpha.py +++ b/py/image_combine_alpha.py @@ -23,7 +23,6 @@ class ImageCombineAlpha: RETURN_NAMES = ("RGBA_image",) FUNCTION = 'image_combine_alpha' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_combine_alpha(self, RGB_image, mask): diff --git a/py/image_hub.py b/py/image_hub.py index 4adbf7c..13b344f 100644 --- a/py/image_hub.py +++ b/py/image_hub.py @@ -41,7 +41,6 @@ class ImageHub: RETURN_NAMES = ("image", "mask") FUNCTION = 'image_hub' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_hub(self, output, random_output, input1_image=None, input1_mask=None, diff --git a/py/image_mask_scale_as.py b/py/image_mask_scale_as.py index fd65984..342199b 100644 --- a/py/image_mask_scale_as.py +++ b/py/image_mask_scale_as.py @@ -31,7 +31,6 @@ class ImageMaskScaleAs: RETURN_NAMES = ("image", "mask", "original_size") FUNCTION = 'image_mask_scale_as' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_mask_scale_as(self, scale_as, fit, method, image=None, mask = None, diff --git a/py/image_opacity.py b/py/image_opacity.py index 8919e0c..a089738 100644 --- a/py/image_opacity.py +++ b/py/image_opacity.py @@ -25,7 +25,6 @@ class ImageOpacity: RETURN_NAMES = ("image", "mask",) FUNCTION = 'image_opacity' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_opacity(self, image, opacity, invert_mask, mask=None, diff --git a/py/image_remove_alpha.py b/py/image_remove_alpha.py index 70cc713..f96f94f 100644 --- a/py/image_remove_alpha.py +++ b/py/image_remove_alpha.py @@ -24,7 +24,6 @@ class ImageRemoveAlpha: RETURN_NAMES = ("RGB_image", ) FUNCTION = 'image_remove_alpha' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_remove_alpha(self, RGBA_image, fill_background, background_color): diff --git a/py/image_scale_by_aspect_ratio.py b/py/image_scale_by_aspect_ratio.py index ff77925..2516fc2 100644 --- a/py/image_scale_by_aspect_ratio.py +++ b/py/image_scale_by_aspect_ratio.py @@ -37,7 +37,6 @@ class ImageScaleByAspectRatio: RETURN_NAMES = ("image", "mask", "original_size") FUNCTION = 'image_scale_by_aspect_ratio' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_scale_by_aspect_ratio(self, aspect_ratio, proportional_width, proportional_height, fit, method, round_to_multiple, scale_to_longest_side, longest_side, diff --git a/py/image_scale_by_aspect_ratio_v2.py b/py/image_scale_by_aspect_ratio_v2.py index 772320e..ae1d14a 100644 --- a/py/image_scale_by_aspect_ratio_v2.py +++ b/py/image_scale_by_aspect_ratio_v2.py @@ -37,7 +37,6 @@ class ImageScaleByAspectRatioV2: RETURN_NAMES = ("image", "mask", "original_size") FUNCTION = 'image_scale_by_aspect_ratio' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_scale_by_aspect_ratio(self, aspect_ratio, proportional_width, proportional_height, fit, method, round_to_multiple, scale_to_side, scale_to_length, diff --git a/py/image_scale_restore.py b/py/image_scale_restore.py index b0f06c1..28df761 100644 --- a/py/image_scale_restore.py +++ b/py/image_scale_restore.py @@ -28,7 +28,6 @@ class ImageScaleRestore: RETURN_NAMES = ("image", "mask", "original_size") FUNCTION = 'image_scale_restore' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_scale_restore(self, image, scale, method, scale_by_longest_side, longest_side, diff --git a/py/image_scale_restore_v2.py b/py/image_scale_restore_v2.py index 721e900..cf8f831 100644 --- a/py/image_scale_restore_v2.py +++ b/py/image_scale_restore_v2.py @@ -29,7 +29,6 @@ class ImageScaleRestoreV2: RETURN_NAMES = ("image", "mask", "original_size") FUNCTION = 'image_scale_restore' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_scale_restore(self, image, scale, method, scale_by, scale_by_length, diff --git a/py/image_shift.py b/py/image_shift.py index 4fd78e5..e924bbe 100644 --- a/py/image_shift.py +++ b/py/image_shift.py @@ -29,7 +29,6 @@ class ImageShift: RETURN_NAMES = ("image", "mask", "border_mask") FUNCTION = 'image_shift' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def image_shift(self, image, shift_x, shift_y, cyclic, background_color, diff --git a/py/inner_glow.py b/py/inner_glow.py index d1a73b7..fa299c6 100644 --- a/py/inner_glow.py +++ b/py/inner_glow.py @@ -34,7 +34,6 @@ class InnerGlow: RETURN_NAMES = ("image",) FUNCTION = 'inner_glow' CATEGORY = '😺dzNodes/LayerStyle' - OUTPUT_NODE = True def inner_glow(self, background_image, layer_image, invert_mask, blend_mode, opacity, diff --git a/py/inner_shadow.py b/py/inner_shadow.py index 6045a8e..1ec7647 100644 --- a/py/inner_shadow.py +++ b/py/inner_shadow.py @@ -33,7 +33,6 @@ class InnerShadow: RETURN_NAMES = ("image",) FUNCTION = 'inner_shadow' CATEGORY = '😺dzNodes/LayerStyle' - OUTPUT_NODE = True def inner_shadow(self, background_image, layer_image, invert_mask, blend_mode, opacity, distance_x, distance_y, diff --git a/py/lama.py b/py/lama.py index de2d678..eac02cc 100644 --- a/py/lama.py +++ b/py/lama.py @@ -33,7 +33,6 @@ class LaMa: RETURN_NAMES = ("image",) FUNCTION = 'lama' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def lama(self, image, mask, lama_model, device, invert_mask, mask_grow, mask_blur): diff --git a/py/layer_image_transform.py b/py/layer_image_transform.py index 7ac5752..befb6b5 100644 --- a/py/layer_image_transform.py +++ b/py/layer_image_transform.py @@ -31,7 +31,6 @@ class LayerImageTransform: RETURN_NAMES = ("image",) FUNCTION = 'layer_image_transform' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def layer_image_transform(self, image, x, y, mirror, scale, aspect_ratio, rotate, transform_method, anti_aliasing, diff --git a/py/layer_mask_transform.py b/py/layer_mask_transform.py index 6e40a59..e9ca731 100644 --- a/py/layer_mask_transform.py +++ b/py/layer_mask_transform.py @@ -31,7 +31,6 @@ class LayerMaskTransform: RETURN_NAMES = ("mask",) FUNCTION = 'layer_mask_transform' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def layer_mask_transform(self, mask, x, y, mirror, scale, aspect_ratio, rotate, transform_method, anti_aliasing, diff --git a/py/light_leak.py b/py/light_leak.py index f25ac9f..1a63968 100644 --- a/py/light_leak.py +++ b/py/light_leak.py @@ -38,7 +38,6 @@ class LightLeak: RETURN_NAMES = ("image",) FUNCTION = 'light_leak' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def light_leak(self, image, light, corner, hue, saturation, opacity): diff --git a/py/mask_box_detect.py b/py/mask_box_detect.py index c242916..f9c74e0 100644 --- a/py/mask_box_detect.py +++ b/py/mask_box_detect.py @@ -26,7 +26,6 @@ class MaskBoxDetect: RETURN_NAMES = ("box_preview", "x_percent", "y_percent", "width", "height", "x", "y",) FUNCTION = 'mask_box_detect' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def mask_box_detect(self,mask, detect, x_adjust, y_adjust, scale_adjust): diff --git a/py/mask_by_different.py b/py/mask_by_different.py index b20ed39..6917a80 100644 --- a/py/mask_by_different.py +++ b/py/mask_by_different.py @@ -27,7 +27,6 @@ class MaskByDifferent: RETURN_NAMES = ("mask",) FUNCTION = 'mask_by_different' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def mask_by_different(self, image_1, image_2, gain, fix_gap, fix_threshold, main_subject_detect): diff --git a/py/mask_edge_shrink.py b/py/mask_edge_shrink.py index fca81bf..5f3cdc7 100644 --- a/py/mask_edge_shrink.py +++ b/py/mask_edge_shrink.py @@ -27,7 +27,6 @@ class MaskEdgeShrink: RETURN_NAMES = ("mask",) FUNCTION = 'mask_edge_shrink' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def mask_edge_shrink(self, mask, invert_mask, shrink_level, soft, edge_shrink, edge_reserve): diff --git a/py/mask_gradient.py b/py/mask_gradient.py index 85ce26e..6eba9b3 100644 --- a/py/mask_gradient.py +++ b/py/mask_gradient.py @@ -29,7 +29,6 @@ class MaskGradient: RETURN_NAMES = ("mask",) FUNCTION = 'mask_gradient' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def mask_gradient(self, mask, invert_mask, gradient_side, gradient_scale, gradient_offset, opacity, ): diff --git a/py/mask_grow.py b/py/mask_grow.py index b41d515..21ced80 100644 --- a/py/mask_grow.py +++ b/py/mask_grow.py @@ -25,7 +25,6 @@ class MaskGrow: RETURN_NAMES = ("mask",) FUNCTION = 'mask_grow' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def mask_grow(self, mask, invert_mask, grow, blur,): diff --git a/py/mask_invert.py b/py/mask_invert.py index 72c2ab7..e46a4f7 100644 --- a/py/mask_invert.py +++ b/py/mask_invert.py @@ -21,7 +21,6 @@ class MaskInvert: RETURN_NAMES = ("mask",) FUNCTION = 'mask_invert' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def mask_invert(self,mask): l_masks = [] diff --git a/py/mask_motion_blur.py b/py/mask_motion_blur.py index d602aba..b649a1a 100644 --- a/py/mask_motion_blur.py +++ b/py/mask_motion_blur.py @@ -25,7 +25,6 @@ class MaskMotionBlur: RETURN_NAMES = ("mask",) FUNCTION = 'mask_motion_blur' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def mask_motion_blur(self, mask, invert_mask, blur, angle,): diff --git a/py/mask_preview.py b/py/mask_preview.py index 67137dc..0a29a07 100644 --- a/py/mask_preview.py +++ b/py/mask_preview.py @@ -18,6 +18,7 @@ class MaskPreview(SaveImage): FUNCTION = "mask_preview" CATEGORY = '😺dzNodes/LayerMask' + OUTPUT_NODE = True def mask_preview(self, mask): if mask.dim() == 2: diff --git a/py/mask_stroke.py b/py/mask_stroke.py index 75d474e..3e576b6 100644 --- a/py/mask_stroke.py +++ b/py/mask_stroke.py @@ -26,7 +26,6 @@ class MaskStroke: RETURN_NAMES = ("mask",) FUNCTION = 'mask_stroke' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def mask_stroke(self, mask, invert_mask, stroke_grow, stroke_width, blur,): diff --git a/py/motion_blur.py b/py/motion_blur.py index 2396c50..3e4c0eb 100644 --- a/py/motion_blur.py +++ b/py/motion_blur.py @@ -24,7 +24,6 @@ class MotionBlur: RETURN_NAMES = ("image",) FUNCTION = 'motion_blur' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def motion_blur(self, image, angle, blur): diff --git a/py/outer_glow.py b/py/outer_glow.py index 4f6d543..a4f1f54 100644 --- a/py/outer_glow.py +++ b/py/outer_glow.py @@ -34,7 +34,6 @@ class OuterGlow: RETURN_NAMES = ("image",) FUNCTION = 'outer_glow' CATEGORY = '😺dzNodes/LayerStyle' - OUTPUT_NODE = True def outer_glow(self, background_image, layer_image, invert_mask, blend_mode, opacity, diff --git a/py/person_mask_Ultra.py b/py/person_mask_Ultra.py index 3420952..19a36a7 100644 --- a/py/person_mask_Ultra.py +++ b/py/person_mask_Ultra.py @@ -40,7 +40,6 @@ class PersonMaskUltra: RETURN_NAMES = ("image", "mask", ) FUNCTION = 'person_mask_ultra' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def get_mediapipe_image(self, image: Image): import mediapipe as mp diff --git a/py/person_mask_ultra_v2.py b/py/person_mask_ultra_v2.py index f3437cf..b5b25ba 100644 --- a/py/person_mask_ultra_v2.py +++ b/py/person_mask_ultra_v2.py @@ -44,7 +44,6 @@ class PersonMaskUltraV2: RETURN_NAMES = ("image", "mask", ) FUNCTION = 'person_mask_ultra_v2' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def get_mediapipe_image(self, image: Image): import mediapipe as mp diff --git a/py/pixel_spread.py b/py/pixel_spread.py index 6bb6b4c..a3e590c 100644 --- a/py/pixel_spread.py +++ b/py/pixel_spread.py @@ -25,7 +25,6 @@ class PixelSpread: RETURN_NAMES = ("image", ) FUNCTION = 'pixel_spread' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def pixel_spread(self, image, invert_mask, mask_grow, mask=None): diff --git a/py/prompt_embellish.py b/py/prompt_embellish.py index d735278..177e29f 100644 --- a/py/prompt_embellish.py +++ b/py/prompt_embellish.py @@ -25,7 +25,6 @@ class PromptEmbellish: RETURN_NAMES = ("text",) FUNCTION = 'prompt_embellish' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def prompt_embellish(self, api, token_limit, describe, image=None): if describe == "" and image is None: diff --git a/py/prompt_tagger.py b/py/prompt_tagger.py index e9d4f14..168f52f 100644 --- a/py/prompt_tagger.py +++ b/py/prompt_tagger.py @@ -27,7 +27,6 @@ class PromptTagger: RETURN_NAMES = ("text",) FUNCTION = 'prompt_tagger' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def prompt_tagger(self, image, api, token_limit, exclude_word, replace_with_word): import google.generativeai as genai diff --git a/py/restore_crop_box.py b/py/restore_crop_box.py index bd5edc3..e90ab60 100644 --- a/py/restore_crop_box.py +++ b/py/restore_crop_box.py @@ -26,7 +26,6 @@ class RestoreCropBox: RETURN_NAMES = ("image", "mask", ) FUNCTION = 'restore_crop_box' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def restore_crop_box(self, background_image, croped_image, invert_mask, crop_box, croped_mask=None diff --git a/py/segment_anything_ultra.py b/py/segment_anything_ultra.py index 46d987f..e687c43 100644 --- a/py/segment_anything_ultra.py +++ b/py/segment_anything_ultra.py @@ -34,7 +34,6 @@ class SegmentAnythingUltra: FUNCTION = "segment_anything_ultra" CATEGORY = '😺dzNodes/LayerMask' - def segment_anything_ultra(self, image, sam_model, grounding_dino_model, threshold, detail_range, black_point, white_point, process_detail, prompt, ): diff --git a/py/segment_anything_ultra_v2.py b/py/segment_anything_ultra_v2.py index 300de6b..a82e52f 100644 --- a/py/segment_anything_ultra_v2.py +++ b/py/segment_anything_ultra_v2.py @@ -40,7 +40,6 @@ class SegmentAnythingUltraV2: FUNCTION = "segment_anything_ultra_v2" CATEGORY = '😺dzNodes/LayerMask' - def segment_anything_ultra_v2(self, image, sam_model, grounding_dino_model, threshold, detail_method, detail_erode, detail_dilate, black_point, white_point, process_detail, diff --git a/py/shadow&highlight_mask.py b/py/shadow&highlight_mask.py index e3a6665..97c5efa 100644 --- a/py/shadow&highlight_mask.py +++ b/py/shadow&highlight_mask.py @@ -34,7 +34,6 @@ class ShadowAndHighlightMask: RETURN_NAMES = ("shadow_mask", "highlight_mask") FUNCTION = 'shadow_and_highlight_mask' CATEGORY = '😺dzNodes/LayerMask' - OUTPUT_NODE = True def shadow_and_highlight_mask(self, image, shadow_level_offset, shadow_range, diff --git a/py/sharp&soft.py b/py/sharp&soft.py index edfa0d6..13eca56 100644 --- a/py/sharp&soft.py +++ b/py/sharp&soft.py @@ -26,7 +26,6 @@ class SharpAndSoft: RETURN_NAMES = ("image",) FUNCTION = 'sharp_and_soft' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def sharp_and_soft(self, images, enhance, ): diff --git a/py/simple_text_image.py b/py/simple_text_image.py index 6ef721a..7b71ee1 100644 --- a/py/simple_text_image.py +++ b/py/simple_text_image.py @@ -39,7 +39,6 @@ class SimpleTextImage: RETURN_NAMES = ("image", "mask",) FUNCTION = 'simple_text_image' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def simple_text_image(self, text, font_file, align, char_per_line, leading, font_size, text_color, diff --git a/py/skin_beauty.py b/py/skin_beauty.py index d1ccb69..0a1a757 100644 --- a/py/skin_beauty.py +++ b/py/skin_beauty.py @@ -25,7 +25,6 @@ class SkinBeauty: RETURN_NAMES = ("image", "beauty_mask") FUNCTION = 'skin_beauty' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def skin_beauty(self, image, smooth, threshold, opacity ): diff --git a/py/soft_light.py b/py/soft_light.py index 44ce95e..648a485 100644 --- a/py/soft_light.py +++ b/py/soft_light.py @@ -25,7 +25,6 @@ class SoftLight: RETURN_NAMES = ("image",) FUNCTION = 'soft_light' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def soft_light(self, image, soft, threshold, opacity,): diff --git a/py/stroke.py b/py/stroke.py index c4c725c..a313529 100644 --- a/py/stroke.py +++ b/py/stroke.py @@ -31,7 +31,6 @@ class Stroke: RETURN_NAMES = ("image",) FUNCTION = 'stroke' CATEGORY = '😺dzNodes/LayerStyle' - OUTPUT_NODE = True def stroke(self, background_image, layer_image, invert_mask, blend_mode, opacity, diff --git a/py/text_image.py b/py/text_image.py index ea63161..ccd10e7 100644 --- a/py/text_image.py +++ b/py/text_image.py @@ -38,7 +38,6 @@ class TextImage: RETURN_NAMES = ("image", "mask",) FUNCTION = 'text_image' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def text_image(self, text, font_file, spacing, leading, horizontal_border, vertical_border, scale, variation_range, variation_seed, layout, width, height, text_color, background_color, diff --git a/py/water_color.py b/py/water_color.py index 9b5e6ca..ef74bf8 100644 --- a/py/water_color.py +++ b/py/water_color.py @@ -24,7 +24,6 @@ class WaterColor: RETURN_NAMES = ("image",) FUNCTION = 'water_color' CATEGORY = '😺dzNodes/LayerFilter' - OUTPUT_NODE = True def water_color(self, image, line_density, opacity ): diff --git a/py/xy2percent.py b/py/xy2percent.py index 1a909b4..3711047 100644 --- a/py/xy2percent.py +++ b/py/xy2percent.py @@ -23,7 +23,6 @@ class XYtoPercent: RETURN_NAMES = ("x_percent", "x_percent",) FUNCTION = 'xy_to_percent' CATEGORY = '😺dzNodes/LayerUtility' - OUTPUT_NODE = True def xy_to_percent(self, background_image, layer_image, x, y,):