Skip to content

jocoandonob/CogVideoX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CogVideoX - Text to Video Generator

CogVideoX Thumbnail

  _____      _    __     __  _  __  __  _____  _  ________
 / ____|    / \   \ \   / / | |/ / |  \/  ||  \/  |/ ____|
| |     _  / _ \   \ \_/ /  | ' /  | \  / || \  / | (___  
| |    (_)/ /_\ \   \   /   |  <   | |\/| || |\/| |\___ \ 
 \_____| / _____ \   | |    | . \  | |  | || |  | |____) |
  _____| _/     \_\  |_|    |_|\_\ |_|  |_||_|  |_|_____/ 

CogVideoX is a powerful AI-powered application that transforms text descriptions into stunning videos using Stable Diffusion and advanced video processing techniques.

Features

  • 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

Prerequisites

  • Python 3.8 or higher
  • CUDA-capable GPU (recommended)
  • FFmpeg installed on your system

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/CogVideoX.git
cd CogVideoX
  1. Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Install FFmpeg:

Usage

  1. Start the application:
streamlit run app.py
  1. Open your web browser and navigate to the URL shown in the terminal (usually http://localhost:8501)

  2. Choose your generation mode:

    • Text to Video: Enter a description and generate a video
    • Image to Video: Upload an image and provide a description
  3. Adjust the number of frames and FPS using the sliders

  4. Click "Generate Video" and wait for the process to complete

  5. Download your generated video using the download button

Tips for Better Results

  • 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

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Stable Diffusion by Stability AI
  • CogVideoX by THUDM
  • Streamlit for the web interface
  • MoviePy for video processing

About

text-to-video generater

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages