← Open Source

This repository offers various extension nodes for ComfyUI. Nodes here have different characteristics compared to those in the ComfyUI Impact Pack.

AI EngineeringBuild agent workflow (visual)Python
Momentum
+0stars in 24 hours0.0%
831
Stars
96
Forks
+0
This week
23
Contributors
Created 2023-09-01 · Updated 2026-12-04 · #16923 today
Top developers
ltdrdataJettHustormwulfren
README

ComfyUI-Inspire-Pack

This repository offers various extension nodes for ComfyUI. Nodes here have different characteristics compared to those in the ComfyUI Impact Pack. The Impact Pack has become too large now...

Notice:

  • V1.24: Remove ControlNet [RegionalPrompts] (Inspire) requires Impact Pack V8.32 or later. With an older Impact Pack the regional prompts it returns lose their sigma_factor and scheduler_func_opt.
  • V1.18: To use the 'OSS' Scheduler, please update to ComfyUI version 0.3.28 or later (April 13th or newer) and Impact Pack version V8.11 or higher.
  • V1.9.1 To avoid confusion with the NOISE type in core, the type name has been changed to NOISE_IMAGE.
  • V0.73 The Variation Seed feature is added to Regional Prompt nodes, and it is only compatible with versions Impact Pack V5.10 and above.
  • V0.69 incompatible with the outdated ComfyUI IPAdapter Plus. (A version dated March 24th or later is required.)
  • V0.64 add sigma_factor to RegionalPrompt... nodes required Impact Pack V4.76 or later.
  • V0.62 support faceid in Regional IPAdapter
  • V0.48 optimized wildcard node. This update requires Impact Pack V4.39.2 or later.
  • V0.13.2 isn't compatible with old ControlNet Auxiliary Preprocessor. If you will use MediaPipeFaceMeshDetectorProvider update to latest version(Sep. 17th).
  • WARN: If you use version 0.12 to 0.12.2 without a GlobalSeed node, your workflow's seed may have been erased. Please update immediately.

Nodes

Lora Block Weight - This is a node that provides functionality related to Lora block weight.

  • This provides similar functionality to sd-webui-lora-block-weight
  • LoRA Loader (Block Weight): When loading Lora, the block weight vector is applied.
    • In the block vector, you can use numbers, R, A, a, B, and b.
    • R is determined sequentially based on a random seed, while A and B represent the values of the A and B parameters, respectively. a and b are half of the values of A and B, respectively.
    • The first value is for the weights outside the blocks, the text encoder among them. The next values go to the blocks in this order: the input, middle and output blocks of SD and SDXL, the double and single blocks of FLUX, and the layers.N of Z-Image, Lumina 2 and other models built that way. The ZIMAGE- presets have 31 values: the first and one for each of the 30 layers of Z-Image.
  • XY Input: LoRA Block Weight: This is a node in the Efficiency Nodes' XY Plot that allows you to use Lora block weight.
    • You must ensure that X and Y connections are made, and dependencies should be connected to the XY Plot.
    • Note: To use this feature, update Efficient Nodes to a version released after September 3rd.
  • Make LoRA Block Weight: Instead of directly applying the LoRA Block Weight to the MODEL, it is generated in a separate LBW_MODEL form. With prev_lbw_model linked, its LoRA goes on that LBW_MODEL and both are one LBW_MODEL, so Make LoRA Block Weight nodes can be linked one into the next.
  • Apply LoRA Block Weight: Apply LBW_MODEL to MODEL and CLIP
  • Stack LoRA Block Weight: Put an LBW_MODEL on prev_lbw_model, with a strength_model and strength_clip of its own, as one LBW_MODEL: the node for a LoRA that needs strengths of its own in a stack. The stack applies as Apply LoRA Block Weight nodes one after the other do, so several LoRAs with their block weights go into one Apply LoRA Block Weight, one Create Hook LoRA Block Weight or one .lbw.safetensors file. A bypassed Stack LoRA Block Weight passes on prev_lbw_model, so its LoRA is off.
  • Save LoRA Block Weight: Save LBW_MODEL as a .lbw.safetensors file. The LBW_MODEL of Make LoRA Block Weight or of a file of one LoRA is written as before. An LBW_MODEL that went through Stack LoRA Block Weight, also with one LoRA, is written as a stack, which needs this version or a newer one to load: an older version stops at it.
  • Load LoRA Block Weight: Load LBW_MODEL from .lbw.safetensors file. prev_lbw_model works as in Make LoRA Block Weight.
  • Create Hook LoRA Block Weight: Turn LBW_MODEL into HOOKS for the hook nodes of ComfyUI, such as Set CLIP Hooks, Cond Set Props and Set Hook Keyframes. strength_model, strength_clip and prev_hooks work as in Create Hook LoRA.
    • Use the HOOKS with a MODEL and CLIP the LoRA is not applied to. With LoRA Loader (Block Weight) or Apply LoRA Block Weight for the same LoRA, the LoRA is applied twice.

SEGS Supports nodes - This is a node that supports ApplyControlNet (SEGS) from the Impact Pack.

  • OpenPose Preprocessor Provider (SEGS): OpenPose preprocessor is applied for the purpose of using OpenPose ControlNet in SEGS.
  • Canny Preprocessor Provider (SEGS): Canny preprocessor is applied for the purpose of using Canny ControlNet in SEGS.
  • DW Preprocessor Provider (SEGS), MiDaS Depth Map Preprocessor Provider (SEGS), LeReS Depth Map Preprocessor Provider (SEGS), MediaPipe FaceMesh Preprocessor Provider (SEGS), HED Preprocessor Provider (SEGS), Fake Scribble Preprocessor (SEGS), AnimeLineArt Preprocessor Provider (SEGS), Manga2Anime LineArt Preprocessor Provider (SEGS), LineArt Preprocessor Provider (SEGS), Color Preprocessor Provider (SEGS), Inpaint Preprocessor Provider (SEGS), Tile Preprocessor Provider (SEGS), MeshGraphormer Depth Map Preprocessor Provider (SEGS), NormalMap Preprocessor Provider (SEGS), DepthAnything Preprocessor Provider (SEGS) (supports both V1 and V2 models)
  • MediaPipeFaceMeshDetectorProvider: This node provides BBOX_DETECTOR and SEGM_DETECTOR that can be used in Impact Pack's Detector using the MediaPipe-FaceMesh Preprocessor of ControlNet Auxiliary Preprocessors.

A1111 Compatibility support - These nodes assists in replicating the creation of A1111 in ComfyUI exactly.

  • KSampler (Inspire): ComfyUI uses the CPU for generating random noise, while A1111 uses the GPU. One of the three factors that significantly impact reproducing A1111's results in ComfyUI can be addressed using KSampler (Inspire).
    • Other point #1 : Please make sure you haven't forgotten to include 'embedding:' in the embedding used in the prompt, like 'embedding:easynegative.'
    • Other point #2 : ComfyUI and A1111 have different interpretations of weighting. To align them, you need to use BlenderNeko/Advanced CLIP Text Encode.
  • KSamplerAdvanced (Inspire): Inspire Pack version of KSampler (Advanced).
  • RandomNoise (inspire): Inspire Pack version of RandomNoise.
  • Common Parameters
    • batch_seed_mode determines how seeds are applied to batch latents:
      • comfy: This method applies the noise to batch latents all at once. This is advantageous to prevent duplicate images from being generated due to seed duplication when creating images.
      • incremental: Similar to the A1111 case, this method incrementally increases the seed and applies noise sequentially for each batch. This approach is beneficial for straightforward reproduction using only the seed.
      • variation_strength: In each batch, the variation strength starts from the set variation_strength and increases by xxx.
    • variation_seed and variation_strength - Initial noise generated by the seed is transformed to the shape of variation_seed by variation_strength. If variation_strength is 0, it only relies on the influence of the seed, and if variation_strength is 1.0, it is solely influenced by variation_seed.
      • These parameters are used when you want to maintain the composition of an image generated by the seed but wish to introduce slight changes.

Sampler nodes

  • KSampler Progress (Inspire) - In KSampler, the sampling process generates latent batches. By using Video Combine node from ComfyUI-VideoHelperSuite, you can create a video from the progress.
  • Scheduled CFGGuider (Inspire) - This is a CFGGuider that adjusts the schedule from from_cfg to to_cfg using linear, log, and exp methods.
  • Scheduled PerpNeg CFGGuider (Inspire) - This is a PerpNeg CFGGuider that adjusts the schedule from from_cfg to to_cfg using linear, log, and exp methods.

Prompt Support - These are nodes for supporting prompt processing.

  • Load Prompts From Dir (Inspire): It sequentially reads prompts files from the specified directory. The output it returns is ZIPPED_PROMPT.

    • Specify the directories located under ComfyUI-Inspire-Pack/prompts/

    • One prompts file can have multiple prompts separated by ---.

    • A prompt is written as positive:<text>, negative:<text> and name:<text>. Each of the three can be left out, a text can run over several lines, and the keys are read in any letter case. The file must be saved as UTF-8.

      positive:a cat on a sofa
      negative:text, watermark
      name:cat
      ---
      positive:a dog on the beach
      
    • A file or folder that holds no prompt in this form stops the node with an error that names it. Load Prompts From File (Inspire) and Load Single Prompt From File (Inspire) read the same form.

    • e.g. prompts/example

    • NOTE: This node provides advanced option via Show advanced

      • load_cap, start_index
    • Load Prompts From File (Inspire): It sequentially reads prompts from the specified file. The output it returns is ZIPPED_PROMPT.

    • Specify the file located under ComfyUI-Inspire-Pack/prompts/

    • e.g. prompts/example/prompt2.txt

    • NOTE: This node provides advanced option via Show advanced

      • load_cap, start_index
  • Load Single Prompt From File (Inspire): Loads a single prompt from a file containing multiple prompts by using an index.

  • The prompts file directory can be specified as inspire_prompts in extra_model_paths.yaml

  • Unzip Prompt (Inspire): Separate ZIPPED_PROMPT into positive, negative, and name components.

    • positive and negative represent text prompts, while name represents the name of the prompt. When loaded from a file using Load Prompts From File (Inspire), the name corresponds to the file name.
  • Zip Prompt (Inspire): Create ZIPPED_PROMPT from positive, negative, and name_opt.

    • If name_opt is omitted, it will be considered as an empty name.
  • Prompt Extractor (Inspire): This node reads prompt information from the image's metadata. Since it retrieves all the text, you need to directly specify the prompts to be used for positive and negative as indicated in the info.

    • A text linked from another node is shown as ['12', 0] in the info and gives an empty text. Specify the text of node 12 instead.
  • Prompt Extractor From Dir (Inspire): Prompt Extractor (Inspire) for every image of a folder. positive and negative are lists with one text for each image, so the nodes after it run once for each image. The info shows the texts of each image under its file name.

    • image_load_cap, start_index, load_always and sort_method work as in Load Image List From Dir (Inspire). With the same values both nodes read the same images in the same order, so the texts line up with the images.
    • An image without prompt information gives an empty text and keeps its place in the lists.
  • Global Seed (Inspire): This is a node that controls the global seed without a separate connection line. It only controls when the widget's name is 'seed' or 'noise_seed'. Additionally, if 'control_before_generate' is checked, it controls the seed before executing the prompt.

    • A seed linked from another node, such as Int, is excluded from the target, so link a seed from an Int node to control it separately. The legacy Primitive node is an exception: the page writes its value into the prompt, so a seed linked from one is controlled by this node anyway.
  • Global Sampler (Inspire): This node is similar to GlobalSeed and can simultaneously set the sampler_name and scheduler for all nodes in the workflow.

    • It applies only to nodes that have both sampler_name and scheduler, and it won't be effective if GlobalSampler is muted.
    • If some of the sampler_name and scheduler have been converted to input and connected to Primitive node, it will not apply only to the converted widget. The widget that has not been converted to input will still be affected.
  • Bind [ImageList, PromptList] (Inspire): Bind Image list and zipped prompt list to export image, positive, negative, and prompt_label in a list format. If there are more prompts than images, the excess prompts are ignored, and if there are not enough, the remainder is filled with default input based on the images.

  • Wildcard Encode (Inspire): The combination node of ImpactWildcardEncode and BlenderNeko's CLIP Text Encode (Advanced).

    • To use this node, you need both the Impact Pack and the Advanced CLIP Text Encode extensions.
    • This node is identical to ImpactWildcardEncode, but it encodes using CLIP Text Encode (Advanced) instead of the default CLIP Text Encode from ComfyUI for CLIP Text Encode.
    • Requirement: Impact Pack V4.18.6 or above
  • Prompt Builder (Inspire): This node is a convenience node that allows you to easily assemble prompts by selecting categories and presets. To modify the presets, edit the ComfyUI-InspirePack/resources/prompt-builder.yaml file.

  • Seed Explorer (Inspire): This node helps explore seeds by allowing you to adjust the variation seed gradually in a prompt-like form.

    • This feature is designed for utilizing a seed that you like, adding slight variations, and then further modifying from there when exploring.
    • In the seed_prompt, the first seed is considered the initial seed, and the reflection rate is omitted, always defaulting to 1.0.
    • Each prompt is separated by a comma, and from the second seed onwards, it should follow the format seed:strength.
    • Pressing the "Add to prompt" button will append additional_seed:additional_strength to the prompt.
  • Composite Noise (Inspire): This node overwrites a specific area on top of the destination noise with the source noise.

  • Random Generator for List (Inspire): When connecting the list output to the signal input, this node generates random values for all items in the list.

  • Make Basic Pipe (Inspire): This is a node that creates a BASIC_PIPE using Wildcard Encode. The Add select to determines whether the selected item from the Select to... combo will be input as positive wildcard text or negative wildcard text.

  • Remove ControlNet (Inspire), Remove ControlNet [RegionalPrompts] (Inspire): Remove ControlNet from CONDITIONING or REGIONAL_PROMPTS.

    • Remove ControlNet [RegionalPrompts] (Inspire) requires Impact Pack V8.32 or above.

Regional Nodes - These node simplifies the application of prompts by region.

  • Regional Sampler - These nodes assists in the easy utilization of the regional sampler in the Impact Pack.
    • Regional Prompt Simple (Inspire): This node takes mask and basic_pipe as inputs and simplifies the creation of REGIONAL_PROMPTS.
    • Regional Prompt By Color Mask (Inspire): Similar to Regional Prompt Simple (Inspire), this function accepts a color mask image as input and defines the region using the color value that will be used as the mask, instead of directly receiving the mask.
      • The color value can only be in the form of a hex code like #FFFF00 or a decimal number.
  • Regional Conditioning - These nodes provides assistance for simplifying the use of Conditioning (Set Mask).
    • Regional Conditioning Simple (Inspire)
    • Regional Conditioning By Color Mask (Inspire)
  • Regional IPAdapter (deprecated) - These nodes facilitates the convenient use of the attn_mask feature in ComfyUI IPAdapter Plus custom nodes.
    • To use this node, you need to install the ComfyUI IPAdapter Plus extension.
    • Regional IPAdapter Mask (Inspire), Regional IPAdapter By Color Mask (Inspire)
    • Regional IPAdapter Encoded Mask (Inspire), Regional IPAdapter Encoded By Color Mask (Inspire): accept embeds instead of image
    • These four nodes and Apply Regional IPAdapters (Inspire) are deprecated; saved workflows still load and run. Use Regional Adapter (Inspire) with the IPADAPTER_PIPE of IPAdapter Model Helper (Inspire), and Apply Regional Adapters (Inspire):
      • weight_type, weight_v2, combine_embeds, neg_image, embeds and neg_embeds are set by IPAdapter Pipe Options (Inspire) between the helper and Regional Adapter.
      • For a color mask, Regional Adapter By Color Mask (Inspire) replaces Regional IPAdapter By Color Mask, and with embeds set by IPAdapter Pipe Options it replaces Regional IPAdapter Encoded By Color Mask.
      • Apply Regional IPAdapters took the model from the pipe. Link the MODEL output of IPAdapter Model Helper, which has the FaceID LoRA of a FaceID preset, to model of Apply Regional Adapters.
      • noise, unfold_batch and faceid_v2 of these nodes were never used.
  • Apply Regional Adapters (Inspire) - Applies REGIONAL_ADAPTER entries of any kind of adapter to a MODEL in the order of its inputs.
    • An entry that changes the prompt needs positive and negative. An entry that adds to the prompt itself does so in the order of the inputs, before the copies below.
    • An entry that gives its region its own copy of the prompt gets a copy of both, and the area that none of them covers keeps the plain prompt. Region masks of different sizes are stretched to one size, as the sampler stretches them to the latent.
    • Without such an entry, positive and negative come out as they went in.
    • With several people in one picture the sampler decides where each of them stands, so on some seeds a region does not get the person of its reference.
  • Regional Adapter (Inspire) - Makes a REGIONAL_ADAPTER entry from the pipe of a model helper (see Models), IPAdapter Model Helper, PuLID Model Helper, InstantID Model Helper or Redux Model Helper, directly or through the options node of its kind. Entries of different kinds can be applied by one Apply Regional Adapters. An IPAdapter Plus entry gives its region a look and does not hold a person inside it: beside a PuLID entry, a face that the sampler puts across the edge between the two regions gets the PuLID face on the part that lies in the PuLID region, and so does a second person in that region. IPAdapter Advanced and Apply PuLID of those packs chained give the same picture. PuLID beside PuLID or InstantID gave a face in each region. A third-party apply node placed after Apply Regional Adapters still writes into the model it gets, so running it again after a change of its weight can give another picture than a fresh run.
    • image is the reference picture; mask the region, the whole picture without it.
    • weight goes from -1 to 5 and defaults to 1.0. Values that suit some kinds better: IPAdapter Plus 0.7, as Regional IPAdapter Mask; InstantID 0.8, as Apply InstantID; IPAdapter SD3.5 0.5; IPAdapter FLUX with the InstantX file 1.0 with end_at 0.7; IPAdapter FLUX with the XLabs file 0.6 at cfg 1, or 0.92 with cfg 3.5 and an empty negative prompt.
    • IPAdapter Plus: as Regional IPAdapter Mask, on the model linked to Apply Regional Adapters.
    • PuLID: gives the masked region the face of image, with PuLID for SDXL and PuLID FLUX for FLUX.1, which Inspire implements itself on ComfyUI's models. An SDXL file gives the pictures of Apply PuLID of PuLID_ComfyUI, with its ranges and method; a FLUX.1 file averages the faces of all pictures of image.
      • FLUX.2 klein is not covered: in the PuLID weights published for it (pulid_flux2_klein_v2.safetensors) the layers that put the face into the picture are untrained. FLUX.2 takes reference pictures through ComfyUI's ReferenceLatent.
    • InstantID: gives the masked region the face of image with ComfyUI InstantID (SDXL): the attention of InstantID Patch Attention on the model, and InstantID Apply ControlNet on the region's copy of the prompt. weight is ip_weight of Apply InstantID Advanced.
      • Without image_kps of InstantID Pipe Options, the keypoints are taken from image fitted to the mask's bounding box, with its centre at a third of the box's height; without a mask, from image itself, as in Apply InstantID.
    • Redux: adds the Redux tokens of image to the prompt (FLUX.1), as Apply Style Model does with multiply, and lets only the picture inside the mask attend to them. weight is that node's strength; start_at and end_at keep the tokens to that part of the sampling.
      • References in two regions come out as one picture, not as two half pictures: each region takes the look of its own reference, and a scene spreads its sky and water past its mask. Sampling takes about 1.6 s/it against 1.0 s/it without it (FLUX.1-dev, 1024 x 1024).
    • IPAdapter FLUX (the FLUX.1 InstantX and FLUX.1 XLabs presets of IPAdapter Model Helper): gives the masked region the look of image with an IP-Adapter for FLUX.1, which Inspire implements itself. Only the first picture of image is used.
      • The InstantX file lays thin vertical stripes, one per 16 px, over the whole picture in the steps after 0.7 of the sampling, with the nodes of ComfyUI-IPAdapter-Flux too: end_at 0.7 at weight 1.0 takes them away or leaves a faint grain; a lower weight does not. With end_at above 0.7 on the pipe of the FLUX.1 InstantX preset, the page shows a warning under the node; the × at its right end closes it until that condition ends.
      • A scene as reference spreads past its mask when the prompt says little; portraits stay in their regions. The XLabs file carries attributes, not identity, and gives muddy pictures at weight 1.0 with cfg 1: use 0.6, or 0.92 with cfg 3.5 and an empty negative prompt. At 0.6 a prompt that names age and hair wins over the reference. Both files are under the FLUX.1-dev non-commercial license.
    • IPAdapter SD3.5 (the SD3.5 Large InstantX preset of IPAdapter Model Helper): gives the masked region the look of image with the InstantX IP-Adapter for SD3.5 Large, which Inspire implements itself. Only the first picture of image is used.
      • At weight 0.5 a prompt that names age and hair wins over the reference; the pack of InstantX defaults to 1.0. start_at and end_at are fractions of the sampling as everywhere in ComfyUI, while that pack counts them as 1 - sigma, so the same numbers cover other steps there.
    • PuLID, PuLID FLUX, IPAdapter FLUX and IPAdapter SD3.5 hold code ported from other node packs: THIRD_PARTY_NOTICES.md lists the sources, their licenses and notices.
  • Regional Adapter By Color Mask (Inspire) - Regional Adapter with a color mask image and mask_color in place of mask: the region is where color_mask has that color, a hex code like #FF0000, a color name like red or a decimal number. The MASK output is that region.
  • Pipe options - What only one kind of adapter has is set on its pipe, between the model helper and Regional Adapter. Every region made from that pipe gets these settings; a pipe that passes no options node has the defaults of the options node. An options node loads nothing: options nodes on one helper share its models.
    • IPAdapter Pipe Options (Inspire): weight_type, weight_v2, combine_embeds, and optionally neg_image, or embeds and neg_embeds in place of image, as the regional IPAdapter nodes have them. The defaults are those of Regional IPAdapter Mask. The other nodes that take an IPADAPTER_PIPE read the pipe as before. The FLUX.1 and SD3.5 presets do not use these options.
    • PuLID Pipe Options (Inspire): method of Apply PuLID, fidelity by default. A FLUX.1 file has none.
    • InstantID Pipe Options (Inspire): controlnet_strength, noise and image_kps of Apply InstantID Advanced (cn_strength, noise, image_kps), 0.8, 0.0 and none by default. image_kps is the pose picture of every region made from the pipe: a pose of its own per region needs an options node per region. The keypoints of its largest face are drawn from it, as Apply InstantID Advanced does; a picture without a face, such as the output of Face Keypoints Preprocessor, is taken as it is.
  • Regional Seed Explorer - These nodes restrict the variation through a seed prompt, applying it only to the masked areas.
    • Regional Seed Explorer By Mask (Inspire)
    • Regional Seed Explorer By Color Mask (Inspire)
  • Regional CFG (Inspire) - By applying a mask as a multiplier to the configured cfg, it allows different areas to have different cfg settings.
  • Color Mask To Depth Mask (Inspire) - Convert the color map from the spec text into a mask with depth values ranging from 0.0 to 1.0.
    • The range of the mask value is limited to 0.0 to 1.0.
    • base_value: Sets the value of the base mask.
    • dilation: Dilation applied to each mask layer before flattening.
    • flatten_method: The method of flattening the mask layers.
      • The layers are flattened including the base layer set by base_value.
      • override: Each pixel is overwritten by the non-zero value of the upper layer.
      • sum: Each pixel is flattened by summing the values of all layers.
      • max: Each pixel is flattened by taking the maximum value from all layers.

Image Util

  • Load Image Batch From Dir (Inspire): This is almost same as LoadImagesFromDirectory of ComfyUI-Advanced-Controlnet. This is just a modified version. Just note that this node forcibly normalizes the size of the loaded image to match the size of the first image, even if they are not the same size, to create a batch image.
  • Load Image List From Dir (Inspire): This is almost same as Load Image Batch From Dir (Inspire). However, note that this node loads data in a list format, not as a batch, so it returns images at their original size without normalizing the size.
  • Load Image (Inspire): This node is similar to LoadImage, but the loaded image information is stored in the workflow. The image itself is stored in the workflow, making it easier to reproduce image generation on other computers.
  • Change Image Batch Size (Inspire): Change Image Batch Size
    • simple: if the batch_size is larger than the batch size of the input image, the last frame will be duplicated. If it is smaller, it will be simply cropped.
  • Change Latent Batch Size (Inspire): Change Latent Batch Size
  • ImageBatchSplitter //Inspire, LatentBatchSplitter //Inspire: The script divides a batch of images/latents into individual images/latents, each with a quantity equal to the specified split_count. An additional output slot is added for each split_count. If the number of images/latents exceeds the split_count, the remaining ones are returned as the "remained" output.
  • Color Map To Masks (Inspire): From the color_map, it extracts the top max_count number of colors and creates masks. min_pixels represents the minimum number of pixels for each color.
  • Select Nth Mask (Inspire): Extracts the nth mask from the mask batch.

Backend Cache - Nodes for storing arbitrary data from the backend in a cache and sharing it across multiple workflows.

  • Cache Backend Data (Inspire): Stores any backend data in the cache using a string key. Tags are for quick reference.
  • Retrieve Backend Data (Inspire): Retrieves cached backend data using a string key.
  • Remove Backend Data (Inspire): Removes cached backend data.
    • Deletion in this node only removes it from the cache managed by Inspire, and if it's still in use elsewhere, it won't be completely removed from memory.
    • signal_opt is used to control the order of execution for this node; it will still run without a signal_opt input.
    • When using '*' as the key, it clears all data.
  • Show Cached Info (Inspire): Displays information about cached data.
    • A tag keeps 20 entries by default. A tag whose name holds ckpt keeps 5, and latent and image keep 100. You can edit the size of each tag in cache_settings.json.
    • Runtime tag cache size can be modified on the Show Cached Info (Inspire) node. For example: ckpt: 10.
  • Cache Backend Data [NumberKey] (Inspire), Retrieve Backend Data [NumberKey] (Inspire), Remove Backend Data [NumberKey] (Inspire): These nodes are provided for convenience in the automation process, allowing the use of numbers as keys.
  • Cache Backend Data List (Inspire), Cache Backend Data List [NumberKey] (Inspire): This node allows list input for backend cache. Conversely, nodes like Cache Backend Data [NumberKey] (Inspire) that do not accept list input will attempt to cache redundantly and overwrite existing data if provided with a list input. Therefore, it is necessary to use a unique key for each element to prevent this. This node caches the combined list. When retrieving cached backend data through this node, the output is in the form of a list.
  • Shared Checkpoint Loader (Inspire): When loading a checkpoint through this loader, it is automatically cached in the backend cache. Additionally, if it is already cached, it retrieves it from the cache instead of loading it anew.
    • When key_opt is empty, the ckpt_name is set as the cache key. The cache key output can be used for deletion purposes with Remove Back End.
    • This node resolves the issue of reloading checkpoints during workflow switching.
  • Shared Diffusion Model Loader (Inspire): Similar to the Shared Checkpoint Loader (Inspire) but used for loading Diffusion models instead of Checkpoints.
  • Shared Text Encoder Loader (Inspire): Similar to the Shared Checkpoint Loader (Inspire) but used for loading Text Encoder models instead of Checkpoints.
    • This node also functions as a unified node for CLIPLoader, DualCLIPLoader, and TripleCLIPLoader.
  • Stable Cascade Checkpoint Loader (Inspire): This node provides a feature that allows you to load the stage_b and stage_c checkpoints of Stable Cascade at once, and it also provides a backend caching feature, optionally.
  • Is Cached (Inspire): Returns whether the cache exists.
  • Cache Bridge (Inspire): Caches the data it takes under key, a list as a whole, and outputs it. Later runs output the cached data without running the nodes before it, so those nodes can be muted. After a flip of trigger, in either direction, the next run takes what the nodes before make on that run, replaces the cached data with it and outputs it.

Conditioning - Nodes for conditionings

  • Concat Conditionings with Multiplier (Inspire): Concatenating an arbitrary number of Conditionings while applying a multiplier for each Conditioning. The multiplier depends on comfy_PoP, so comfy_PoP must be installed.
  • Conditioning Upscale (Inspire): When upscaling an image, it helps to expand the conditioning area according to the upscale factor. Taken from ComfyUI_Dave_CustomNode
  • Conditioning Stretch (Inspire): When upscaling an image, it helps to expand the conditioning area by specifying the original resolution and the new resolution to be applied. Taken from ComfyUI_Dave_CustomNode

Models - Nodes for models

  • IPAdapter Model Helper (Inspire): This provides presets that allow for easy loading of the IPAdapter related models. However, it is essential for the model's name to be accurate.
    • You can download the appropriate model through ComfyUI-Manager.
    • The presets FLUX.1 InstantX, FLUX.1 XLabs and SD3.5 Large InstantX load the IP-Adapters for FLUX.1 and SD3.5 Large that Inspire implements itself, for Regional Adapter (Inspire); they need neither IPAdapter Plus nor clip, and read neither the LoRA strengths nor insightface_model_name. Their pipe is only for Regional Adapter; IPADAPTER and INSIGHTFACE give nothing, MODEL and CLIP give what came in.
      • FLUX.1 InstantX: ipadapter-flux/ip-adapter.bin of InstantX/FLUX.1-dev-IP-Adapter, with clip_vision/sigclip_vision_patch14_384.safetensors.
      • FLUX.1 XLabs: xlabs/ipadapters/ip_adapter.safetensors of XLabs-AI/flux-ip-adapter, with a CLIP ViT-L/14 vision model under the first of these names that is found: clip_vision/clip_vision_l.safetensors, the name of the example workflow of x-flux-comfyui, or clip_vision/clip-vit-large-patch14.safetensors, the model.safetensors of openai/clip-vit-large-patch14 renamed.
      • SD3.5 Large InstantX: ipadapter/ip-adapter.bin of InstantX/SD3.5-Large-IP-Adapter, with clip_vision/sigclip_vision_patch14_384.safetensors.
  • IPAdapter Model Helper [Manual] (Inspire): Instead of a preset, you pick the IPAdapter, CLIP vision and LoRA model files and whether InsightFace is loaded. The lists also hold the folders added with the ipadapter, clip_vision and loras keys of extra_model_paths.yaml. After the files of ipadapter, ipadapter_model lists those of ipadapter-flux and xlabs/ipadapters, marked (FLUX.1); such a file, or the InstantX file for SD3.5 Large in ipadapter, gives what its preset gives without IPAdapter Plus, with the picked LoRA applied to MODEL and CLIP.
    • An entry for extra_model_paths.yaml in the ComfyUI folder. The example file of ComfyUI has no ipadapter key, so add it to your own file:
      my_models:
          base_path: /path/to/models
          ipadapter: ipadapter/
          clip_vision: clip_vision/
          loras: loras/
  • The helpers below give the pipe of their kind first, for Regional Adapter (Inspire); what only their kind has is set by its pipe options node (see Regional).
  • PuLID Model Helper (Inspire): Loads a PuLID model for SDXL or for FLUX.1 (the kind follows from the file), EVA-CLIP and the face analysis. It needs the Python packages insightface and facexlib of additional_requirements.txt (pip install -r additional_requirements.txt in the folder of the Inspire Pack) and one of onnxruntime or onnxruntime-gpu, not both: the file says why. It also needs InsightFace's antelopev2 in models/insightface/models/antelopev2, and EVA02_CLIP_L_336_psz14_s6B.pt of QuanSun/EVA-CLIP (856 MB) in models/clip_vision or in the Hugging Face cache, where PuLID_ComfyUI downloads it; Inspire reads that file and never downloads it. On first use the two libraries fetch what is missing themselves: insightface downloads antelopev2 into models/insightface/models, and facexlib its detection and parsing weights (detection_Resnet50_Final.pth, parsing_parsenet.pth, parsing_bisenet.pth) into its own package folder. The outputs after the pipe also fit the nodes of PuLID_ComfyUI; for FLUX.1 pulid gives nothing. cache_mode keeps the face analysis, EVA-CLIP or both in the backend cache, so another workflow does not load them again; both kinds share them.
  • InstantID Model Helper (Inspire): Loads the InstantID model and the face analysis of ComfyUI InstantID and its ControlNet in one node. The outputs after the pipe also fit the nodes of that pack. cache_mode keeps the face analysis in the backend cache, shared with PuLID Model Helper (Inspire) for the same provider.
  • Redux Model Helper (Inspire): Loads the Redux style model (style_models/flux1-redux-dev.safetensors) and its CLIP vision model (clip_vision/sigclip_vision_patch14_384.safetensors) with the loaders of ComfyUI. The outputs after the pipe also fit Apply Style Model and CLIP Vision Encode. cache_mode keeps the CLIP vision model in the backend cache, shared with IPAdapter Model Helper (Inspire) for the same file.

List - Nodes for List processing

  • Float Range (Inspire): Create a float list that increases the value by step from start to stop. A list as large as the maximum limit is created, and when ensure_end is enabled, the last value of the list becomes the stop value.
  • Worklist To Item List (Inspire): The list in ComfyUI allows for repeated execution of a sub-workflow. This groups these repetitions (a.k.a. list) into a single ITEM_LIST output. ITEM_LIST can then be used in ForeachList.
  • ▶Foreach List (Inspire): A starting node for performing iterative tasks by retrieving items one by one from the ITEM_LIST.\nGenerate a new intermediate_output using item and intermediate_output as inputs, then connect it to ForeachListEnd.\nNOTE:If initial_input is omitted, the first item in item_list is used as the initial value, and the processing starts from the second item in item_list.
  • Foreach List◀ (Inspire): An end node for performing iterative tasks by retrieving items one by one from the ITEM_LIST.\nNOTE:Directly connect the outputs of ForeachListBegin to 'flow_control' and 'remained_list'.
  • Drop Items (Inspire): Removes all items from the ITEM_LIST. If the ITEM_LIST generated through this node is passed to ForeachListEnd, the process is immediately terminated.

Util - Utilities

  • ToIPAdapterPipe (Inspire), FromIPAdapterPipe (Inspire): These nodes assists in conveniently using the bundled ipadapter_model, clip_vision, and model required for applying IPAdapter.
  • List Counter (Inspire): When each item in the list traverses through this node, it increments a counter by one, generating an integer value.
  • RGB Hex To HSV (Inspire): Convert an RGB hex string like #FFD500 to hue (0 to 360), saturation and value (0 to 1).

Credits

ComfyUI/ComfyUI - A powerful and modular stable diffusion GUI.

ComfyUI/sd-webui-lora-block-weight - The original idea for LoraBlockWeight came from here, and it is based on the syntax of this extension.

jags111/efficiency-nodes-comfyui - The XY Input provided by the Inspire Pack supports the XY Plot of this node.

Fannovel16/comfyui_controlnet_aux - The wrapper for the controlnet preprocessor in the Inspire Pack depends on these nodes.

Kosinkadink/ComfyUI-Advanced-Controlnet - Load Images From Dir (Inspire) code is came from here.

Trung0246/ComfyUI-0246 - Nice bypass hack!

cubiq/ComfyUI_IPAdapter_plus - IPAdapter related nodes depend on this extension.

Davemane42/ComfyUI_Dave_CustomNode - Original author of ConditioningStretch, ConditioningUpscale

BlenderNeko/ComfyUI_Noise - slerp code for noise variation

BadCafeCode/execution-inversion-demo-comfyui - reference loop implementation for ComfyUI

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store