=pose_images, latents=latents).images
imageio.mimsave("video.mp4", result, fps=4)   Optimize Video generation requires a lot of memory because you’re generating many video frames at once. You can reduce your memory requirements at the expense of some inference speed. Try: offloading pipeline components that are no longer needed to the CPU feed-forward chunking runs the feed-forward layer in a loop instead of all at once break up the number of f