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.
This commit is contained in:
shawnington 2024-08-02 16:24:31 -04:00 committed by GitHub
parent 40a86b3dc8
commit 5c5a3333f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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("--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/ # The default built-in provider hosted under web/
DEFAULT_VERSION_STRING = "comfyanonymous/ComfyUI@latest" DEFAULT_VERSION_STRING = "comfyanonymous/ComfyUI@latest"