#!/bin/bash

set -e

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

./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp2/patch_gen_1-00_tr.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_train_exp2_1-00.lmdb"
./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp2/patch_gen_1-00_va.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_valid_exp2_1-00.lmdb"

./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp2/patch_gen_1-10_tr.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_train_exp2_1-10.lmdb"
./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp2/patch_gen_1-10_va.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_valid_exp2_1-10.lmdb"

./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp2/patch_gen_1-20_tr.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_train_exp2_1-20.lmdb"
./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp2/patch_gen_1-20_va.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_valid_exp2_1-20.lmdb"
