=64).frames
video_path = export_to_video(video_frames)
video_path
It just takes 7 GBs of GPU memory to generate the 64 video frames using PyTorch 2.0, “fp16” precision and the techniques mentioned above.
We can also use a different scheduler easily, using the same method we’d use for Stable Diffusion:


	Copied
import torch
from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler
from diffusers.utils import export_to_video

pipe = D