receyuki / comfyui-prompt-reader-node

The ultimate solution for managing image metadata and multi-tool compatibility. ComfyUI node version of the SD Prompt Reader
MIT License
289 stars 22 forks source link

[FEATURE REQUEST] - Batch support on ComfyUI #13

Closed Tirshea closed 11 months ago

Tirshea commented 1 year ago

Summary

First, thank you for the node suite. I've been playing with it the last few days and it screams "must-have batch tool for upscaling workflow from low-quality rushes/seed images".

The abilty to load images with their metadata is awesome, especially when - like me - you use wildcards a lot.

But when we design an upscaling workflow, we most likely want it to support batch loading.

I tried the obvious way with "convert image to input" on the reader but I couldn't find any node able to link to this "image" input.

image

Basic Example

Abillity to connect image loaders to SD_Prompt_Read node.

Reference Issues.

No response

receyuki commented 1 year ago

Please submit issues related to the ComfyUI node version in the node version repo next time, thx.

Actually, someone has already made exactly the same request to me before. The reason why the image loader cannot connect with the reader is that the image loader outputs the image itself, which is a bunch of pixels, and does not include any metadata. So even if they could connect, the reader wouldn’t be able to read anything.

Of course, I’m very interested in the batch loading you mentioned. If possible, please post your batch loading workflow here. Since the reader itself is an image loader, perhaps features suported by other image loaders could also be implemented on the prompt reader.

Tirshea commented 1 year ago

Here are two examples I use when I need to process a series of images or a random one inside a folder : image

It is just a basic ImageLoader, but we play with the index INT.

receyuki commented 1 year ago

This feature seems to be feasible, I'll consider it.

PSVinrael commented 1 year ago

Just a +1 to say this node is exactly what I've been looking for to finish an A1111 based 1.5 to SDXL Upscale Workflow and literally the only thing missing is batch processing, would be perfect in that case.

receyuki commented 12 months ago

@Tirshea @PSVinrael The batch processing feature is now ready! Please update to the latest version.

Simply connect the Batch Loader to the Prompt Reader. When you set the image_load_limit to 1, you’ll be able to use the Batch Loader just like the LoadImageInFolder you mentioned above.