Extensions/ComfyUI-JDCN
ComfyUI Extension

ComfyUI-JDCN

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.

By daxcay·Created 2 years ago·Updated about a year ago· 159
daxcay/ComfyUI-JDCN
Nodes81
On cloudLocal install
Category🔵 JDCN 🔵, JDCN
Stars159
Updatedabout a year ago

Nodes (81)

JDCN_AnyCheckpointLoader
🔵 JDCN 🔵
JDCN_AnyFileList
🔵 JDCN 🔵
JDCN_AnyFileListHelper
🔵 JDCN 🔵
JDCN_AnyFileListRandom
🔵 JDCN 🔵
JDCN_AnyFileSelector
🔵 JDCN 🔵
JDCN_BatchCounter
🔵 JDCN 🔵
JDCN_BatchCounterAdvance
🔵 JDCN 🔵
JDCN_BatchImageLoadFromDir
🔵 JDCN 🔵
JDCN_BatchImageLoadFromList
🔵 JDCN 🔵
JDCN_BatchLatentLoadFromDir
🔵 JDCN 🔵
JDCN_BatchLatentLoadFromList
🔵 JDCN 🔵
JDCN_BatchSaveLatent
🔵 JDCN 🔵
JDCN_BoolInt
🔵 JDCN 🔵
JDCN_EnableDisable
🔵 JDCN 🔵
JDCN_FileMover
🔵 JDCN 🔵
JDCN_ImageSaver
🔵 JDCN 🔵
JDCN_ListToString
🔵 JDCN 🔵
JDCN_LoadImage
🔵 JDCN 🔵
JDCN_ReBatch
🔵 JDCN 🔵
JDCN_SeamlessExperience
🔵 JDCN 🔵
JDCN_SplitString
🔵 JDCN 🔵
JDCN_StringManipulator
🔵 JDCN 🔵
JDCN_StringToList
🔵 JDCN 🔵
JDCN_SwapInputs
🔵 JDCN 🔵
JDCN_TagManipulatorByImageNames
JDCN
JDCN_TXTFileSaver
🔵 JDCN 🔵
JDCN_VHSFileMover
🔵 JDCN 🔵
LogicUtil_Abs
LogicUtil
LogicUtil_Add Values
LogicUtil
LogicUtil_Ceil
LogicUtil
LogicUtil_Convert to Bool
LogicUtil
LogicUtil_Convert to Float
LogicUtil
LogicUtil_Convert to Int
LogicUtil
LogicUtil_Convert to String
LogicUtil
LogicUtil_Convert Combo to String
LogicUtil
LogicUtil_Debug Combo Input
LogicUtil
LogicUtil_Divide
LogicUtil
LogicUtil_ErrorNode
LogicUtil
LogicUtil_Floor
LogicUtil
LogicUtil_AAndBGate
LogicUtil
LogicUtil_Bitwise And
LogicUtil
LogicUtil_Bitwise Not
LogicUtil
LogicUtil_Bitwise Or
LogicUtil
LogicUtil_Bitwise Shift
LogicUtil
LogicUtil_Bitwise Xor
LogicUtil
LogicUtil_ABiggerThanB
LogicUtil
LogicUtil_AContainsB(String)
LogicUtil
LogicUtil_ReturnAorBValue
LogicUtil
LogicUtil_Invert Basic
LogicUtil
LogicUtil_Negate Value
LogicUtil
LogicUtil_AOrBGate
LogicUtil
LogicUtil_Log
LogicUtil
LogicUtil_Manual Choice Float
LogicUtil
LogicUtil_Manual Choice Int
LogicUtil
LogicUtil_Manual Choice String
LogicUtil
LogicUtil_Max
LogicUtil
LogicUtil_Memory String
LogicUtil
LogicUtil_Merge String
LogicUtil
LogicUtil_Min
LogicUtil
LogicUtil_Multiply
LogicUtil
LogicUtil_Parse Exif
LogicUtil
LogicUtil_Power
LogicUtil
LogicUtil_Random Shuffle Float
LogicUtil
LogicUtil_Random Shuffle Int
LogicUtil
LogicUtil_Random Shuffle String
LogicUtil
LogicUtil_Replace String
LogicUtil
LogicUtil_Round
LogicUtil
LogicUtil_Save Image Custom Node
LogicUtil
LogicUtil_Save Text Custom Node
LogicUtil
LogicUtil_SleepNode
LogicUtil
LogicUtil_Sleep (Image tunnel)
LogicUtil
LogicUtil_Static Number Float
LogicUtil
LogicUtil_Static Number Int
LogicUtil
LogicUtil_Static String
LogicUtil
LogicUtil_String List to Combo
LogicUtil
LogicUtil_Text Preview
LogicUtil
LogicUtil_Uniform Random Choice
LogicUtil
LogicUtil_Uniform Random Float
LogicUtil
LogicUtil_Uniform Random Int
LogicUtil
LogicUtil_Yieldable (Sequential) Iterator Int
LogicUtil
LogicUtil_Yieldable Iterator String
LogicUtil
Readme

Cover_banner

ComfyUI-JDCN

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.

image

Since Most of the nodes are working with path, so it’s Ram efficient as actually loading of files is not done initially.

1. JDCN_AnyFileList :

image

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

image

• extension: Filter files by their file extensions:

  • Images: jpg, jpeg, png, gif, bmp, tiff, ico, svg, webp, psd, ai, eps, indd, cdr, raw, cr2, nef, orf, sr2, pef, x3f, dng, raf, rw2, arw, mef, mrw, fff, srf, kdc, mos, rwl, dcr, erf, 3fr, srw, bay, nrw, ptx, cap, iiq, eip, rwz, r3d, qtk, dcs, rw1, rpp, fff, rwl, pef, xmp
  • Audio: mp3, wav, flac, aac, ogg, wma, m4a, ape, alac, aiff, mid, opus, amr, pcm, mp2, ac3, ra, au, mka, snd
  • Video: mp4, avi, mkv, mov, wmv, flv, webm, mpg, mpeg, m4v, 3gp, rmvb, divx, vob, ts, ogv, m2ts, mts, f4v, asf
  • Text: txt, doc, docx, xls, xlsx, ppt, pptx, pdf, rtf, html, htm, xml, json, csv, dat, ini, cfg, inf, log, md, sql, php, cpp, java, py, c, h, hpp, js, css, asp, aspx, jsp, jspx, xhtml, rss, atom, pl, cgi, nfo, diz, reg, key, sfv, cue, url, bat, sh, ps1, vbs, asm, bak, tmp, temp
  • Tensors: latent

Example You can have all files in one folder and can filter & Separately use them:

1_1

Filter Photos and Use:

1_2

Use Single Video Via AnyFileSelector Node:

3

Filter and Use Multiple Videos at Once:

2

Filter Latents and Use:

4

Filter Text files, jsons and load them inside comfy:

5

2. JDCN_AnyFileListHelper

You can sort sperate List externally with a helper node.

image

• Search – Input keywords to search for – one or many keywords separated with comma

  • EG: portrait,girl

• Filter_by and extension are same as AnyFileList Node

Example workflow:

image

A folder with 12 Items in mixed format – webp, gif, png, json, jpeg

image

One Main List is divided by different formats selected in Helper node or you can search for specific term as shown in purple node

image

Also, multiple keywords can be used to filter out files.

3. JDCN_AnyFileListRandom

image

AnyFileListRandom can be used to select elements at a random, fixed or incremental order.

• Batch_Size – Set the number of files selected per queue.

4. JDCN_AnyFileSelector

image

It is used to select 1 element from the given input list

image

5. JDCN_BatchImageLoadFromList

image

image

Load images in any supported format

6. JDCN_BatchSaveLatent

image

This Export latents into a folder, to save vae encoding time or use later.

7. JDCN_BatchLatentLoadFromDir

image

• Directory – Enter a folder location

• Load_Cap – Number of Latents to load

• Skip_Frame – Skip the first n images.

image

You can load latents directly from a Specific directory

8. JDCN_BatchLatentLoadFromList

image

• 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

image

9. JDCN_FileMover

image

A folder containing files

image

Images, Json, Videos are sorted with helper node then moved to a new location via File Mover node.

image

Output Result after queue.

10. JDCN_ImageSaver

image

Saves images into an output directory • OpenOutputDirectory: When enabled will open the Output folder.

11. JDCN_ListToString and JDCN_ StringToList

image

Convert list to one single multiline text and vice versa where ever needed.

image

12. JDCN_ReBatch

image

• BatchSize – Number of Elements for a single output packet

• TextList – False will give list a comma separated form, True will give in new line.

image

13. JDCN_SplitString

image

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

image

Separate File names and Paths

image

Go Folder Up:

image

14. JDCN_TXTFileSaver

image

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

15. JDCN_VHSFileMover

image

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.


Installation

  1. Using comfy-cli (https://github.com/yoland68/comfy-cli)

    comfy node registry-install comfyui-jdcn
    
  2. Automatic Method with Comfy Manager

  • Inside ComfyUI > Click Manager Button on Side.
  • Click Install Custom Node and Search for JDCN and Install this node:

Manager_Screenshot

  • Restart ComfyUI and it should be good to go
  1. Manual Method
  • Go to your Comfyui > Custom Nodes folder
  • Run CMD from folder path box or right click on empty area and click open in terminal.
  • Copy and Paste this command git clone https://github.com/daxcay/ComfyUI-JDCN.git
  • Then go inside ComfyUI-JDCN with cmd or open new.
  • and type pip install -r requirements.txt to install the requirements.

CREDITS

◉ Daxton Caylor - ComfyUI Node Developer

  • Discord - daxtoncaylor
  • Email - [email protected]
  • Discord server: https://discord.gg/Z44Zjpurjp
  • Commission Status: 🟢 Open 🟢

◉ Jerry Davos - Graphic Design and Nodes Ideas

  • Discord - jerrydavos

  • Email - [email protected]

  • Comfyui Workflows and Animations: Link 1 & Link 2

  • Commission Status: 🟢 Open 🟢

  • Discord Server : https://discord.gg/z9rgJyfPWJ


Support for JDCN ❤️

If you like to suppport us you can help us by

Donation: https://paypal.me/jerrydavos