mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-18 23:38:29 +08:00
Keying the split off upscale_model.input_channels was wrong for any model that does not take 3 channels: a single channel model fed a plain RGB image took only the red channel and returned 1 - green as the alpha mask, where it used to fail loudly. Alpha is channel 3 of an RGBA image, nothing else.
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/