ComfyUI Node

Regex Weights

A ComfyUI node in mecha with 5 inputs and 2 outputs.

By ljleb·Created 2 years ago·Updated 15 days ago· 101
Regex Weights
    • recipe
    • recipe_txt
    regex_weights
    default0.00
    model_configsdxl-sgm
    regex_modesimple
    match_full_keysfalse
    Categorymecha

    Inputs (5)

    NameTypeDefaultDescription
    regex_weightsSTRINGone regex per line: <pattern>: <weight> <pattern>: <weight>
    defaultFLOAT0.00-18446744073709550000–18446744073709550000
    model_configCOMBOsdxl-sgm17 options: singleton-mecha, sdxl-supermerger_blocks, sdxl-sgm, sdxl-kohya_lycoris_lora, sdxl-kohya_kohya_lora, sdxl-kohya_but_diffusers_lycoris_lora, +11
    regex_modeCOMBOsimple- simple: the only special character is *, which means to match any number of characters. For example, "a*n" will match "alliteration". \* matches * literally and \\ matches \ literally - regex: full python regex mode. for example, ".*" matches any number of characters
    match_full_keysBOOLEANfalse- True: a pattern needs to cover a key from start to end to match it - False: a pattern only needs cover a part of a key to match it

    Outputs (2)

    NameTypeDescription
    recipeMECHA_RECIPE
    recipe_txtSTRING