33 Commits
Author SHA1 Message Date
poxularandCursor 9a056baa9e Fix CUDA one-shot LUT drift: use CPU Lanczos ORT feeds on GPU EP.
run_inference_from_images_cuda was routing through GPU bilinear resize on H100,
producing a different net feed and brighter output than MagicMatch (one-shot).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 02:03:34 +02:00
poxularandCursor bd86190129 Match CUDA one-shot output to CPU MagicMatch (ONNX on GPU only).
Use CPU scene extract, develop, and apply; GPU develop apply caused brighter drift.
Optional MAGICMATCH_CUDA_GPU_APPLY=1 restores legacy GPU apply path.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 01:59:45 +02:00
poxularandCursor 0361126045 Restore 1ccd29d CUDA one-shot path without breaking node imports.
Add pipeline_v1 (GPU build + GPU apply) as a standalone module so partial
git checkouts of inference_cuda no longer break GPU Full/Fast imports.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 01:54:41 +02:00
poxularandCursor aeae298c40 Restore CUDA one-shot to parity build with CPU apply.
Rolling back inference_cuda alone broke GPU Full/Fast imports and hid all nodes.
CUDA build uses pipeline_cuda again; one-shot apply matches golden CPU develop stack.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 01:39:20 +02:00
poxularandCursor f223858ac4 Add GPU Fast pipeline for sub-3s H100 inference.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 01:16:07 +02:00
poxularandCursor e975fbc3b6 Fix GPU Full node reference tensor device handling.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 01:01:55 +02:00
poxularandCursor 4965f27ba4 Add full GPU pipeline with ComfyUI nodes and phase profiling.
Ports scene extract, face ONNX preprocess, and net reference resize to Torch/CUDA with minimal CPU sync, while keeping the CPU parity path unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 01:01:46 +02:00
poxularandCursor c85abee31e Speed up GPU path: fused one-shot, GPU net resize, vectorized luminance.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 00:53:08 +02:00
poxularandCursor 07077d1ed5 Add force_color_look support to GPU develop stack.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 00:49:13 +02:00
poxularandCursor 6dda38faac Fix GPU color matmul dtype mismatch (float64 matrices).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 00:46:20 +02:00
poxularandCursor 1ccd29df6f Add Torch GPU pipeline for CUDA ComfyUI nodes.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 00:43:01 +02:00
poxularandCursor d101418eb9 Add separate CUDA ONNX path for experimental GPU inference.
Keeps CPU parity nodes and providers unchanged; CUDA modules and ComfyUI
nodes run alongside with CPU fallback when CUDA EP is unavailable.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-02 00:22:25 +02:00
poxularandCursor 2f35b1c3f9 Fix probe parity net feed and verify lut_hash golden target.
Route develop@1600 through inference createTensor resize, align reference JPEG?256?WebP net prep with the worker, and replace stale lut_hash 921fe3a5 with verified a48758ca in parity_pair.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 22:46:45 +02:00
poxular c3c0b8050b Fix face skin ONNX preprocessing so auto light/WB matches probe.
Skin parse was normalizing 0-1 RGB instead of 0-255, rejecting all faces and breaking base adjustments + LUT build. Add parity_pair.py diagnostic script for local pair testing.
2026-06-01 18:51:17 +02:00
poxularandCursor 6a9a3effdd Fix bitmap as-shot white balance to 5000K for skin tone parity.
Probe and Photo.ts use 5000K/0 tint for JPEG sources; develop was using 5500K which skewed WB matrices and skin brightness.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 18:38:29 +02:00
poxularandCursor b0d6040dc9 Fix probe export parity for Comfy bitmap color match.
Skip Adobe look on Standard bitmap develop, align reference WebP 256 ONNX feed and TF-style bilinear prep, and cache base adjustments from Build through Preview.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 18:34:47 +02:00
poxularandCursor f074f95fcf Bundle face ONNX models and probe-parity pipeline for ComfyUI git pull.
Include face detect/parse ONNX plus auto-WB and auto-light scene extraction so ComfyUI installs work without local conversion.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 18:26:38 +02:00
poxularandCursor 5909aa4ae7 Fix Preview hang: vectorize polarr_probe full-res LUT apply.
The per-pixel Python loop on 2MP+ images appeared stuck at 50%. Guard IS_CHANGED when inputs are None.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 18:04:19 +02:00
poxularandCursor 209b80edd2 Fix ComfyUI value-not-in-list validation on saved workflows.
Move lut_encoding and render_mode to required combos with defaults, add legacy render_mode aliases, and normalize values before apply.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 18:01:14 +02:00
poxularandCursor f65cd6bbb9 Add Polarr Next Probe LUT apply path (encoding, ProPhoto) for Comfy output.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:44:49 +02:00
poxularandCursor 36d286fb2b Restore full-resolution Comfy output; keep PIL 256 ONNX for LUT build.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:36:33 +02:00
poxularandCursor 2f7dc90c88 Match standalone probe: PIL 256 ONNX feed and 960px LUT apply.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:35:29 +02:00
poxularandCursor 2fd419a696 Fix preview crop: use PNG natural dimensions for aspect and layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:25:25 +02:00
poxularandCursor f456ff33ea Fix preview: stable WebGL backing store, re-upload LUT on slider, fill node height, 2048 cache.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:20:00 +02:00
poxularandCursor 32303a59ee Fix live preview black screen and low resolution.
Reinitialize WebGL after canvas resize (resizing invalidates the context),
upload source at full cache resolution, and raise preview PNG cap to 1024px.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:13:31 +02:00
poxularandCursor eae83ec786 Fix WebGL 3D LUT texel memory order (B fastest, matches CPU).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:09:42 +02:00
poxularandCursor d8102de7c7 Fix live preview LUT layout (cBGR reshape) and resize preview with node width.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:09:15 +02:00
poxularandCursor 76cd81020e Fix live preview: flip Y, RGBA8 LUT texture, cap preview size.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:06:06 +02:00
poxularandCursor b0da0d28c7 In-node live strength preview (WebGL) after first workflow run.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:02:37 +02:00
poxularandCursor a251a0ed9f Add live strength slider: auto_refresh queues Preview while Build stays cached.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 17:00:32 +02:00
poxularandCursor 48048b2465 Update README with public repo URL.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 16:52:54 +02:00
poxularandCursor f13d6358fb Add publish instructions and clean install README.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 16:51:58 +02:00
poxularandCursor 4d2d3d4236 Initial release: MAGICMATCH ComfyUI color-match nodes with bundled ONNX model.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 16:51:00 +02:00