From 5c5a3333f6fa53cb3e753fd6a4f4de04a889de9d Mon Sep 17 00:00:00 2001 From: shawnington <88048838+shawnington@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:24:31 -0400 Subject: [PATCH] Update cli_args.py added cli args --type-confromance with 3 options `all` - attempts to convert all values to the input/output types specified by the node `images` - only converts images to bwh3 format `error` - raises an error if the type does not match what is specified. `none` - prints error messages to console and does nothing else. --- comfy/cli_args.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comfy/cli_args.py b/comfy/cli_args.py index 2397de3d6..f1d04059d 100644 --- a/comfy/cli_args.py +++ b/comfy/cli_args.py @@ -128,6 +128,9 @@ parser.add_argument("--multi-user", action="store_true", help="Enables per-user parser.add_argument("--verbose", action="store_true", help="Enables more debug prints.") +parser.add_argument("--type-conformance", type=str, choices=['all', 'images', 'error', 'none'], default='none', help="Level of type conformance for input/output values between nodes. 'all/images' will attempt to convert all or only image values to the expected type, 'error' will raise an error if the types do not match.") + + # The default built-in provider hosted under web/ DEFAULT_VERSION_STRING = "comfyanonymous/ComfyUI@latest"