Nodes/Deno Custom Nodes/(Deno) Film Grain
ComfyUI Node

(Deno) Film Grain

DENO Custom Nodes v0.7.118. The DENO info button checks Comfy Registry and marks this node when an update is available. Add monochrome film grain after the final resize, before Save Image, Create Video or Video Combine. CPU processing uses small groups of 1–4 frames; choose 1 for the least temporary RAM. An enabled run still allocates one complete output IMAGE batch in RAM. Resolution scaling samples grain from an aspect-matched 1536px short-edge reference; pixel scaling preserves older grain results. RGB/RGBA size and dtype are preserved; alpha is unchanged. For native Save Video, connect images to Create Video first.

By Deno2026·Created 6 months ago·Updated about 15 hours ago· 190
(Deno) Film Grain
  • images
  • images
◄enabledtrue►
◄amount6.00►
◄grain_size1.00►
◄roughness0.25►
◄tone_weightedtrue►
◄temporal_modechanging►
◄seed2026100701►
◄frame_offset0►
◄processing_batch_size1►
◄grain_scale_moderesolution►
CategoryDeno/Image

Inputs (11)

NameTypeDefaultDescription
imagesIMAGEPhoto or decoded video frame batch, after the final resize.
enabledBOOLEANtrueOff passes the original input through without copying.
amountFLOAT6.000–100Legacy/API grain strength in 8-bit brightness units. The panel maps strength 0..1 to amount 0..12; its default is amount 6. The larger backend range preserves older workflows. 0 passes through.
grain_sizeFLOAT1.000.25–4Scales grain blur only. 1 uses fine/coarse sigma 0.45/1.15px at the 1536px short-edge reference, or at every size in Pixels mode. Image detail is not blurred.
roughnessFLOAT0.250–1Coarse grain proportion. 0.25 uses the original 75:25 fine/coarse mix.
tone_weightedBOOLEANtrueReduce grain near pure black and white, with emphasis on darker midtones.
temporal_modeCOMBOchangingChanging varies the pattern per frame for video. Fixed keeps the same pattern for comparisons.
seedINT20261007010–18446744073709550000Fixed seed reproduces the same grain. Changing uses seed + frame_offset + frame index.
frame_offsetINT00–18446744073709550000For separately processed video chunks, enter the first frame's global index. Otherwise keep 0.
processing_batch_sizeoptINT11–4Frames processed together on CPU. 1 minimizes temporary RAM; larger groups can improve speed. The complete output IMAGE batch still requires RAM. This does not change upstream generation VRAM.
grain_scale_modeoptCOMBOresolutionResolution samples only the grain from a 1536px short-edge reference for similar screen-relative texture. Pixels preserves the original fixed-pixel grain. Strength is unchanged; subpixel grain is naturally filtered. The reference grid is limited to 16,777,216 pixels for memory safety.

Outputs (1)

NameTypeDescription
imagesIMAGEGrain-applied frames on CPU, with original dimensions, dtype and alpha.