The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Update nodes_primitive.py (#7716)
Alexander G. Morano9d57b8afd8c9
diff --git a/comfy_extras/nodes_primitive.py b/comfy_extras/nodes_primitive.pyindex b770104fb..184b990c3 100644--- a/comfy_extras/nodes_primitive.py+++ b/comfy_extras/nodes_primitive.py@@ -1,6 +1,8 @@# Primitive nodes that are evaluated at backend.from __future__ import annotations+import sys+from comfy.comfy_types.node_typing import ComfyNodeABC, InputTypeDict, IO@@ -23,7 +25,7 @@ class Int(ComfyNodeABC):@classmethoddef INPUT_TYPES(cls) -> InputTypeDict:return {- "required": {"value": (IO.INT, {"control_after_generate": True})},+ "required": {"value": (IO.INT, {"min": -sys.maxsize, "max": sys.maxsize, "control_after_generate": True})},}RETURN_TYPES = (IO.INT,)@@ -38,7 +40,7 @@ class Float(ComfyNodeABC):@classmethoddef INPUT_TYPES(cls) -> InputTypeDict:return {- "required": {"value": (IO.FLOAT, {})},+ "required": {"value": (IO.FLOAT, {"min": -sys.maxsize, "max": sys.maxsize})},}RETURN_TYPES = (IO.FLOAT,)