ComfyUI Extension: CRT-Nodes

Authored by PGCRT

Created

Updated

2 stars

This set includes toggle nodes for Lora Unet blocks L1/L2 and a node to remove trailing comma from string end.

Custom Nodes (0)

    README

    CRT-Nodes

    CRT-Nodes is a collection of custom nodes for ComfyUI. This set includes toggle nodes for Lora Unet blocks and a node to remove trailing comma from string end.

    Features

    1. Toggle Lora Unet Blocks L1:

      • This node allows you to toggle Lora Unet blocks at layer 1.
      • It takes a string input and outputs a concatenated string of the active blocks.
    2. Toggle Lora Unet Blocks L2:

      • Similar to the L1 node but designed for layer 2.
      • It also takes a string input and outputs a concatenated string of the active blocks.
    3. Remove Trailing Comma:

      • This node takes a string input and removes the last trailing comma, providing a clean string output for the Flux LoRA training "block_args".
    4. lora loader str:

      • This is a simple LoRA Loader that can output the name of the model loaded as a string, with a switch to also embed the strength if wanted.
    5. boolean transform node:

      • Clamp list value to 1 if non zero

    Easy LoRA Trainer - https://civitai.com/models/743615/easy-lora-trainer 2024-09-27 11_57_58-_Unsaved Workflow 2024-09-27 12_09_34-run_nvidia_gpu - Copie bat - Raccourci

    Example:

    Toggle Lora Unet Blocks L1 Node specify which blocks you want to toggle on. The output will provide a concatenated string of the active blocks.

    Toggle Lora Unet Blocks L2 Node Similar to the L1 node, connect your input and specify blocks to toggle.

    Remove Trailing Comma Node Connect the input string that may have a trailing comma, and the output will be a cleaned string without the trailing comma.

    lora loader str You want to compair LoRA and combine the images output for comparison purpose (Ex: CR Simple Image Compare), you can use the string output of the lora loader as text input fore the compare node.

    boolean transform node Use it after "Mask Or Image To Weight" from KJNodes. It was made for logic purpose, and basically say (If a mask is detected, the boolean output will be "True", if not, "False".

    Contributing Feel free to submit issues and pull requests. Contributions are welcome! License This project is licensed under the MIT License. See the LICENSE file for more details. Acknowledgments Thanks to the ComfyUI community for their support and contributions.

    https://civitai.green/user/pgc https://discord.gg/8wYS9MBQqp