This project contains .sh files and helper scripts for converting videos from the INPUT_DIR to the specified output directory.Place this in installed V2E directory for conversion.
- Place your video files in the
INPUT_DIR. - Run the appropriate
.shscript to start the conversion process. - The script converts the input videos into .h5 files, which are heavy [make sure you have enough space] [adjust the pos_thres, neg_thres to reduce the size].
- By default, I have converted .h5 file into .npz to reduce the size, can comment the line
python convert_h5_to_npz.py "${OUTPUT_DIR}/${fname}.h5"if only .h5 is needed [ .aedat is not available for 960x540 resolution. ] - Converted videos will be saved in the
OUTPUT_DIR.
chmod +x preprocess_v2e_po_train.sh
./preprocess_v2e_po_train.sh - V2E installed
- Required video conversion tools (e.g., ffmpeg)