mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-19 15:55:21 +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
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/