diff --git a/node_crop_pad.py b/node_crop_pad.py index db8c74f..d996aaa 100644 --- a/node_crop_pad.py +++ b/node_crop_pad.py @@ -25,11 +25,6 @@ from .slot_types import ( # ---------------------------------------------------------- -_return_types_crop_pad = ( - _IO.FLOAT, - _IO.BOOLEAN, _IO.INT, _IO.INT, _IO.INT, _IO.INT, - _IO.BOOLEAN, _IO.INT, _IO.INT, _IO.INT, _IO.INT, -) _return_ttips_crop_pad = _frozendict({ 'upscale': "The actual uniform upscale value to do.", @@ -92,7 +87,11 @@ class BestResolutionUpscaledCropPad: OUTPUT_NODE = True FUNCTION = 'main' - RETURN_TYPES = _return_types_crop_pad + RETURN_TYPES = ( + _IO.FLOAT, + _IO.BOOLEAN, _IO.INT, _IO.INT, _IO.INT, _IO.INT, + _IO.BOOLEAN, _IO.INT, _IO.INT, _IO.INT, _IO.INT, + ) RETURN_NAMES = tuple(_return_ttips_crop_pad.keys()) OUTPUT_TOOLTIPS = tuple(_return_ttips_crop_pad.values()) diff --git a/nodes_upscale.py b/nodes_upscale.py index bff096b..06a60df 100644 --- a/nodes_upscale.py +++ b/nodes_upscale.py @@ -6,14 +6,12 @@ Advanced versions of nodes - with upscale. import typing as _t from inspect import cleandoc as _cleandoc -import sys as _sys from frozendict import deepfreeze as _deepfreeze, frozendict as _frozendict from comfy.comfy_types.node_typing import IO as _IO from ._funcs import ( - aspect_ratios_sorted as _aspect_ratios_sorted, number_to_int as _number_to_int, float_width_height_from_area as _float_width_height_from_area, upscale_result_from_approx_wh as _upscale_result_from_approx_wh