#!/bin/bash

set -e

bazel build -c opt vision/detection/tools:generate_patches_main

# Validation set.
./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp4/patch_gen_20_va.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_valid_exp4_20.lmdb"

# Training sets.
./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp4/patch_gen_20_tr.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_train_exp4_20.lmdb"
./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp4/patch_gen_18_tr.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_train_exp4_18.lmdb"
./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp4/patch_gen_16_tr.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_train_exp4_16.lmdb"
