Kadai Frame : Imageio.mimsave('./generated.mp4', img_as_ubyte(frame) for frame in predictions.