ComfyUI Node
DIGIT Drift Gate (Paths)
Compare two filesystem image paths and gate on drift confidence.
DIGIT Drift Gate (Paths)
- passed
- confidence
- drift_report
- qc_json
- qc_filepath
- gated_image
- qc_sheet
- diff_heatmap
- edge_diff
- reference_aligned
- generated_aligned
◄resize_modefit_reference►
◄fit_methodstretch►
◄compare_width0►
◄compare_height0►
◄grid_size6►
◄detail_weight0.65►
◄confidence_threshold75.0►
◄diff_threshold30►
◄reject_modepassthrough►
◄save_qcfalse►
◄qc_output_dir►
◄qc_filename►
◄show_qc_previewtrue►
◄reference_path►
◄generated_path►
CategoryDIGIT
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| resize_mode | COMBO | fit_reference | 4 options: fit_reference, fit_generated, fit_largest, custom |
| fit_method | COMBO | stretch | 3 options: stretch, letterbox, crop_center |
| compare_width | INT | 00–16384 | Used when resize_mode is custom. 0 = ignored. |
| compare_height | INT | 00–16384 | Used when resize_mode is custom. 0 = ignored. |
| grid_size | INT | 62–24 | Grid resolution for hotspot drift report. |
| detail_weight | FLOAT | 0.650–1 | How much edge/detail SSIM affects confidence (badge/logo sensitivity). |
| confidence_threshold | FLOAT | 75.00–100 | Pass when confidence >= threshold. |
| diff_threshold | INT | 301–255 | Pixel delta treated as visible drift. |
| reject_mode | COMBO | passthrough | blackout = gated_image goes black on reject. passthrough = gated_image always forwards generated. Use the passed output for branching. |
| save_qc | BOOLEAN | false | Write burn-in QC PNG + JSON sidecar to qc_output_dir. |
| qc_output_dir | STRING | Folder for QC artifacts. Example: .../shots/dev_0010/qc | |
| qc_filename | STRING | Optional base name (no extension, no _qc). Auto-derived from generated_path. Output is always <name>_qc.png/.json. | |
| show_qc_preview | BOOLEAN | true | Show the burn-in QC sheet in ComfyUI's preview panel after run. |
| reference_path | STRING | Absolute path to reference / plate image. | |
| generated_path | STRING | Absolute path to generated image. |
Outputs (11)
| Name | Type | Description |
|---|---|---|
| passed | BOOLEAN | — |
| confidence | FLOAT | — |
| drift_report | STRING | — |
| qc_json | STRING | — |
| qc_filepath | STRING | — |
| gated_image | IMAGE | — |
| qc_sheet | IMAGE | — |
| diff_heatmap | IMAGE | — |
| edge_diff | IMAGE | — |
| reference_aligned | IMAGE | — |
| generated_aligned | IMAGE | — |