Nodes/digit-comfyui/DIGIT Drift Gate (Paths)
ComfyUI Node

DIGIT Drift Gate (Paths)

Compare two filesystem image paths and gate on drift confidence.

By thedepartmentofexternalservices·Created 6 months ago·Updated 6 days ago· 0
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)

    NameTypeDefaultDescription
    resize_modeCOMBOfit_reference4 options: fit_reference, fit_generated, fit_largest, custom
    fit_methodCOMBOstretch3 options: stretch, letterbox, crop_center
    compare_widthINT00–16384Used when resize_mode is custom. 0 = ignored.
    compare_heightINT00–16384Used when resize_mode is custom. 0 = ignored.
    grid_sizeINT62–24Grid resolution for hotspot drift report.
    detail_weightFLOAT0.650–1How much edge/detail SSIM affects confidence (badge/logo sensitivity).
    confidence_thresholdFLOAT75.00–100Pass when confidence >= threshold.
    diff_thresholdINT301–255Pixel delta treated as visible drift.
    reject_modeCOMBOpassthroughblackout = gated_image goes black on reject. passthrough = gated_image always forwards generated. Use the passed output for branching.
    save_qcBOOLEANfalseWrite burn-in QC PNG + JSON sidecar to qc_output_dir.
    qc_output_dirSTRINGFolder for QC artifacts. Example: .../shots/dev_0010/qc
    qc_filenameSTRINGOptional base name (no extension, no _qc). Auto-derived from generated_path. Output is always <name>_qc.png/.json.
    show_qc_previewBOOLEANtrueShow the burn-in QC sheet in ComfyUI's preview panel after run.
    reference_pathSTRINGAbsolute path to reference / plate image.
    generated_pathSTRINGAbsolute path to generated image.

    Outputs (11)

    NameTypeDescription
    passedBOOLEAN
    confidenceFLOAT
    drift_reportSTRING
    qc_jsonSTRING
    qc_filepathSTRING
    gated_imageIMAGE
    qc_sheetIMAGE
    diff_heatmapIMAGE
    edge_diffIMAGE
    reference_alignedIMAGE
    generated_alignedIMAGE