#batch multiple image gen issue

1 messages · Page 1 of 1 (latest)

solar harbor
#

I think the batch image gen has an issue when the workflow generates more than one image per execution. Specifically the line

File.WriteAllBytes($"{output_folder}/{preExt}.{ext}", image.Img.ImageData);

at line 199 ImageBatchToolExtension.cs

I think can get called multiple times during a single gen (such as when extracting faces) and the generated images just overwrite each other. I think the metadata has a unique index count in it that could be appended maybe? The multiple images show up in the UI as unique, it is just the writing to the output directory that is an issue.

spice trout
#

the image batcher is intended to intentionally match filenames to the original

#

so that it can be used as a direct swapin

#

what are you doing where you intentionally want multiple image outputs per one image input? 0.o

solar harbor
#

extract clipped faces from images, one image may have a couple faces in it to be clipped and extracted, so one input image yields 1 or more resulting clipped cropped extracted faces if that makes sense

#

so img0001 -> img0001_1, img0001_2 possibly

spice trout
#

oh

#

kinda differenty but fair enough, probably worth supporting as a valid case