Nodes/WhiteRabbit/🐇 Pixel Hold
ComfyUI Node

🐇 Pixel Hold

Locks parts of each frame to a chosen reference (external image or a frame from the clip) whenever changes are small—useful for stabilizing flat areas or backgrounds while leaving motion to pass through.

By Artificial-Sweetener·Created 12 months ago·Updated 3 months ago· 75
🐇 Pixel Hold
  • frames
  • reference
  • images
  • mask_preview
ref_sourceexternal
ref_index0
linearizetrue
auto_lumatrue
auto_k2.5
tau_luma0.0059
tau_grad0.020
modetile
tile_size32
score_model1_tile
edge_bandtrue
band_radius4
tau_edge_low0.0059
tau_edge_high0.0235
applyall
dilate1
feather_sigma2.0
process_onauto
gpu_clear_every0
Categoryvideo utils

Inputs (21)

NameTypeDefaultDescription
framesIMAGEYour clip (frames×H×W×C, values 0–1).
ref_sourceCOMBOexternalPick the reference: an external image or a frame from this clip.
ref_indexINT00–999999If using a frame from this clip, which frame to use as the reference.
referenceIMAGEOptional external reference (1×H×W×C). If sizes differ, it will be resized to match.
linearizeBOOLEANtrueWork in linear color for steadier results on flat areas.
auto_lumaBOOLEANtrueAuto sensitivity for brightness changes (adapts per frame).
auto_kFLOAT2.50.5–6Auto strength. Higher = lock more to the reference (2–3 is typical).
tau_lumaFLOAT0.00590–0.01568627450980392Manual brightness threshold when Auto is OFF. Lower = stricter (more locking).
tau_gradFLOAT0.0200–1How much edge change to allow. Lower protects edges more.
modeCOMBOtileTile: fast & robust. Pixel: finer but noisier.
tile_sizeINT328–256Tile size when using Tile mode.
score_modeCOMBOl1_tileHow tiles measure change: mean abs diff (fast) or median abs dev (robust).
edge_bandBOOLEANtrueProtect a belt around strong edges to avoid wobble/stretch.
band_radiusINT40–64Width of the protected belt (pixels).
tau_edge_lowFLOAT0.00590–0.25Treat as low-motion below this level (edge belt).
tau_edge_highFLOAT0.02350–0.5Treat as high-motion above this level (edge belt).
applyCOMBOallHold the whole image (All) or only its smooth part (Low-freq).
dilateINT10–16Expand the mask (pixels).
feather_sigmaFLOAT2.00–16Soften mask edges (pixels).
process_onCOMBOautoChoose CPU/GPU. Auto switches to GPU on very large frames.
gpu_clear_everyINT00–1000If >0 and using GPU, free memory every N frames.

Outputs (2)

NameTypeDescription
imagesIMAGE
mask_previewIMAGE