etails are used to train a video diffusion model which refines the video resolution and details in the generated video. You can use I2VGen-XL by loading the I2VGenXLPipeline, and passing a text and image prompt to generate a video.   Copied import torch
from diffusers import I2VGenXLPipeline
from diffusers.utils import export_to_gif, load_image

pipeline = I2VGenXLPipeline.from_pretrained("ali-vilab/i2vgen-xl", torch_dtype=torch.float16, varian