ComfyUI Node
TS VAE Fix
Remove the faint 2-pixel grid that some VAEs leave on decoded images: Qwen Image, Qwen Image 2.1 / Edit, Krea 2, Wan 2.1 frames. Put it right after VAE Decode, before any resize, sharpening or upscaler. The node measures the grid on every run and leaves images without one untouched, so it is safe to keep in any workflow.
TS VAE Fix
- image
- image
- removed_grid
◄modeauto►
◄limit0.020►
◄skip_when_cleantrue►
◄preview_gain10►
◄preview_view4x zoom►
CategoryTS/Image/Retouch
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Straight from VAE Decode. A batch of video frames is treated as one clip. | |
| mode | COMBO | auto | auto: the removal limit is measured from the image itself. manual: use the 'limit' value below. |
| limit | FLOAT | 0.0200–0.1 | Manual mode only. Largest correction per pixel, on the 0-1 scale. Too low: the grid survives in contrasty areas. Too high: the finest texture (pores, fabric) softens slightly. |
| skip_when_clean | BOOLEAN | true | Pass the image through bit for bit when no grid is found, e.g. after an upscaler or a resize. Off: filter regardless. |
| preview_gain | FLOAT | 101–50 | Brightness of the removed_grid preview only. Never changes the image. |
| preview_view | COMBO | 4x zoom | Framing of the removed_grid preview. A 2px grid turns into gray noise in a full-frame thumbnail; a magnified centre crop shows the pattern. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The cleaned image, same size and batch as the input. |
| removed_grid | IMAGE | What was subtracted, amplified and centred on gray. Healthy: a uniform fine pattern. Recognisable faces or edges here mean the limit is too high. |