uzh-rpg / rpg_vid2e

Open source implementation of CVPR 2020 "Video to Events: Recycling Video Dataset for Event Cameras"
GNU General Public License v3.0
327 stars 80 forks source link

A bug #60

Open EvilPerfectionist opened 2 years ago

EvilPerfectionist commented 2 years ago

The images are loaded in the format of "RGB": https://github.com/uzh-rpg/rpg_vid2e/blob/b795a4de1c860e252da37f494274bc755f116a27/upsampling/utils/dataset.py#L57

But they are converted to "Gray" from "BGR" before writing to disk: https://github.com/uzh-rpg/rpg_vid2e/blob/b795a4de1c860e252da37f494274bc755f116a27/upsampling/utils/upsampler.py#L98

leon-w commented 1 year ago

This is not really a bug as the upsampled frames are only intended to be further processed into events (and only storing them in grayscale can save some disk space).

As you can see here, during the event generation process, the upsampled frames are only loaded as grayscale again: https://github.com/uzh-rpg/rpg_vid2e/blob/ecbb11a9345bb9d31b4b691e7d82965da4401345/esim_torch/scripts/generate_events.py#L36