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.

By AlexYez·Created 2 years ago·Updated about 16 hours ago· 17
TS VAE Fix
  • image
  • image
  • removed_grid
◄modeauto►
◄limit0.020►
◄skip_when_cleantrue►
◄preview_gain10►
◄preview_view4x zoom►
CategoryTS/Image/Retouch

Inputs (6)

NameTypeDefaultDescription
imageIMAGEStraight from VAE Decode. A batch of video frames is treated as one clip.
modeCOMBOautoauto: the removal limit is measured from the image itself. manual: use the 'limit' value below.
limitFLOAT0.0200–0.1Manual 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_cleanBOOLEANtruePass the image through bit for bit when no grid is found, e.g. after an upscaler or a resize. Off: filter regardless.
preview_gainFLOAT101–50Brightness of the removed_grid preview only. Never changes the image.
preview_viewCOMBO4x zoomFraming 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)

NameTypeDescription
imageIMAGEThe cleaned image, same size and batch as the input.
removed_gridIMAGEWhat was subtracted, amplified and centred on gray. Healthy: a uniform fine pattern. Recognisable faces or edges here mean the limit is too high.