MagicMatch Preview (CUDA LUT)
Preview a CUDA-built LUT without moving the apply
- source
- lut
- image
MagicMatch Preview (CUDA LUT) is the Preview node paired with MagicMatch Build LUT (CUDA). The idea is clean: build the LUT on the GPU where it's fast, but apply it through the full-res CPU parity path so the final image matches what the CPU nodes would have produced. Inputs are the standard Preview set - source, lut, strength, plus lut_encoding / render_mode / profile_stage - with an image output, and you get the same in-node WebGL live preview as the plain Preview: run once, open the node, drag the slider, queue again before export.
The one behavioral switch is inherited from the CUDA one-shot. Set MAGICMATCH_CUDA_GPU_APPLY=1 and the probe_export apply routes through the legacy GPU path, which may come out brighter. Default 0 keeps CPU parity. Wire it after Build CUDA for the intended pairing - though any LUT flows into it, since they're all the same custom type, the caching and parity story is only coherent when the LUT came from the CUDA build. Note the scope, too: only the ONNX color-match build gets the GPU here. Detection, develop, and apply stay CPU, which is exactly why the output tracks the CPU nodes so closely.
The live-preview workflow is identical to the CPU Preview: run once, open the node, drag strength on the WebGL preview, then queue once more so the queued image matches your slider before you export.
Install is the CUDA flavor of the pack - in ComfyUI's venv, uninstall onnxruntime, then:
pip install -r MAGICMATCH/requirements-cuda.txt
Restart, and the node shows up under MAGICMATCH/CUDA (experimental). No CUDA on the box means it quietly falls back to CPU execution. Batch size 1.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| source | IMAGE | — | |
| lut | MAGICMATCH_LUT | — | |
| strength | FLOAT | 1.000–1 | — |
| lut_encoding | COMBO | srgb_srgb | 7 options: srgb_srgb, srgb_none, linear_srgb, linear_none, none_none, srgb_adobe, +1 |
| render_mode | COMBO | probe_export | 6 options: probe_export, polarr_probe, numpy_legacy, polarr, numpy, probe_export |
| profile_stage | COMBO | current_profile_stages | 4 options: current_profile_stages, force_color_look, disable_profile_look, force_color_look_disable_profile_look |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |