T4卡16g运行:
参考:https://huggingface.co/docs/diffusers/main/en/using-diffusers/text-img2vid
案例用的google colab T4显卡运行
安装包:pip install diffusers accelerate
代码
import torch
from diffusers import StableVideoDiffusionPipeline
from diffusers.utils import load_image, export_to_video
pipeline = StableVideoDiffusionPipeline.from_pretrained(
"stabilityai/stable-video-diffusion-</