A validation generator function has been aded along with the ability to specify custom functions for validating individual types.
cli args have been added in the form of
--type-conformance='arg'
with the following args:
all : attempts to convert any mistyped inputs/outputs to the type specified by the node
images : only enforces BHW3 on images, doing the minimum verifiably accurate transforms such as MASK HW and BHW to BHW3
error: raises an error with information about the type mismatch at the node where it occurs.
none: the default value, it outputs errors to console, and does nothing else.
This should address most of the areas of discussion.
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 change transparently implements BHW3 compliance for IMAGE type inputs and outputs for all nodes. No changes need to be made to existing nodes, the conformance is applied before the IMAGE is passed into the node, and after it is passed out of the node.
This change was discussed on the #backend_developers discord with @comfyanonymous and @mcmonkey4eva
More rigorous testing needs to be done to ensure that there are no egregious failure modes and that all formats are covered.
Im sure the `force_bhw3` function can also be made better, but this is currently a working implementation.
This breaks seeds for resolutions that are not a multiple of 16 in pixel
resolution by using circular padding instead of reflection padding but
should lower the amount of artifacts when doing img2img at those
resolutions.
Fixes an issue where under certain conditions, the ComfyUI custom undo / redo functions would not run when intended to.
When trying to undo an action like deleting several nodes, instead the native browser undo runs - e.g. a textarea gets focus and the last typed text is undone. Clicking outside the text area and typing again just keeps doing the same thing.
* Let tokenizers return weights to be stored in the saved checkpoint.
* Basic hunyuan dit implementation.
* Fix some resolutions not working.
* Support hydit checkpoint save.
* Init with right dtype.
* Switch to optimized attention in pooler.
* Fix black images on hunyuan dit.