_____ _ __ __ _ __ __ _____ _ ________
/ ____| / \ \ \ / / | |/ / | \/ || \/ |/ ____|
| | _ / _ \ \ \_/ / | ' / | \ / || \ / | (___
| | (_)/ /_\ \ \ / | < | |\/| || |\/| |\___ \
\_____| / _____ \ | | | . \ | | | || | | |____) |
_____| _/ \_\ |_| |_|\_\ |_| |_||_| |_|_____/
CogVideoX is a powerful AI-powered application that transforms text descriptions into stunning videos using Stable Diffusion and advanced video processing techniques.
- Text-to-video generation using Stable Diffusion
- Image-to-video generation using CogVideoX
- Customizable number of frames and FPS
- Smooth transitions between frames
- Easy-to-use web interface
- Video download capability
- GPU acceleration support
- Python 3.8 or higher
- CUDA-capable GPU (recommended)
- FFmpeg installed on your system
- Clone this repository:
git clone https://github.com/yourusername/CogVideoX.git
cd CogVideoX- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install the required dependencies:
pip install -r requirements.txt- Install FFmpeg:
- Windows: Download from https://ffmpeg.org/download.html
- Linux:
sudo apt-get install ffmpeg - macOS:
brew install ffmpeg
- Start the application:
streamlit run app.py-
Open your web browser and navigate to the URL shown in the terminal (usually http://localhost:8501)
-
Choose your generation mode:
- Text to Video: Enter a description and generate a video
- Image to Video: Upload an image and provide a description
-
Adjust the number of frames and FPS using the sliders
-
Click "Generate Video" and wait for the process to complete
-
Download your generated video using the download button
- Be specific in your descriptions
- Include details about lighting, style, and mood
- Use keywords like "cinematic", "4k", "detailed" for better quality
- Experiment with different numbers of frames and FPS
- For image-to-video, use high-quality input images
This project is licensed under the MIT License - see the LICENSE file for details.
- Stable Diffusion by Stability AI
- CogVideoX by THUDM
- Streamlit for the web interface
- MoviePy for video processing