Commit Graph

4 Commits

Author SHA1 Message Date
06b42a610b refactor: vectorize gradient loop and fix DD node position
Replace per-pixel Python loop with vectorized torch.arange + slice
operations. Fix DifferentialDiffusion node position to avoid visual
overlap with SplitImageToTileList node 14 on the canvas.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 16:49:17 +01:00
cd00843b2e feat: add gradient mode to GenerateSeamMask for differential diffusion
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 16:37:17 +01:00
65253fd1bc fix: compute seam positions from actual tile grid
Replicate SplitImageToTileList's get_grid_coords logic to find real
overlap regions between adjacent tiles. Fixes three bugs:

1. Bands were at overlap start instead of center (off by overlap/2)
2. Spurious bands generated beyond the actual tile grid
3. Edge tile seams placed at wrong position (ignoring boundary shift)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 16:05:26 +01:00
2564377aa1 feat: initial ComfyUI_UltimateSGUpscale
Recreates UltimateSDUpscale features using built-in ComfyUI nodes
(SplitImageToTileList, ImageMergeTileList) plus a small GenerateSeamMask
helper node.

- GenerateSeamMask: creates white-band mask at tile seam positions
- Workflow JSON: 22-node tiled upscale pipeline with:
  - Pass 1: model upscale + tiled img2img redraw
  - Pass 2: targeted seam fix using SetLatentNoiseMask
- Unit tests for seam mask generation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 15:52:32 +01:00