facebookresearch / robust_cvd

Robust Consistent Video Depth Estimation

Home Page:https://robust-cvd.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use .raw files?

toooft opened this issue · comments

Such a fantastic library, thanks a lot for your work!

I need help with two things:

  1. I'm struggling to figure out how to open the .raw files and would like some help - I'm sure it's easy but I can't load them into any image software I own. How do I convert them to .png for instance?

  2. In the colab, what script language is the Result Visualization part made in? I can't seem to make it work on Ubuntu 20.04 LTS but I'm sure it's easy as well.

  1. load raw
from utils import image_io
image_io.load_raw_float32_image("frame_000000.raw")

see visualization.py visualize_depth_dir

  1. result visualization
    Can you give more information? I sucessfully ran it on Ubuntu 20.04 LTS, copying the code into py file and running it with python command (running it from PyCharm lead to ModuleNotFoundError: No module named 'moviepy' error)

I was able to open the raw files directly in ffmpeg as gray float 32bit low endian format

ffmpeg -f image2 -pixel_format grayf32le -video_size 384x224 -i frame_%06d.raw -crf 19 -y depth.mp4