π½οΈ See more video samples in our project page!
![](https://private-user-images.githubusercontent.com/63445348/333781031-aafafa52-5ddf-4093-9d29-681fe469e447.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTkwMjQsIm5iZiI6MTcyMzg5ODcyNCwicGF0aCI6Ii82MzQ0NTM0OC8zMzM3ODEwMzEtYWFmYWZhNTItNWRkZi00MDkzLTlkMjktNjgxZmU0NjllNDQ3LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDEyNDUyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZiMDc3MDVlYWE5ODA3NjgxYjZkN2E3MTNkYTViMGQ3ZjhmMjdlZWJhMTc4MGUwN2YyODk2ODJhM2Q5MWFmZDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-m6ILbPznlaMZT4Wx3oFOPF2e72jKS9V-J16zXp-S7A)
"An astronaut floating in space, high quality, 4K resolution."
100 frames, 320 X 512 resolution
![](https://private-user-images.githubusercontent.com/63445348/333781039-b198c5bb-5104-4a57-a433-ddadfa7ec713.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTkwMjQsIm5iZiI6MTcyMzg5ODcyNCwicGF0aCI6Ii82MzQ0NTM0OC8zMzM3ODEwMzktYjE5OGM1YmItNTEwNC00YTU3LWE0MzMtZGRhZGZhN2VjNzEzLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDEyNDUyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1NWQ3MmRiMWY4OGM5Mzc4ZjZlODc4OTVjZTE5NDA5YWRiMjZlNzVjNDMyNDczMTdlOTAwNjg0OGNkNzM5NjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VRVs7pz2Wansz7uxZdF9jseceujEqikqKnFWNj3f9vI)
"A colony of penguins waddling on an Antarctic ice sheet, 4K, ultra HD."
100 frames, 320 X 512 resolution
[2024.05.25] π₯³π₯³π₯³ We are thrilled to present our official PyTorch implementation for FIFO-Diffusion. We are releasing the code based on VideoCrafter2.
[2024.05.19] Our paper, FIFO-Diffusion: Generating Infinite Videos from Text without Training, has been archived.
git clone git@github.com:jjihwan/FIFO-Diffusion_public.git
cd FIFO-Diffusion_public
βοΈ Start with VideoCrafter
python3 -m venv .fifo
source .fifo/bin/activate
pip install -r requirements.txt
Model | Resolution | Checkpoint |
---|---|---|
VideoCrafter2 (Text2Video) | 320x512 | Hugging Face |
Store them as following structure:
cd FIFO-Diffusion_public
.
βββ videocrafter_models
βββ base_512_v2
βββ model.ckpt # VideoCrafter2 checkpoint
Requires less than 9GB VRAM with Titan XP.
python3 videocrafter_main.py --save_frames
May consume slightly more memory than the single GPU inference (11GB with Titan XP). Please note that our implementation for parallel inference might not be optimal. Pull requests are welcome! π€
python3 videocrafter_main_mp.py --num_gpus 8 --save_frames
βοΈ Start with Open-Sora Plan (Comming Soon)
cd FIFO-Diffusion_public
git clone git@github.com:PKU-YuanGroup/Open-Sora-Plan.git
python -m venv .sora
source .sora/bin/activate
cd Open-Sora-Plan
pip install -e .
sh scripts/opensora_fifo_ddpm.sh
βοΈ Start with zeroscope (Comming Soon)
python3 -m venv .fifo
source .fifo/bin/activate
pip install -r requirements.txt
mkdir zeroscope_models # directory where the model will be stored
python3 zeroscope_main.py
@article{kim2024fifo,
title = {FIFO-Diffusion: Generating Infinite Videos from Text without Training},
author = {Jihwan Kim and Junoh Kang and Jinyoung Choi and Bohyung Han},
journal = {arXiv preprint arXiv:2405.11473},
year = {2024},
}
Our codebase builds on VideoCrafter, Open-Sora Plan, zeroscope. Thanks the authors for sharing their awesome codebases!