bbossam / rpg_vid2e

Open source implementation of CVPR 2020 "Video to Events: Recycling Video Dataset for Event Cameras"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video to Events: Recycling Video Datasets for Event Cameras

Video to Events

This repository contains code that implements video to events conversion as described in Gehrig et al. CVPR'20 and the used dataset. The paper can be found here

If you use this code in an academic context, please cite the following work:

Daniel Gehrig, Mathias Gehrig, Javier Hidalgo-Carrió, Davide Scaramuzza, "Video to Events: Recycling Video Datasets for Event Cameras", The Conference on Computer Vision and Pattern Recognition (CVPR), 2020

@InProceedings{Gehrig_2020_CVPR,
  author = {Daniel Gehrig and Mathias Gehrig and Javier Hidalgo-Carri\'o and Davide Scaramuzza},
  title = {Video to Events: Recycling Video Datasets for Event Cameras},
  booktitle = {{IEEE} Conf. Comput. Vis. Pattern Recog. (CVPR)},
  month = {June},
  year = {2020}
}

News

We now also release new python bindings for esim with GPU support. Details are here

Dataset

The synthetic N-Caltech101 dataset, as well as video sequences used for event conversion can be found here. For each sample of each class it contains events in the form class/image_%04d.npz and images in the form class/image_%05d/images/image_%05d.png, as well as the corresponding timestamps of the images in class/image_%04d/timestamps.txt.

Installation

Clone the repo recursively with submodules

git clone git@github.com:uzh-rpg/rpg_vid2e.git --recursive

Installation with Anaconda

Adapt the CUDA toolkit version according to your setup.

cuda_version=10.1

conda create -y -n vid2e python=3.7
conda activate vid2e
conda install -y pytorch torchvision cudatoolkit=$cuda_version -c pytorch
conda install -y -c conda-forge opencv tqdm scikit-video eigen boost boost-cpp pybind11

Build the python bindings for ESIM

pip install esim_py

Build the python bindings with GPU support with

pip install esim_torch/

Adaptive Upsampling

This package provides code for adaptive upsampling with frame interpolation based on Super-SloMo

Consult the README for detailed instructions and examples.

esim_py

This package exposes python bindings for ESIM which can be used within a training loop.

For detailed instructions and example consult the README

esim_torch

This package exposes python bindings for ESIM with GPU support.

For detailed instructions and example consult the README

About

Open source implementation of CVPR 2020 "Video to Events: Recycling Video Dataset for Event Cameras"

License:GNU General Public License v3.0


Languages

Language:Python 66.5%Language:C++ 21.4%Language:Cuda 10.9%Language:CMake 1.2%