Jerry Davos Custom Nodes for Saving Latents in Directory (BatchLatentSave) , Importing Latent from directory (BatchLatentLoadFromDir) , List to string, string to list, get any file list from directory which give filepath, filename, move any files from any directory to any other directory, VHS Video combine file mover, rebatch list of strings, batch image load from any dir, load image batch from any directory and other custom nodes.
ComfyUI-JDCN, Custom Utility Nodes for Artists, Designers and Animators.
Jerry Davos Custom Nodes for Saving Latents in Directory (BatchLatentSave) , Importing Latent from directory (BatchLatentLoadFromDir) , List to string, string to list, get any file list from directory which give filepath, filename, move any files from any directory to any other directory, VHS Video combine file mover, rebatch list of strings, batch image load from any dir, load image batch from any directory and other custom nodes.
Since Most of the nodes are working with path, so it’s Ram efficient as actually loading of files is not done initially.
Load Paths of any files from inside ComfyUI from a folder
• folder_Path: Input the folder directory of the files you want to load without quotes. Eg: F:\Temp
• filter_by: Filter files by major category – Images, audios, videos, texts, tensors, folders
• extension: Filter files by their file extensions:
Example You can have all files in one folder and can filter & Separately use them:
Filter Photos and Use:
Use Single Video Via AnyFileSelector Node:
Filter and Use Multiple Videos at Once:
Filter Latents and Use:
Filter Text files, jsons and load them inside comfy:
You can sort sperate List externally with a helper node.
• Search – Input keywords to search for – one or many keywords separated with comma
• Filter_by and extension are same as AnyFileList Node
Example workflow:
A folder with 12 Items in mixed format – webp, gif, png, json, jpeg
One Main List is divided by different formats selected in Helper node or you can search for specific term as shown in purple node
Also, multiple keywords can be used to filter out files.
AnyFileListRandom can be used to select elements at a random, fixed or incremental order.
• Batch_Size – Set the number of files selected per queue.
It is used to select 1 element from the given input list
Load images in any supported format
This Export latents into a folder, to save vae encoding time or use later.
• Directory – Enter a folder location
• Load_Cap – Number of Latents to load
• Skip_Frame – Skip the first n images.
You can load latents directly from a Specific directory
• Index – Start index of the latents from the path list inputted.
• BatchSize – Number of Latents to load.
• BatchDirection – Direction for selection of latents from the list.
NOTE : Index works differently in this node, it is depended on BatchSize For Example: You have 4 elements in the inputted list. (a,b,c,d)
Scene 1: Index = 1 BatchSize = 2
Output = a, b
Scene 2: Index = 2 BatchSize = 2
Output = c, d
A folder containing files
Images, Json, Videos are sorted with helper node then moved to a new location via File Mover node.
Output Result after queue.
Saves images into an output directory • OpenOutputDirectory: When enabled will open the Output folder.
Convert list to one single multiline text and vice versa where ever needed.
• BatchSize – Number of Elements for a single output packet
• TextList – False will give list a comma separated form, True will give in new line.
It Split the input String or list of strings from a given search term and give outputs – Suffix, Prefix and Found at location
• SearchFor – Enter character or word to search for a String
• StartFrom – Begin Searching the string from front or rear.
• Occurrence – Split the String from nth Occurrence of the search term from front or rear.
• IncludeSearchFor – Include the SearchFro Term in the Outputs - Suffix
Example Use cases: Separate Extentsions
Separate File names and Paths
Go Folder Up:
It Saves string or Text content into a file
• Directory – Input a Folder location to Save the text file
• Mode – How to Handle same named file – Merge, OverWrite, SaveNew, MergeAndSaveNew
It will create a new file if same named file does not exists
Use it with a VHS video combine node to move the rendered file to the output Location • OverwriteFile – It will overwrite the file if they have same file name.
Using comfy-cli
(https://github.com/yoland68/comfy-cli)
comfy node registry-install comfyui-jdcn
Automatic Method with Comfy Manager
Install Custom Node
and Search for JDCN and Install this node:git clone https://github.com/daxcay/ComfyUI-JDCN.git
pip install -r requirements.txt
to install the requirements.◉ Daxton Caylor - ComfyUI Node Developer
◉ Jerry Davos - Graphic Design and Nodes Ideas
Discord - jerrydavos
Email - [email protected]
Commission Status: 🟢 Open 🟢
Discord Server : https://discord.gg/z9rgJyfPWJ
If you like to suppport us you can help us by
Donation: https://paypal.me/jerrydavos