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...
- V1.24:
Remove ControlNet [RegionalPrompts] (Inspire)requires Impact Pack V8.32 or later. With an older Impact Pack the regional prompts it returns lose theirsigma_factorandscheduler_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
NOISEtype in core, the type name has been changed toNOISE_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
MediaPipeFaceMeshDetectorProviderupdate 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.
- 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.Nof Z-Image, Lumina 2 and other models built that way. TheZIMAGE-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 Nodesto 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_modellinked, its LoRA goes on that LBW_MODEL and both are one LBW_MODEL, soMake LoRA Block Weightnodes 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 astrength_modelandstrength_clipof its own, as one LBW_MODEL: the node for a LoRA that needs strengths of its own in a stack. The stack applies asApply LoRA Block Weightnodes one after the other do, so several LoRAs with their block weights go into oneApply LoRA Block Weight, oneCreate Hook LoRA Block Weightor one .lbw.safetensors file. A bypassedStack LoRA Block Weightpasses onprev_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 Weightor of a file of one LoRA is written as before. An LBW_MODEL that went throughStack 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_modelworks as inMake 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 PropsandSet Hook Keyframes.strength_model,strength_clipandprev_hookswork as inCreate Hook LoRA.- Use the HOOKS with a MODEL and CLIP the LoRA is not applied to. With
LoRA Loader (Block Weight)orApply LoRA Block Weightfor the same LoRA, the LoRA is applied twice.
- Use the HOOKS with a MODEL and CLIP the LoRA is not applied to. With
OpenPose Preprocessor Provider (SEGS): OpenPose preprocessor is applied for the purpose of using OpenPose ControlNet in SEGS.- You need to install ControlNet Auxiliary Preprocessors to use this.
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 providesBBOX_DETECTORandSEGM_DETECTORthat can be used in Impact Pack's Detector using theMediaPipe-FaceMesh Preprocessorof 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 usingKSampler (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 ofKSampler (Advanced).RandomNoise (inspire): Inspire Pack version ofRandomNoise.- Common Parameters
batch_seed_modedetermines 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 setvariation_strengthand increases byxxx.
variation_seedandvariation_strength- Initial noise generated by the seed is transformed to the shape ofvariation_seedbyvariation_strength. Ifvariation_strengthis 0, it only relies on the influence of the seed, and ifvariation_strengthis 1.0, it is solely influenced byvariation_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.
KSampler Progress (Inspire)- In KSampler, the sampling process generates latent batches. By usingVideo Combinenode 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.
-
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>andname:<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)andLoad 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_promptsinextra_model_paths.yaml -
Unzip Prompt (Inspire): Separate ZIPPED_PROMPT intopositive,negative, and name components.positiveandnegativerepresent text prompts, whilenamerepresents the name of the prompt. When loaded from a file usingLoad 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 forpositiveandnegativeas 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.
- A text linked from another node is shown as
-
Prompt Extractor From Dir (Inspire):Prompt Extractor (Inspire)for every image of a folder.positiveandnegativeare 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_alwaysandsort_methodwork as inLoad 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 anIntnode 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.
- A seed linked from another node, such as
-
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
GlobalSampleris muted. - If some of the
sampler_nameandschedulerhave 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.
- It applies only to nodes that have both sampler_name and scheduler, and it won't be effective if
-
Bind [ImageList, PromptList] (Inspire): Bind Image list and zipped prompt list to exportimage,positive,negative, andprompt_labelin 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 usingCLIP 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 theComfyUI-InspirePack/resources/prompt-builder.yamlfile. -
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_strengthto 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. TheAdd select todetermines whether the selected item from theSelect 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 Sampler - These nodes assists in the easy utilization of the regional sampler in the
Impact Pack.Regional Prompt Simple (Inspire): This node takesmaskandbasic_pipeas inputs and simplifies the creation ofREGIONAL_PROMPTS.Regional Prompt By Color Mask (Inspire): Similar toRegional 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 Pluscustom 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): acceptembedsinstead ofimage- These four nodes and
Apply Regional IPAdapters (Inspire)are deprecated; saved workflows still load and run. UseRegional Adapter (Inspire)with theIPADAPTER_PIPEofIPAdapter Model Helper (Inspire), andApply Regional Adapters (Inspire):weight_type,weight_v2,combine_embeds,neg_image,embedsandneg_embedsare set byIPAdapter Pipe Options (Inspire)between the helper andRegional Adapter.- For a color mask,
Regional Adapter By Color Mask (Inspire)replacesRegional IPAdapter By Color Mask, and withembedsset byIPAdapter Pipe Optionsit replacesRegional IPAdapter Encoded By Color Mask. Apply Regional IPAdapterstook the model from the pipe. Link theMODELoutput ofIPAdapter Model Helper, which has the FaceID LoRA of a FaceID preset, tomodelofApply Regional Adapters.noise,unfold_batchandfaceid_v2of these nodes were never used.
Apply Regional Adapters (Inspire)- AppliesREGIONAL_ADAPTERentries of any kind of adapter to aMODELin the order of its inputs.- An entry that changes the prompt needs
positiveandnegative. 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,
positiveandnegativecome 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.
- An entry that changes the prompt needs
Regional Adapter (Inspire)- Makes aREGIONAL_ADAPTERentry from the pipe of a model helper (see Models),IPAdapter Model Helper,PuLID Model Helper,InstantID Model HelperorRedux Model Helper, directly or through the options node of its kind. Entries of different kinds can be applied by oneApply 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 AdvancedandApply PuLIDof those packs chained give the same picture. PuLID beside PuLID or InstantID gave a face in each region. A third-party apply node placed afterApply Regional Adaptersstill writes into the model it gets, so running it again after a change of its weight can give another picture than a fresh run.imageis the reference picture;maskthe region, the whole picture without it.weightgoes from -1 to 5 and defaults to 1.0. Values that suit some kinds better: IPAdapter Plus 0.7, asRegional IPAdapter Mask; InstantID 0.8, asApply InstantID; IPAdapter SD3.5 0.5; IPAdapter FLUX with the InstantX file 1.0 withend_at0.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 toApply 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 ofApply PuLIDof PuLID_ComfyUI, with its ranges andmethod; a FLUX.1 file averages the faces of all pictures ofimage.- 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'sReferenceLatent.
- FLUX.2 klein is not covered: in the PuLID weights published for it (
- InstantID: gives the masked region the face of
imagewith ComfyUI InstantID (SDXL): the attention ofInstantID Patch Attentionon the model, andInstantID Apply ControlNeton the region's copy of the prompt.weightisip_weightofApply InstantID Advanced.- Without
image_kpsofInstantID Pipe Options, the keypoints are taken fromimagefitted to the mask's bounding box, with its centre at a third of the box's height; without a mask, fromimageitself, as inApply InstantID.
- Without
- Redux: adds the Redux tokens of
imageto the prompt (FLUX.1), asApply Style Modeldoes withmultiply, and lets only the picture inside the mask attend to them.weightis that node'sstrength;start_atandend_atkeep 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 InstantXandFLUX.1 XLabspresets ofIPAdapter Model Helper): gives the masked region the look ofimagewith an IP-Adapter for FLUX.1, which Inspire implements itself. Only the first picture ofimageis 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_at0.7 atweight1.0 takes them away or leaves a faint grain; a lowerweightdoes not. Withend_atabove 0.7 on the pipe of theFLUX.1 InstantXpreset, 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
weight1.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.
- 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:
- IPAdapter SD3.5 (the
SD3.5 Large InstantXpreset ofIPAdapter Model Helper): gives the masked region the look ofimagewith the InstantX IP-Adapter for SD3.5 Large, which Inspire implements itself. Only the first picture ofimageis used.- At
weight0.5 a prompt that names age and hair wins over the reference; the pack of InstantX defaults to 1.0.start_atandend_atare fractions of the sampling as everywhere in ComfyUI, while that pack counts them as 1 - sigma, so the same numbers cover other steps there.
- At
- PuLID, PuLID FLUX, IPAdapter FLUX and IPAdapter SD3.5 hold code ported from other node packs:
THIRD_PARTY_NOTICES.mdlists the sources, their licenses and notices.
Regional Adapter By Color Mask (Inspire)-Regional Adapterwith a color mask image andmask_colorin place ofmask: the region is wherecolor_maskhas that color, a hex code like#FF0000, a color name likeredor a decimal number. TheMASKoutput 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 optionallyneg_image, orembedsandneg_embedsin place ofimage, as the regional IPAdapter nodes have them. The defaults are those ofRegional IPAdapter Mask. The other nodes that take anIPADAPTER_PIPEread the pipe as before. The FLUX.1 and SD3.5 presets do not use these options.PuLID Pipe Options (Inspire):methodofApply PuLID,fidelityby default. A FLUX.1 file has none.InstantID Pipe Options (Inspire):controlnet_strength,noiseandimage_kpsofApply InstantID Advanced(cn_strength,noise,image_kps), 0.8, 0.0 and none by default.image_kpsis 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, asApply InstantID Advanceddoes; a picture without a face, such as the output ofFace 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.
Load Image Batch From Dir (Inspire): This is almost same asLoadImagesFromDirectoryof 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 asLoad 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 Sizesimple: if thebatch_sizeis 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 SizeImageBatchSplitter //Inspire,LatentBatchSplitter //Inspire: The script divides a batch of images/latents into individual images/latents, each with a quantity equal to the specifiedsplit_count. An additional output slot is added for eachsplit_count. If the number of images/latents exceeds thesplit_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_optis used to control the order of execution for this node; it will still run without asignal_optinput.- 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
ckptkeeps 5, andlatentandimagekeep 100. You can edit the size of each tag incache_settings.json. - Runtime tag cache size can be modified on the
Show Cached Info (Inspire)node. For example:ckpt: 10.
- A tag keeps 20 entries by default. A tag whose name holds
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 likeCache 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_optis empty, theckpt_nameis 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.
- When
Shared Diffusion Model Loader (Inspire): Similar to theShared Checkpoint Loader (Inspire)but used for loading Diffusion models instead of Checkpoints.Shared Text Encoder Loader (Inspire): Similar to theShared Checkpoint Loader (Inspire)but used for loading Text Encoder models instead of Checkpoints.- This node also functions as a unified node for
CLIPLoader,DualCLIPLoader, andTripleCLIPLoader.
- This node also functions as a unified node for
Stable Cascade Checkpoint Loader (Inspire): This node provides a feature that allows you to load thestage_bandstage_ccheckpoints 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 underkey, 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 oftrigger, in either direction, the next run takes what the nodes before make on that run, replaces the cached data with it and outputs it.
Concat Conditionings with Multiplier (Inspire): Concatenating an arbitrary number of Conditionings while applying a multiplier for each Conditioning. The multiplier depends oncomfy_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_CustomNodeConditioning 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
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 XLabsandSD3.5 Large InstantXload the IP-Adapters for FLUX.1 and SD3.5 Large that Inspire implements itself, forRegional Adapter (Inspire); they need neither IPAdapter Plus norclip, and read neither the LoRA strengths norinsightface_model_name. Their pipe is only forRegional Adapter;IPADAPTERandINSIGHTFACEgive nothing,MODELandCLIPgive what came in.FLUX.1 InstantX:ipadapter-flux/ip-adapter.binof InstantX/FLUX.1-dev-IP-Adapter, withclip_vision/sigclip_vision_patch14_384.safetensors.FLUX.1 XLabs:xlabs/ipadapters/ip_adapter.safetensorsof 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, orclip_vision/clip-vit-large-patch14.safetensors, themodel.safetensorsof openai/clip-vit-large-patch14 renamed.SD3.5 Large InstantX:ipadapter/ip-adapter.binof InstantX/SD3.5-Large-IP-Adapter, withclip_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 theipadapter,clip_visionandloraskeys ofextra_model_paths.yaml. After the files ofipadapter,ipadapter_modellists those ofipadapter-fluxandxlabs/ipadapters, marked(FLUX.1); such a file, or the InstantX file for SD3.5 Large inipadapter, gives what its preset gives without IPAdapter Plus, with the picked LoRA applied toMODELandCLIP.- An entry for
extra_model_paths.yamlin the ComfyUI folder. The example file of ComfyUI has noipadapterkey, so add it to your own file:my_models: base_path: /path/to/models ipadapter: ipadapter/ clip_vision: clip_vision/ loras: loras/
- An entry for
- 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 packagesinsightfaceandfacexlibofadditional_requirements.txt(pip install -r additional_requirements.txtin the folder of the Inspire Pack) and one ofonnxruntimeoronnxruntime-gpu, not both: the file says why. It also needs InsightFace'santelopev2inmodels/insightface/models/antelopev2, andEVA02_CLIP_L_336_psz14_s6B.ptof QuanSun/EVA-CLIP (856 MB) inmodels/clip_visionor 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 downloadsantelopev2intomodels/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.1pulidgives nothing.cache_modekeeps 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_modekeeps the face analysis in the backend cache, shared withPuLID 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 fitApply Style ModelandCLIP Vision Encode.cache_modekeeps the CLIP vision model in the backend cache, shared withIPAdapter Model Helper (Inspire)for the same file.
Float Range (Inspire): Create a float list that increases the value bystepfromstarttostop. A list as large as the maximum limit is created, and whenensure_endis 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.
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#FFD500tohue(0 to 360),saturationandvalue(0 to 1).
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