#!/bin/bash

set -e

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

IMAGE="$HOME/data/kitti/object/training/image_2/006980.png"
#IMAGE="$HOME/data/kitti/object/training/image_2/000509.png"
#IMAGE="$HOME/data/kitti/object/training/image_2/002108.png"
./bazel-bin/vision/detection/tools/run_sliding_window \
    --model=experimental/james/cascade_v1/exp6/deploy.pbtxt \
    --params=/tmp/snapshot_cascade_v1_exp6_exp6_lr0-002__iter_500000.caffemodel \
    --image="$IMAGE" \
    --threshold=0.99 \
    --output=debug.png \
    --patch_width=20 \
    --patch_height=50 \
    --step_horiz=5 \
    --step_vert=10 \
    --num_scales=6
