Skip to content

MelonieNimasha/Future-Frame-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

Future Frame Generation with Stable Diffusion Model

This shows how to finetune stable-diffusion-inpainting checkpoint with LoRA for future frame generation and inferencing using finetuned model.

Setup

conda create --name env_name
conda activate env_name
pip3 install diffusers["torch"] transformers
pip3 install diffusers["flax"] transformers
pip3 install accelerate
pip3 install git+https://github.com/huggingface/diffusers

Future Frame Generation

Data Preparation

pip3 install cv2
pip3 install pillow
cd future_Frame_Generation/data_prep
python3 frame_extractor.py <path-to-folder_of_videos>

Finetune

chmod +x ffp_lora_double_cond.sh
./ffp_lora_double_cond.sh

Inference

python3 inference_ffp_double_cond.py

Reference

https://github.com/huggingface/diffusers/tree/main
https://huggingface.co/blog/lora
https://huggingface.co/runwayml/stable-diffusion-inpainting

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published