Skip to content

A comprehensive, click to install, fully open-source, Video + Audio Generation AIO Toolkit using advanced prompt engineering plus the power of CogVideox + AudioLDM2 + Python!

Notifications You must be signed in to change notification settings

TemporalLabsLLC-SOL/TemporalPromptEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 

Repository files navigation

Temporal Prompt Engine: Local, Open-Source, Intuitive, Cinematic Prompt Engine + Video and Audio Generation Suite for Nvidia GPUs

##NOW FEATURING custom 12b HunYuanVideo script with Incorporated MMAudio for 80gb cards.

Screenshot-1050 Screenshot-1049 Screenshot-1048 Screenshot-1060 Screenshot-1061 Screenshot-1062 Screenshot-1063 Screenshot-1064

##MASSIVE UPDATE TO INSTRUCTIONS BELOW COMING VERY SOON (12/11/2024)

I am looking for a volunteer assistant if you're interested reach out at [email protected] - This is going to a webapp version VERY soon.

Table of Contents

  1. Introduction
  2. Features Overview
  3. Installation
  4. Quick Start Guide
  5. API Key Setup
  6. Story Mode: Unleash Epic Narratives
  7. Inspirational Use Cases
  8. Harnessing the Power of ComfyUI
  9. Local Video Generation Using CogVideo
  10. Join the Temporal Labs Journey
  11. Donations and Support
  12. Additional Services Offered
  13. Attribution and Courtesy Request
  14. Contact
  15. Acknowledgments

1. Introduction

Welcome to the Temporal Prompt Engine, your ultimate tool for crafting immersive video and audio experiences. This engine empowers you to generate high-quality prompts with unparalleled control over cinematic elements, all while being intuitive and accessible for users. I'm still currently experimenting with options a lot and will be honing the variety down a bit as I go.

Unleash Your Creativity

Imagine capturing the world through the eyes of an ancient philosopher contemplating the cosmos, visualizing crypto-animals roaming digital landscapes, or peering into potential futures shaped by advanced technologies and societal shifts. With the Temporal Prompt Engine, these narratives are not just possible—they're straightforward and exhilarating to create.

This engine allows you to select standard film terms through user-friendly dropdown menus combined with a basic input concept. These selections are transformed into detailed lists of visual and audio prompts, ensuring that every aspect of your scene aligns perfectly with your creative vision. Additionally, the engine is capable of generating custom sound effects using the powerful AudioLDM2, giving you the tools to create truly unique and immersive audio landscapes.


2. Features Overview

  • Cinematic Video Prompts: Tailor every aspect of your scene—from camera type and lens to lighting and framing.
  • Adaptive Audio Prompts: Generate immersive soundscapes that perfectly match your visuals.
  • Historical and Futuristic Perspectives: Choose from ancient viewpoints to futuristic visions, adding depth and context to your scenes.
  • Dynamic Variables: Adjust settings like resolution, frame rate, and aspect ratio to guide the AI in generating content that matches your vision.
  • Special Modes:
    • Story Mode: Seamlessly blend prompts across frames to create cohesive narratives, enabling you to craft epic stories or intimate tales.
    • Holiday Mode: Generate seasonal content tailored to holidays, perfect for festive branding and marketing.
    • Chaos Mode: Add unpredictability with Chaos Mode.
  • Interconnected Settings: Experience how choices like selecting an ancient art style influence other variables like color palette and texture, creating a cohesive and authentic output.
  • Cross-Platform Compatibility: Available for Windows, with Linux support coming soon.

3. Installation

Setting up the Temporal Prompt Engine is simple and hassle-free, allowing you to focus on creation rather than configuration. This section provides installation steps for Windows users.

System Preparation

YouTube Setup Guide Part 1:

  • Operating System: Windows 10 or later
  • Python: Version 3.10.9
    • Download Python Installer:
      • Visit the Python Downloads page.
      • Download the Python 3.10.9 installer for Windows.
    • Install Python:
      • Run the Installer:
        • Double-click the downloaded EXE installer file.
        • Important:
          • If you already have Python installed:
            • Be cautious when adding Python to PATH, as it may overwrite your existing Python version in the system PATH.
            • To avoid conflicts, you can install Python 3.10.9 without adding it to the PATH. Instead, use the Python Launcher for Windows (py) to specify the version when running commands.
          • If you don't have Python installed:
            • Check the box "Add Python to PATH" at the bottom of the installer window.
        • Click "Install Now".
    • Verify Installation:
      • Open a new Command Prompt.
      • Run:
        py -3.10 --version
      • You should see Python 3.10.9.

##If you want the Video Generation capabilities to work you will also need a local Python 3.12.4 Installed as well. If this is in place the setup.py will handle everything. ##If you only want to use the prompt engine and sound effects generator then you are fine with only 3.10.9 even if the setup.py complains a little.

  • Operating System: Windows 10 or later

  • Python: Version 3.12.4

    • Download Python Installer:
      • Visit the Python Downloads page.
      • Download the Python 3.12.4 installer for Windows.
    • Install Python:
      • Run the Installer:
        • Double-click the downloaded EXE installer file.
        • Important:
          • If you already have Python installed:
            • Be cautious when adding Python to PATH, as it may overwrite your existing Python version in the system PATH.
            • To avoid conflicts, you can install Python 3.10.9 without adding it to the PATH. Instead, use the Python Launcher for Windows (py) to specify the version when running commands.
          • If you don't have Python installed:
            • Check the box "Add Python to PATH" at the bottom of the installer window.
        • Click "Install Now".
    • Verify Installation:
      • Open a new Command Prompt.
      • Run:
        py -3.12 --version
      • You should see Python 3.12.4.
      • Operating System: Windows 10 or later
      • Py -3.12 is used by important video generation environment back-end processes.
  • Git: Installed and configured

    • Install Git:
      • Download Git from Git for Windows.
      • Run the installer with default settings.
    • Verify Installation:
      • Open a new Command Prompt.
      • Run:
        git --version
      • You should see the installed Git version.
  • NVIDIA GPU: CUDA-enabled NVIDIA GPU for optimal performance

    • Ensure you have an NVIDIA GPU with the latest drivers.
  • CUDA Toolkit: Version 11.8 compatible with your GPU and installed

    • Install CUDA Toolkit:
      • Download the CUDA Toolkit from CUDA Toolkit Download.
      • Run the installer and follow the on-screen instructions.
    • Verify Installation:
      • Open a new Command Prompt and run:
        nvcc --version
      • You should see the CUDA compilation tools version information.
  • FFmpeg: Installed and added to system PATH

    • Step 1: Click here to download the zip file of the latest version.
    • Step 2: Unzip this file by using any file archiver such as Winrar or 7z.
    • Step 3: Rename the extracted folder to ffmpeg and move it into the root of C: drive.
    • setx /m PATH "C:\ffmpeg\bin;%PATH%"
    • Verify Installation:
      • Open a new Command Prompt and run:
        ffmpeg -version
      • You should see FFmpeg version information.
  • Ollama: Download from Ollama Setup and follow the on-screen instructions to install.

##[Setup Video Guide Part 2)[https://youtu.be/_8TXLNwA9ak?si=EO73EDqXafBLqA_O]

You are READY to begin the automated setup process:

Clone the Repo

git clone https://github.com/TemporalLabsLLC-SOL/TemporalPromptEngine.git

Manually Download the Repository:

EASY-ONE-CLICK-INSTALLER

Open the Extracted Archive (or cloned repo) and click RUN-FIRST-PRE-FLIGHT-CHECK.bat

  • Follow the on-screen prompts. The script will automatically set up the python environment(s), install necessary packages, and configure settings.

The application will launch, guiding you through the initial setup. DURING THIS SETUP, either after you close the app OR denying to open the open during setup, you will have the option to add a work-around shortcut to your desktop. It currently does not have an icon. That will load the env and scripts reliably going forward.

OR

Manually Run the Setup Script:

  • Open Command Prompt and navigate to the extracted TemporalPromptEngine directory:
    cd C:\TemporalPromptEngine-main
  • Navigate to the WINDOWS folder:
    cd WINDOWS
  • Run the setup script:
    py -3.10 SETUP.py

##Quick Start Guide

IF YOU ADDED THE SHORTCUT TO DESKTOP DURING SETUP

  Click the Temporal Prompt Engine Shortcut on your Windows Desktop

IF YOU DID NOT ADD SHORTCUT TO DESKTOP DURING SETUP

Activate the Virtual Environment:

cd C:\TemporalPromptEngine-main
TemporalPromptEngineEnv\Scripts\activate

Launch the Application:

python TemporalPromptEngine.py
  1. Enter API Key in the Application:

    • Paste your HuggingFace API key when prompted during the setup of the Temporal Prompt Engine.
    • You only will need to enter this one time within a setup engine environment. You can simply close this popup in subsequent uses.
  2. Enter Your Scene Concept:

    Input your creative idea or scene description (up to 400 characters).

    Examples:

    • Ancient Perspectives:

"View the world through the eyes of an ancient astronomer, mapping the stars with rudimentary tools under a vast, unpolluted night sky."

  • Crypto-Animal Footage:

    "Documentary-style footage capturing the elusive 'cryptolion,' a mythical creature that embodies digital patterns and luminescent fur."

  1. Configure Video and Audio Prompt Options: Tailor your video and audio prompts using dropdowns and input fields.

  2. Generate Video and Audio Prompts:

    • Click Generate Video Prompts.
    • Click Generate Audio Prompts.
  3. Save and Export: All media and prompts are saved in your designated output directory.


6. Story Mode: Unleash Epic Narratives

Story Mode allows you to create cohesive stories by blending prompts across frames. Adjust variables like pacing, lighting, and camera movement to reflect the progression of your narrative.


7. Inspirational Use Cases

Explore the full potential of the Temporal Prompt Engine with these unique configurations:

  1. Ancient Philosophical Journey:

    "Through the eyes of an ancient philosopher, journey from the bustling streets of Athens to the serene temples of the Far East."

  2. Crypto-Animal Documentary:

    "Track the elusive 'cryptowolf' through digital forests where code and nature intertwine."

  3. Visions of the Future:

    "A day in the life of a future city powered by renewable energy and AI."


8. Local Video Generation Using CogVideo

You can generate videos locally using CogVideo directly through the Temporal Prompt Engine. The engine now simplifies the entire CogVideo process for video generation.

Streamlined Video Generation Workflow:

  1. Select CogVideo Version:

    • Click Local Video Generation from the Temporal Prompt Engine interface.

    • Enter the desired version of CogVideo (e.g., CogVideoX or another available version).

    • On Lower Vram (20gb-ish) you may benefit from running the script individually outside of the python app to do that follow the instructions below: Navigate to VideoGeneratorUtilities Folder

    Open VideoGeneratorUtilities folder within the cloned repo directory

    Run 5b Video Generation Script

    One-Click-Utility-TemporalCog-5b
  2. Prompt List Selection:

    • Once the version is entered, the engine will initialize.
    • Simply select the video prompt list to generate the videos using the settings you provide.
  3. Automated Processing:

    • The Temporal Prompt Engine manages the entire video generation process, allowing you to focus on creativity rather than configuration.
    • Videos will be generated locally using your NVIDIA GPU for optimal performance. You will have the opportunity to entered your desired Guidance Scale and Steps during this intial setup.

10. Join the Temporal Labs Journey

Support the mission of pushing the boundaries of AI and technology. Join as an investor, developer, or client.


11. Donations and Support

If you'd like to support the project, you can donate via the following crypto addresses:

  • Ethereum (ETH): 0x5616b3415ED6Ea7005595eF144A2054d4cD5767B
  • Bitcoin (BTC): bc1qpsfn8a7cs75fxxwv3ax7gtnurm44n5x2fmh59c
  • Solana (SOL): FVPGxfGT7QWfQEWvXpFkwdgiiKFM3VdvzNG6mEmX8pgi
  • Litecoin (LTC): ltc1qwlyjz8aymy9uagqhht5a4kaq06kmv58dxlzyww
  • Dogecoin (DOGE): DAeWAroHCy8nXCoUsobderPRSNXNu1WY34
  • Venmo: @Utah-DM

12. Additional Services Offered

  • Tutoring, Development, Design, Consulting, and Workshops are available to meet your AI and technology needs.

13. Attribution and Courtesy Request

If you create videos or content using prompts generated by the Temporal Prompt Engine, we kindly request that you include the phrase "using Temporal Prompt Engine" in your final release.


14. Contact

For questions, support, collaboration opportunities, or to discuss how we can work together:


15. Acknowledgments

Thanks to the developers and communities behind Git, Python, FFmpeg, Ollama, AudioLDM2, CogVideo, ComfyUI, and HuggingFace for making this project possible.

About

A comprehensive, click to install, fully open-source, Video + Audio Generation AIO Toolkit using advanced prompt engineering plus the power of CogVideox + AudioLDM2 + Python!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published