Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 2.45 KB

File metadata and controls

57 lines (47 loc) · 2.45 KB

Preparation for dynamic splats

Dataset file structure

MPEG Multiview Video Dataset Please organize the data structure as follows:

data/
├── GSC
│   ├── scene1/
│   │   ├── colmap
│   │   ├── mp4
│   │   ├── png
│   │   ├── yuv
│   │   │   ├── v00_texture_1920x1080_yuv420p10le.yuv
│   │   │   ├── v01_texture_1920x1080_yuv420p10le.yuv
│   │   │   ├── ...
│   ├── scene2/
│   │   ├── colmap
│   │   ├── mp4
│   │   ├── png
│   │   ├── yuv
│   │   │   ├── v00_texture_1920x1080_yuv420p10le.yuv
│   │   │   ├── v01_texture_1920x1080_yuv420p10le.yuv
│   │   │   ├── ...

Preliminaries

The following series of preprocessing operations for MPEG datasets requires Colmap and ffmpeg to be installed in advance.

Operations

  1. Before you start, please open mpeg_gsc_utils/multiview_video_preprocess/scene_info.py and fill in some necessary metadata for the Scene you are going to convert. For now, we have already prepared the metadata for Bartender and Cinema.

  2. Convert multiview videos in "yuv" format to "mp4" format and "png" format

python mpeg_gsc_utils/multiview_video_preprocess/video_preprocess.py \
    --scene Cinema 

For the script mentioned above, you must specify the scene name. Additionally, if you haven't placed your data under examples/data/GSC/{scene}, you can manually specify your base_dir by passing --base_dir.

  1. Obtain the camera intrinsic and extrinsic parameters and save as "poses_bds.npy" file
python mpeg_gsc_utils/multiview_video_preprocess/gen_poses_bds_file.py \
    --scene Cinema 

For the script mentioned above, you must specify the scene name. Additionally, if you haven't placed your data under examples/data/GSC/{scene}, you can manually specify your base_dir by passing --base_dir.You can also select a specific number of frames by passing --frame_num.

  1. Run colmap frame by frame to get per-frame SfM point clouds
python mpeg_gsc_utils/multiview_video_preprocess/run_per_frame_colmap.py \
    --scene Cinema 

For the script mentioned above, you must specify the scene name. Additionally, if you haven't placed your data under examples/data/GSC/{scene}, you can manually specify your base_dir by passing --base_dir.You can also select a specific number of frames by passing --frame_num.