Home Applications Hackupc24_inter

Hackupc24_inter

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
0
0 reviews
0
Awards
142
Views
0
IPM installs
0
2
Details
Releases
Reviews
Issues
Text-to-video application based on user photos.

What's new in this version

Initial Release

Hackupc24_inter

Muvi: Ready to make your galery come to live?

https://github.com/Jony12rb/Hackupc24_inter/assets/99959182/cfde0de4-f683-4a11-bebf-c219fd4ef7b1

Description

The following photo shows the schema of the project. Our model is a text-to-video project, although we do not use a generative video model. Instead, we use the user’s photos together with ai music generation to create a video. The user can upload photos, and the model will generate a video with the photos and music. The music is generated using an ai model, and the video is created using the photo and the music. The user can download the video and share it with friends.

Schema

Moreover, we offer the functionality of selecting the photos and music using natural language. The user can write a sentence, and the model will select the photos and music based on the sentence, which makes it more user-friendly. Then, it will create the music according to the sentence and the photos.

Usage

After cloning the repo, stand on the main folder and do the following:

  1. Install IRIS Community Edtion in a container:
docker run -d --name iris-comm -p 1972:1972 -p 52773:52773 -e IRIS_PASSWORD=demo -e IRIS_USERNAME=demo intersystemsdc/iris-community:latest

:information_source: After running the above command, you can access the System Management Portal via http://localhost:52773/csp/sys/UtilHome.csp. Please note you may need to configure your web server separately when using another product edition.

  1. Create a Python environment with conda and activate it:
conda create --name iris-vector-search python=3.10
conda activate iris-vector-search
  1. Install packages:
pip install -r requirements.txt
conda install -c conda-forge ffmpeg
  1. Put your OpenAI API and Replicate API key

Create a .env file in the main folder and write the following:

OPENAI_API_KEY=your_openai_api_key
REPLICATE_API_KEY=your_replicate_api_key
  1. Activate the streamlit demo
streamlit run ./demo/GalleryVideoclipGenerator.py
  1. Now, you can generate your videoclips with the webUI!
    You have a page for uploading your images and one for generating the clips with them.
Made with
Version
1.0.005 May, 2024
Category
Technology Example
Works with
InterSystems Vector Search
First published
05 May, 2024