← See All Custom Node Packs

efficiency-nodes-comfyui

1483

Run ComfyUI Easily with InstaSD

Skip the complex setup and run ComfyUI online. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

XY Input: Clip Skip

XY Input: Clip Skip Node Documentation

Overview

The XY Input: Clip Skip node is part of the Efficiency Nodes package designed for use within the ComfyUI interface. This node facilitates the exploration of different clip skip values by allowing users to define a range of values that can be rendered on an XY plot. This feature is especially helpful in finding the best clip skip value for rendering high-quality images with specific models, by providing a visual reference for how different clip skip settings affect the final output.

What It Does

This node allows users to specify a range of clip skip values for experimentation in an XY plot. Clip skips are typically used to determine how many layers of a CLIP model should be skipped during inference. By testing various clip skip values, users can determine the optimal number of layers to skip to achieve the desired image output quality from a model.

Inputs

Required Inputs

  1. Target Checkpoint:

    • Choices: "Base", "Refiner"
    • Description: Determines whether the clip skip values will be applied to the base model or the refiner model. This choice affects which part of the model the clip skip will impact, which can be crucial in workflows involving multiple models or a primary model and a refiner model.
  2. Batch Count:

    • Type: Integer
    • Range: 0 to 50
    • Default: 3
    • Description: Sets the number of clip skip values to generate and plot. A batch count of zero effectively disables this input, while higher values increase the range of clip skips evaluated.
  3. First Clip Skip:

    • Type: Integer
    • Range: -24 to -1
    • Default: -1
    • Description: Specifies the starting value for the clip skip range. This value indicates how many layers from the end of the CLIP model will be skipped initially.
  4. Last Clip Skip:

    • Type: Integer
    • Range: -24 to -1
    • Default: -3
    • Description: Specifies the ending value for the clip skip range. This determines how many layers may be skipped at the higher end of the exploration range.

Outputs

The node produces a single output intended to be connected to an XY Plot node or an equivalent node that can interpret its results:

  • X or Y:
    • This output is a tuple consisting of an identifier "Clip Skip" and a list of clip skip values generated from the specified range and batch count. These values are used as parameters in an XY plot to visualize the effect of different clip skips.

Usage in Workflows

In a ComfyUI workflow, the XY Input: Clip Skip node is typically used in conjunction with an XY Plot node. Users integrate it as follows:

  1. Insert the Node: Place the node in the workflow where clip skip exploration is needed, usually upstream of an XY Plot node.

  2. Connect to XY Plot: Link the output of the XY Input: Clip Skip node to an XY Plot node. This connection passes the batch of clip skip values to the plot for rendering.

  3. Adjust Parameters: Set the target checkpoint, batch count, and clip skip range that you wish to explore.

  4. Execute Workflow: Run the workflow to generate visual output that shows how various clip skip adjustments impact the rendering process.

This node is especially useful in complex models or workflows where tuning clip skips is critical for achieving the optimal output quality.

Special Features or Considerations

  • The clip skip values are defined as negative integers, following the convention of working through layers of a model from the top (final layers) downward.
  • Users should be aware of the clip skip limits and ensure they select appropriate values, as extreme values could lead to poor model performance or unexpected results.
  • When used in multi-node workflows, be mindful of potential interactions between clip skips and other conditioning or refinement processes which may be connected.
Want to try efficiency-nodes-comfyui without installing anything? Run ComfyUI online on InstaSD's cloud GPUs — no setup required.