Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Batch image processing #23

Open
jamesWalker55 opened this issue Feb 23, 2023 · 11 comments
Open

[Feature Request] Batch image processing #23

jamesWalker55 opened this issue Feb 23, 2023 · 11 comments
Labels
Feature A new feature to add to ComfyUI.

Comments

@jamesWalker55
Copy link

This would allow mass-processing of images, being particularly useful for processing video frames.

It would be even better if you could use multiple sets of images in pairs, e.g. using one node for img2img frames frame0001.png, frame0002.png, ..., and another node for ControlNet inputs segment0001.png, segment0002.png, ..., then combine these two image sets in the pipeline.

@comfyanonymous
Copy link
Owner

A way to do batch processing in the GUI itself is planned but right now you can do it with scripts: https://github.com/comfyanonymous/ComfyUI/blob/master/script_examples/basic_api_example.py

@AbyszOne
Copy link

AbyszOne commented Feb 24, 2023

I`ll looking for this being implemented too. Multibatch is a really powerful and missing feature anywhere, yet.

@gitpulled
Copy link

A way to do batch processing in the GUI itself is planned but right now you can do it with scripts: https://github.com/comfyanonymous/ComfyUI/blob/master/script_examples/basic_api_example.py

Batch like folder batches? Or batch like create X images from one prompt?

@eldragon0
Copy link

Unfortunately I don't think a simple script will cover the more advance usage for this function as described above. One of more recent processes uses 3 separate batches of images to run through for frame generation. One batch is the output of controlnets, (potentially up to 5 outputs there, all be it from one image input), one batch for lighting, which is the default input image and one batch for a mask that will likely change frame to frame.

@terryxxxxx
Copy link

I also really need this feature

@Slarper
Copy link

Slarper commented Mar 25, 2023

A way to do batch processing in the GUI itself is planned but right now you can do it with scripts: https://github.com/comfyanonymous/ComfyUI/blob/master/script_examples/basic_api_example.py

The script uses a prompt json ( not a workflow json) to send. So I write an extension to acquire the prompt.json
Extract for the .js and put it into ComfyUI\web\extensions folder.

savePrompt.zip

image

@WASasquatch
Copy link
Contributor

Added a batch image loader to WAS Node Suite. It relies on a seed to make sure it runs cause the IS_CHANGED method is useless beyond a image xD But the seed isn't doing anything.

https://github.com/WASasquatch/was-node-suite-comfyui

image

@gacela80
Copy link

gacela80 commented Oct 24, 2023

Hi newbie here made this batch face restore workflow. I copy/pasted from different workflows I found.
I think... it works like a charm but maybe can get better. sharing to see if it helps out anybody and please let me know if I am doing this right or if there is any way to improve.
You have to go to extra options and put the number of images in folder to batch count.
Batch_Face_Restore_1_workflow

@gseth
Copy link

gseth commented Dec 11, 2023

Thank you for this Node!!

@RolfHihi
Copy link

RolfHihi commented Jan 2, 2024

How are you images named I get some issues with the order of how the images are loaded
Frame_099
Frame_100
Frame_110

KubaBir pushed a commit to Eleo-ai/ComfyUI that referenced this issue Jan 30, 2024
feat: Add webhook url and extra params for serverless API
@robinjhuang robinjhuang added the Feature A new feature to add to ComfyUI. label Jul 3, 2024
@robinjhuang
Copy link
Collaborator

@jamesWalker55 Is there anything left for this feature request? Currently supported by some custom nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new feature to add to ComfyUI.
Projects
None yet
Development

Successfully merging a pull request may close this issue.