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.
(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)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | Photo or decoded video frame batch, after the final resize. | |
| enabled | BOOLEAN | true | Off passes the original input through without copying. |
| amount | FLOAT | 6.000–100 | Legacy/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_size | FLOAT | 1.000.25–4 | Scales 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. |
| roughness | FLOAT | 0.250–1 | Coarse grain proportion. 0.25 uses the original 75:25 fine/coarse mix. |
| tone_weighted | BOOLEAN | true | Reduce grain near pure black and white, with emphasis on darker midtones. |
| temporal_mode | COMBO | changing | Changing varies the pattern per frame for video. Fixed keeps the same pattern for comparisons. |
| seed | INT | 20261007010–18446744073709550000 | Fixed seed reproduces the same grain. Changing uses seed + frame_offset + frame index. |
| frame_offset | INT | 00–18446744073709550000 | For separately processed video chunks, enter the first frame's global index. Otherwise keep 0. |
| processing_batch_sizeopt | INT | 11–4 | Frames 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_modeopt | COMBO | resolution | Resolution 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)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | Grain-applied frames on CPU, with original dimensions, dtype and alpha. |