Once you have extracted the data, the data directory structure should be as follows:
yxd-6views
├── 20114279.hevc
├── 20114281.hevc
├── 22053924.hevc
├── 22053927.hevc
├── 22138903.hevc
├── 22139915.hevc
└── calibration_full.json
There are three steps to process the data:
-
Transform the
hevc
format videos tojpg
images and save extrinsics and intrinsics.python preprocess.py --mode 'process' --data_dir /path/to/data/directory
-
Create the masks with any segmentation or matting methods. The required directory structure of one camera view should be as follows:
20114279 ├── color00000.jpg ├── color00001.jpg ├── ... ├── mask00001.jpg ├── mask00001.jpg ├── ...
-
Generate data with Tensor4D format.
python preprocess.py --mode 'generate' --start_frame ${start_frame_index} --n_frames ${number_frames} --data_dir /path/to/data/directory/of/step1 --output_dir /path/to/output/directory
--start_frame
: Specifies the starting frames of the data used for converting to the Tensor4D format.n_frames
: Specifies the number of frames required in each view.The final output directory structure:
output_dir ├── cameras_sphere.npz ├── image └── mask