Giter Club home page Giter Club logo

se-cff's Introduction

SE-CFF

[S]tereo depth from [E]vents Cameras: [C]oncentrate and [F]ocus on the [F]uture

This is an official code repo for "Stereo Depth from Events Cameras: Concentrate and Focus on the Future" CVPR 2022 Yeong-oo Nam*, Mohammad Mostafavi*, Kuk-Jin Yoon and Jonghyun Choi (Corresponding author)

If you use any of this code, please cite both following publications:

@inproceedings{nam2022stereo,
  title     =  {Stereo Depth from Events Cameras: Concentrate and Focus on the Future},
  author    =  {Nam, Yeongwoo and Mostafavi, Mohammad and Yoon, Kuk-Jin and Choi, Jonghyun},
  booktitle =  {Proceedings of the IEEE/CVF Conference on Computer Vision and Patter Recognition},
  year      =  {2022}
}
@inproceedings{mostafavi2021event,
  title     =  {Event-Intensity Stereo: Estimating Depth by the Best of Both Worlds},
  author    =  {Mostafavi, Mohammad and Yoon, Kuk-Jin and Choi, Jonghyun},
  booktitle =  {Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages     =  {4258--4267},
  year      =  {2021}
}

Maintainers

Table of contents

Pre-requisite

The following sections list the requirements for training/evaluation the model.

Hardware

Tested on:

  • CPU - 2 x Intel(R) Xeon(R) Silver 4210R CPU @ 2.40GHz
  • RAM - 256 GB
  • GPU - 8 x NVIDIA A100 (40 GB)
  • SSD - Samsung MZ7LH3T8 (3.5 TB)

Software

Tested on:

Dataset

Download DSEC datasets.

๐Ÿ“‚ Data structure

Our folder structure is as follows:

DSEC
โ”œโ”€โ”€ train
โ”‚ย ย  โ”œโ”€โ”€ interlaken_00_c
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ calibration
โ”‚ย ย  โ”‚   โ”‚ย ย  โ”œโ”€โ”€ cam_to_cam.yaml
โ”‚ย ย  โ”‚   โ”‚ย ย  โ””โ”€โ”€ cam_to_lidar.yaml
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ disparity
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ event
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 000000.png
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ...
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ 000536.png
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ timestamps.txt
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ events
โ”‚ย ย  โ”‚ย ย   ย ย  โ”œโ”€โ”€ left
โ”‚ย ย  โ”‚ย ย   ย ย  โ”‚ย ย  โ”œโ”€โ”€ events.h5
โ”‚ย ย  โ”‚ย ย   ย ย  โ”‚ย ย  โ””โ”€โ”€ rectify_map.h5
โ”‚ย ย  โ”‚ย ย   ย ย  โ””โ”€โ”€ right
โ”‚ย ย  โ”‚ย ย   ย ย      โ”œโ”€โ”€ events.h5
โ”‚ย ย  โ”‚ย ย   ย ย      โ””โ”€โ”€ rectify_map.h5
โ”‚ย ย  โ”œโ”€โ”€ ...
โ”‚ย ย  โ””โ”€โ”€ zurich_city_11_c                # same structure as train/interlaken_00_c
โ””โ”€โ”€ test
    โ”œโ”€โ”€ interlaken_00_a
    โ”‚ย ย  โ”œโ”€โ”€ calibration
    โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ cam_to_cam.yaml
    โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ cam_to_lidar.yaml
    โ”‚ย ย  โ”œโ”€โ”€ events
    โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ left
    โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ events.h5
    โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ rectify_map.h5
    โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ right
    โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ events.h5
    โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ rectify_map.h5
    โ”‚ย ย  โ””โ”€โ”€ interlaken_00_a.csv
    โ”œโ”€โ”€ ...
    โ””โ”€โ”€ zurich_city_15_a                # same structure as test/interlaken_00_a

Getting started

Build docker image

git clone [repo_path]
cd event-stereo
docker build -t event-stereo ./

Run docker container

docker run \
    -v <PATH/TO/REPOSITORY>:/root/code \
    -v <PATH/TO/DATA>:/root/data \
    -it --gpus=all --ipc=host \
    event-stereo

Build deformable convolution

cd /root/code/src/components/models/deform_conv && bash build.sh

Training

cd /root/code/scripts
bash distributed_main.sh

Inference

cd /root/code
python3 inference.py \
    --data_root /root/data \
    --checkpoint_path <PATH/TO/CHECKPOINT.PTH> \
    --save_root <PATH/TO/SAVE/RESULTS>

Pre-trained model

โš™๏ธ You can download pre-trained model from here

What is not ready yet

Some modules introduced in the paper are not ready yet. We will update it soon.

  • Intensity image pre-processing code.
  • E+I Model code.
  • E+I train & test code.
  • Future event distillation code.

Benchmark website

The DSEC website holds the benchmarks and competitions.

๐Ÿš€ Our CVPR 2022 results (this repo), are available in the DSEC website. We ranked better than the state-of-the-art method from ICCV 2021

๐Ÿš€ Our ICCV 2021 paper Event-Intensity Stereo: Estimating Depth by the Best of Both Worlds ranked first in the CVPR 2021 Competition hosted by the CVPR 2021 workshop on event-based vision and the Youtube video from the competition.

Related publications

License

MIT license.

se-cff's People

Contributors

skdudn321 avatar smmmmi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.