Skip to content

codingrex/TimeRewind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeRewind: Rewinding Time with Image-and-Events Video Diffusion

Official code for paper TimeRewind: Rewinding Time with Image-and-Events Video Diffusion

The arXiv paper are available on project website
Website

Environment Setup

conda create -n TimeRewind python=3.9

conda activate TimeRewind

pip install -r requirements.txt

cd diffusers/

pip install -e ".[torch]"

Demo Data and Model Checkpoints

  1. Data: Last frame and event images pairs
    Demo Data

  2. Pre-trained Model Checkpoints
    Model

Running Demo

./infer_demo.sh

please go to infer_demo.sh to change -model_dir to the path of downloaded Model_Demo, --data_dir to the path of downloaded Demo_data_release, and --output_dir to the path for saving the results

accelerate launch infer_demo.py \
    --model_dir='path_to_downloaded/Model_Demo' \
    --data_dir='path_to_downloaded/Demo_data_release' \
    --output_dir="path_to_save/Results/" \
    --width=512 \
    --height=320 \

The demo version of inference code and models are designed for the demo purpose only and for the ease of usage. The demo was tested on RTXA4000 GPU with Memory usage around 10GB, and with CPU with memory 32 GB. \

The expected results will be in Results/test_images

step_0000.gif

step_0001.gif

step_0002.gif

step_0003.gif

step_0004.gif

To-do List

  1. The inference code and model checkpoints prepared for the demo purpose only will be released by 03/24/2024 (✅ Done)
  2. Release of official training codes, data preparation codes, more data and more model checkpoints

Acknowledgements

  • Diffusers: This code is built upon Diffuser code base
@misc{von-platen-etal-2022-diffusers,
  author = {Patrick von Platen and Suraj Patil and Anton Lozhkov and Pedro Cuenca and Nathan Lambert and Kashif Rasul and Mishig Davaadorj and Thomas Wolf},
  title = {Diffusers: State-of-the-art diffusion models},
  year = {2022},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/huggingface/diffusers}}
}
  • BS-ERGB dataset: The demo data are from the test set of BS-ERGB dataset
@Article{Tulyakov22CVPR,
  author        = {Stepan Tulyakov and Alfredo Bochicchio and Daniel Gehrig and Stamatios Georgoulis and Yuanyou Li and
                  Davide Scaramuzza},
  title         = {{Time Lens++}: Event-based Frame Interpolation with Non-linear Parametric Flow and Multi-scale Fusion},
  journal       = "IEEE Conference on Computer Vision and Pattern Recognition",
  year          = 2022
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages