Text-to-Video
Diffusers
Safetensors
PyTorch
Transformers
English
TextToVideoSDPipeline
video-generation
generative-ai
diffusion
Instructions to use Deepak1206/text-to-video-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Deepak1206/text-to-video-model with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Deepak1206/text-to-video-model", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Transformers
How to use Deepak1206/text-to-video-model with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Deepak1206/text-to-video-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
π¬ Text-to-Video Generation Model
A text-to-video generation project that converts natural language prompts into short AI-generated videos using a diffusion-based text-to-video model.
π Overview
This project demonstrates text-to-video generation using a pretrained diffusion model from the Hugging Face ecosystem.
The system takes a textual description as input and generates a sequence of video frames, which are combined into an MP4 video.
Pipeline
Text Prompt β Text Encoder β Diffusion Model β Video Frames β MP4 Video
β¨ Features
- Text-to-video generation
- Natural language prompts
- Diffusion-based video generation
- GPU acceleration with CUDA
- MP4 video export
- Compatible with Hugging Face Diffusers
- Can be executed using Google Colab
π€ Model Information
Base Model
damo-vilab/text-to-video-ms-1.7b
Model Architecture
Diffusion-based text-to-video generation model.
Framework
- PyTorch
- Hugging Face Diffusers
- Hugging Face Transformers
- Accelerate
π Usage
Install the required libraries:
pip install diffusers transformers accelerate torch imageio imageio-ffmpeg
- Downloads last month
- -