mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-24 18:10:27 +08:00
kornia's rgb_to_ycbcr only accepts 3 channel input, so Image RGB to YUV raised a ValueError on a 4 channel image. Image YUV to RGB did not raise but averaged the alpha channel into its per-channel mean, skewing the result. Convert using the colour channels in both directions. CORE-393