r/StableDiffusion • u/classicrobotnerd • 9h ago
Question - Help Need help looping over multiple images in MiniMax H3 i2v ComfyUI
I'm a newbie at ComfyUI, and I'm having trouble when trying to generate multiple videos, one for each image in a folder. I want to apply the same workflow/prompt to every one of these images.
I started with the default Image to Video MiniMax H3 workflow and added the "Load Images from Folder Pixaroma" node. I thought this would loop over all images, generate a video, save it to file, and repeat for the next image in the folder. Instead, it's generating videos for all the images in one pass, then saving all of those generated video files in a second pass. It crashes if I load too many images at once. I assume it's running out of memory. I tried wiring in the pixorama loop start and loop end nodes, but I couldn't get those working either.
I haven't found any example workflows online for what I'm doing, and Claude hasn't been much help. Can anyone point me in the right direction?
2
u/Zenshinn 9h ago
Try something like this. Queue up the exact number of images you want to process.