Nodes/MD Nodes/MD: YAML Configuration Tool
ComfyUI Node

MD: YAML Configuration Tool

A ComfyUI node in MD_Nodes/Utility with 6 inputs and 2 outputs.

By MDMAchine·Created about a year ago·Updated 2 months ago· 14
MD: YAML Configuration Tool
    • yaml_config_str
    • preset_info_string
    base_presetNone
    merge_strategyOverride (Smart Merge)
    force_updatefalse
    manual_edits# Type overrides here (e.g. cfg_scale: 5.0) # These will replace values in the Base Preset.
    save_new_preset_as
    debug_logfalse
    CategoryMD_Nodes/Utility

    Inputs (6)

    NameTypeDefaultDescription
    base_presetCOMBONoneBASE PRESET • Purpose: The foundational YAML file to load. • Requirement: Files must be stored in the 'yaml_presets' folder.
    merge_strategyCOMBOOverride (Smart Merge)MERGE STRATEGY • Purpose: How manual edits interact with the base preset. • Override: Replaces base values with your manual edits. • Append Only: Only adds new keys, ignores existing ones. • Pure Manual: Ignores the base preset entirely. ⭐ Recommended: Override (Smart Merge).
    force_updateBOOLEANfalseFORCE UPDATE • Purpose: Bypasses caching to re-read the file every generation. ⭐ Recommended: Only on Change (Faster).
    manual_editsoptSTRING# Type overrides here (e.g. cfg_scale: 5.0) # These will replace values in the Base Preset.MANUAL EDITS • Purpose: YAML string to merge with the base preset. • Warning: Must use exact YAML syntax (2 spaces, no tabs).
    save_new_preset_asoptSTRINGSAVE AS NEW PRESET • Purpose: Saves the final merged result to disk. • Requirement: Leave blank unless you want to create a new file.
    debug_logoptBOOLEANfalseDEBUG LOG • Purpose: Prints exactly which values were changed during the merge.

    Outputs (2)

    NameTypeDescription
    yaml_config_strSTRING
    preset_info_stringSTRING