Instructions to use stabilityai/stable-video-diffusion-img2vid-xt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-video-diffusion-img2vid-xt with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
how to use the models with comfyUI ?
#45
by LycheeX - opened
any one could help me ?
Chinese is also appreciate.
来个大佬,教教我这模型文件咋放到comfy UI中,感谢🙏
摇个人来啊。。
来人啊
有没有直接gradio的webui啊?comfy感觉有点丑。。。。
Use this workflow: https://comfyanonymous.github.io/ComfyUI_examples/video/
And a place where the svd model should go to is models/diffusers/, I think.
That being said, I put the svd model into auto1111/models/Stable-Diffusion and edit the Comfyui/extra_model_path.yaml
Unfortunately neither of those load into config UI as a workflow
The video checkpoints also go in general checkpoints along with the others