Home

Awesome

⚠️ IMPORTANT: This repository is no longer receiving updates or maintenance. For ongoing development, check out the fork of this project maintained by jags111.

Efficiency Nodes for ComfyUI

A collection of <a href="https://github.com/comfyanonymous/ComfyUI" >ComfyUI</a> custom nodes to help streamline workflows and reduce total node count.

Direct Download Link

Nodes:

<!--------------------------------------------------------------------------------------------------------------------------------------------------------> <details> <summary><b>Efficient Loader</b> & <b>Eff. Loader SDXL</b></summary> <ul> <li>Nodes that can load & cache Checkpoint, VAE, & LoRA type models. <i>(cache settings found in config file 'node_settings.json')</i></li> <li>Able to apply LoRA & Control Net stacks via their <code>lora_stack</code> and <code>cnet_stack</code> inputs.</li> <li>Come with positive and negative prompt text boxes. You can also set the way you want the prompt to be <a href="https://github.com/BlenderNeko/ComfyUI_ADV_CLIP_emb">encoded</a> via the <code>token_normalization</code> and <code>weight_interpretation</code> widgets.</li> <li>These node's also feature a variety of custom menu options as shown below. <p></p><img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes//NodeMenu%20-%20Efficient%20Loaders.png" width="240" style="display: inline-block;"></p> <p><i>note: "🔍 View model info..." requires <a href="https://github.com/pythongosssss/ComfyUI-Custom-Scripts">ComfyUI-Custom-Scripts</a> to be installed to function.</i></p></li> <li>These loaders are used by the <b>XY Plot</b> node for many of its plot type dependencies.</li> </ul> <p align="center"> <img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/NODE%20-%20Efficient%20Loader.png" width="240" style="display: inline-block;"> <img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/NODE%20-%20Eff.%20Loader%20SDXL.png" width="240" style="display: inline-block;"> </p> </details> <!--------------------------------------------------------------------------------------------------------------------------------------------------------> <details> <summary><b>KSampler (Efficient)</b>, <b>KSampler Adv. (Efficient)</b>, <b>KSampler SDXL (Eff.)</b></summary> <p align="center"> <img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/NODE%20-%20KSampler%20(Efficient).png" width="240"> &nbsp; &nbsp; &nbsp; <img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/NODE%20-%20KSampler%20Adv.%20(Efficient).png" width="240"> &nbsp; &nbsp; &nbsp; <img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/NODE%20-%20KSampler%20SDXL%20(Eff.).png" width="240"> </p> </details> <!--------------------------------------------------------------------------------------------------------------------------------------------------------> <details> <summary><b>Script Nodes</b></summary> </details> <!--------------------------------------------------------------------------------------------------------------------------------------------------------> <details> <summary><b>Image Overlay</b></summary> <ul> <li>Node that allows for flexible image overlaying. Works also with image batches.</li> </ul> <p align="center"> <img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/Image%20Overlay%20-%20Node%20Example.png" width="1080"> </p> </details> <!--------------------------------------------------------------------------------------------------------------------------------------------------------> <details> <summary><b>SimpleEval Nodes</b></summary> <ul> <li>A collection of nodes that allows users to write simple Python expressions for a variety of data types using the <i><a href="https://github.com/danthedeckie/simpleeval" >simpleeval</a></i> library.</li> <li>To activate you must have installed the simpleeval library in your Python workspace.</li> <pre>pip install simpleeval</pre> </ul> <p align="center"> <img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/NODE%20-%20Evaluate%20Integers.png" width="320"> &nbsp; &nbsp; <img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/NODE%20-%20Evaluate%20Floats.png" width="320"> &nbsp; &nbsp; <img src="https://github.com/LucianoCirino/efficiency-nodes-media/blob/main/images/nodes/NODE%20-%20Evaluate%20Strings.png" width="320"> </p> </details>

Workflow Examples:

  1. HiRes-Fixing<br> <img src="https://github.com/LucianoCirino/efficiency-nodes-comfyui/blob/v2.0/workflows/HiResFix%20Script.png" width="800"><br>

  2. SDXL Refining & Noise Control Script<br> <img src="https://github.com/LucianoCirino/efficiency-nodes-comfyui/blob/v2.0/workflows/SDXL%20Refining%20%26%20Noise%20Control%20Script.png" width="800"><br>

  3. XY Plot: LoRA <code>model_strength</code> vs <code>clip_strength</code><br> <img src="https://github.com/LucianoCirino/efficiency-nodes-comfyui/blob/v2.0/workflows/XYPlot%20-%20LoRA%20Model%20vs%20Clip%20Strengths.png" width="800"><br>

  4. Stacking Scripts: XY Plot + Noise Control + HiRes-Fix<br> <img src="https://github.com/LucianoCirino/efficiency-nodes-comfyui/blob/v2.0/workflows/XYPlot%20-%20Seeds%20vs%20Checkpoints%20%26%20Stacked%20Scripts.png" width="800"><br>

  5. Stacking Scripts: AnimateDiff + HiRes-Fix (with ControlNet)<br> <img src="https://github.com/LucianoCirino/efficiency-nodes-comfyui/blob/v2.0/workflows/AnimateDiff%20%26%20HiResFix%20Scripts.gif" width="800"><br>

Dependencies

The python library <i><a href="https://github.com/danthedeckie/simpleeval" >simpleeval</a></i> is required to be installed if you wish to use the Simpleeval Nodes.

<pre>pip install simpleeval</pre>

Install:

To install, drop the "efficiency-nodes-comfyui" folder into the "...\ComfyUI\ComfyUI\custom_nodes" directory and restart UI.