Nodes/ComfyUI-AusBoss/Image Folder πŸ†Ž
ComfyUI Node

Image Folder πŸ†Ž

Pick a folder, tick the pictures you want, and run the workflow on each of them. All in one run does every picked picture with one press of Run. One per run loads one picture each run and steps to the next by itself, so one that fails only skips itself. It gives each picture's mask, its file name for saving the result under the same name, its number and how many there are. Folders are the ones inside ComfyUI's input or output folder.

By ausbossΒ·Created 3 months agoΒ·Updated about 5 hours agoΒ· 46
Image Folder πŸ†Ž
    • image
    • mask
    • filename
    • index
    • count
    β—„sourceinputβ–Ί
    β—„folderβ–Ί
    β—„subfoldersfalseβ–Ί
    β—„sortnameβ–Ί
    β—„picturesβ–Ί
    β—„runall in one runβ–Ί
    β—„position1β–Ί
    β—„after_runnextβ–Ί
    β—„at_the_endstop the runβ–Ί
    CategoryπŸ†Ž AusBoss/Image

    Inputs (9)

    NameTypeDefaultDescription
    sourceCOMBOinputWhich of ComfyUI's folders to look in: input (pictures you put there) or output (pictures you made).
    folderSTRINGThe folder inside it. Empty is the input or output folder itself. Browse lists the folders there.
    subfoldersBOOLEANfalseAlso take the pictures in the folders inside this one.
    sortCOMBOnameThe order of the pictures: by name, or by when the file was last changed.
    picturesSTRINGThe picked pictures. Tick them on the node. Empty means every picture in the folder.
    runCOMBOall in one runAll in one run: one press of Run does every picked picture. One per run: each run loads one picture and steps on, so a picture that fails only skips itself.
    positionINT11–1000000With one per run: which of the picked pictures the next run loads, counted from 1.
    after_runCOMBOnextWith one per run: next moves Picture on by one each time a run is queued, so queuing several runs walks the folder. Stay keeps loading the same picture. Random jumps to any of the picked ones.
    at_the_endCOMBOstop the runWith one per run, after the last picture: stop the run with a message, or start over at the first.

    Outputs (5)

    NameTypeDescription
    imageIMAGEEach picked picture, one at a time. What comes after runs once for each.
    maskMASKWhite where the picture is see-through. A picture with no see-through part gives the same empty mask core Load Image does.
    filenameSTRINGThe picture's file name without its ending. Wire it to Save Image's filename and the result keeps the name.
    indexINTThe picture's number among the picked ones, counted from 1.
    countINTHow many pictures are picked.