Welcome to LLMPopcorn! This guide will help you generate video titles and prompts, as well as create AI-generated videos based on those prompts.
Before running the scripts, ensure that you have installed the necessary Python packages. You can do this by executing the following command:
pip install torch transformers diffusers tqdm numpy pandas sentence-transformers faiss-cpu openai huggingface_hub safetensorsDownload the Dataset:
Download the Microlens dataset and place it in the Microlens folder for use with PE.py.
To generate video titles and prompts, run the LLMPopcorn.py script:
python LLMPopcorn.pyTo enhance LLMPopcorn, execute the PE.py script:
python PE.pyTo create AI-generated videos, execute the generating_images_videos_three.py script:
python generating_images_videos_three.pyThen, following the instructions in the MMRA repository, you can evaluate the generated videos.