#!/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/exp10/patch_gen_tr.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_train_exp10.lmdb"

./bazel-bin/vision/detection/tools/generate_patches_main \
     --patch_generator_options_file="experimental/james/cascade_v1/exp10/patch_gen_va.pbtxt" \
     --output="/usr/local/data/kitti/stage_1/kitti_pedestrian_patches_valid_exp10.lmdb"
