Skip to content

go125/PrepareDataForDFV

Repository files navigation

PrepareDataForDFV

make dataset for depth from video

This code requires MaskRCNN in the same dir.

Input example (KITTI)

nohup python GenDataKITTI.py &

If you want to delete static frames designated in SfM Learner, please execute RemoveStaticFrames.ipynb after executing GenDataKITTI.py.

Input example (KITTI_gray)

nohup python GenDataKITTI_gray.py &

Input example (Youtube videos)

First, please execute the initial part of ReadMovie.ipynb.

Then, please execute below.

nohup python GenData.py --base_path /home/ubuntu/data/all_video/ \
--ROOT_DIR ../Mask_RCNN \
--OUTPUT_DIR /home/ubuntu/data/tokushima_result20200312 \
--TEMP_DIR /home/ubuntu/data/train_data_example20200312/ &

Input example (Stereo Camera)

nohup python GenData.py --base_path ../all_video/ \
--ROOT_DIR ../Mask_RCNN \
--WIDTH 416 \
--HEIGHT 128 \
--OUTPUT_DIR ../out \
--TEMP_DIR ../tmpdir &

Data structure example

..
├── Mask_RCNN
├── PrepareDataForDFV
│   ├── GenData.py
│   ├── calib_cam_to_cam.txt
│   └── etc
└── videos
    ├── video1
    │   ├── frame1.jpg
    │   ├── frame2.jpg
    │   └── frame3.jpg
    ├── video2
    │   ├── frame1.jpg
    │   ├── frame2.jpg
    │   └── frame3.jpg
    └── etc

About

make dataset for depth from video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published