Skip to content

Latest commit

Β 

History

History
208 lines (139 loc) Β· 8.09 KB

CONTRIBUTING.md

File metadata and controls

208 lines (139 loc) Β· 8.09 KB

Contributing to Story Blocks

Thank you for considering contributing to Story Blocks! We appreciate your interest in helping us improve and expand this open-source project. Here's how you can contribute to our project:

Table of Contents

Getting Started

Story Blocks is an open-source project that utilizes generative AI to transform text into visual narratives. By combining OpenAI's text generation model and Stable Diffusion(Automatic1111) with LORA for image synthesis, this project allows users to explore new frontiers of storytelling.

One-Click Run Google Colab

You can quickly get started with Story Blocks using Google Colab. Click the following links to run the project:

Example

To provide an example of Story Blocks in action, here's a sample input prompt and accompanying visual output:

Input Prompt: "Boy going to the moon"

Example Image 1 Example Image 2

Features

  • Transforms text prompts into captivating video narratives with vivid visuals.
  • Uses cutting-edge AI technology for text, image, and video generation, including OpenAI, Automatic1111, and ElevenLabs.
  • Customizable options to tailor the user experience.

Usage

To use Story Blocks, simply provide a text prompt, and watch as the project generates a unique story accompanied by stunning visuals. Users can customize their experience by adjusting various parameters such as image style and animation speed.

Todo List

Here's a list of tasks and features that are currently being worked on or planned for Story Blocks:

  • Complete video compilation pipeline
  • Add Stable Diffusion support for image generation
  • Add Automatic1111 APIs
  • Add Diffusechain
  • Convert it into a Python file
  • Add Colab notebook
  • Add Gradio
  • Project Creation and Section
  • Implement Story Generation on Gradio
  • Add Audio Generation using ElevenLabs
  • Add Audio generation using pyttx3
  • Add SDXL Model for Image Generation locally
  • Add proper Subtitles support
  • Add Support for other image generation models (from Stability AI)
  • Add support for flashcards
  • Prompts optimization
  • Become Automatic1111 agnostic

Show Your Support

We hope you find Story Blocks helpful! If you do, let us know by giving us a star ⭐ on the repo. It's easy, just click on the 'Star' button at the top right of the page. Your support means a lot to us and keeps us motivated to improve and expand Story Blocks. Thank you and happy content creating! πŸŽ‰

GitHub star chart

Instructions for Running Story Blocks

This guide provides step-by-step instructions for installing ImageMagick and FFmpeg on your system, which are both required to do automated editing. Once installed, you can proceed to run runStoryblocks.py successfully.

Prerequisites

Before you begin, ensure that you have the following prerequisites installed on your system:

  • Python 3.x
  • Pip (Python package installer)

Installation Steps

Follow the instructions below to install ImageMagick, FFmpeg, and clone the Story Blocks repository:

Step 1: Install ImageMagick

  1. For Windows, download the installer from the official ImageMagick website and follow the installation instructions. https://imagemagick.org/script/download.php

  2. For Ubuntu/Debian-based systems, use the command:

    sudo apt-get install imagemagick
    

    Then run the following command to fix a moviepy Imagemagick policy.xml incompatibility problem:

    !sed -i '/<policy domain="path" rights="none" pattern="@\*"/d' /etc/ImageMagick-6/policy.xml
    
  3. For macOS using Homebrew, use the command:

    brew install imagemagick
    
  4. Verify the installation by running the following command:

    convert --version
    

    You should see the ImageMagick version information if the installation was successful.

Step 2: Install FFmpeg (REQUIRED FOR STORY BLOCKS TO WORK)

  1. For Windows, download the FFmpeg binaries from this Windows Installer (It will download ffmpeg, ffprobe and add it to your path). https://github.com/icedterminal/ffmpeg-installer/releases/tag/6.0.0.20230306

  2. For macOS using Homebrew, use the command:

    brew install ffmpeg
    

    For Ubuntu/Debian-based systems, use the command:

    sudo apt-get install ffmpeg
    
  3. Verify the installation by running the following command:

    ffmpeg -version
    

    You should see the FFmpeg version information if the installation was successful.

Step 3: Clone the Story Blocks Repository

  1. Open a terminal or command prompt.

  2. Execute the following command to clone the Story Blocks repository:

    git clone https://github.com/adithya-s-k/Storyblocks.git
    

Step 4: Install Python Dependencies

  1. Open a terminal or command prompt.

  2. Navigate to the directory where runStoryblocks.py is located (the cloned repo).

  3. Execute the following command to install the required Python dependencies:

    pip install -r requirements.txt
    

    This command will install the necessary packages specified in the requirements.txt file.

Contrib

uting

We welcome contributions from the community to help improve Story Blocks. To contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch and make your changes.
  3. Submit a pull request.

Technologies Used

Story Blocks utilizes the following technologies to power its functionality:

  • Moviepy: Moviepy is used for video editing, allowing Story Blocks to make video editing and rendering.
  • Openai: Openai is used for automating the entire process, including generating scripts and prompts for LLM automated editing processes.
  • ElevenLabs: ElevenLabs is used for voice synthesis, supporting multiple languages for voiceover creation.
  • Diffusechain: A library that makes it easier to generate images using diffusion models.
  • Automatic1111: A UI first project which is used to generate, modify images, and much more.

These technologies work together to provide a seamless and efficient experience in automating video and short content creation with AI.

License

Story Blocks is licensed under the MIT License. See LICENSE for more information.

Contact

Stay updated with the latest happenings, announcements, and insights about Story Blocks by checking out my Twitter accounts. Engage in fascinating dialogues, access the latest news about the project, and gain insights from the person behind Story Blocks.

Star History Chart

Feel free to reach out if you have any questions or need assistance with the project. We look forward to your contributions!