#!/bin/bash

set -e

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

./bazel-bin/vision/detection/tools/detection_evaluator_main \
    --detection_evaluator_options_file="experimental/james/cascade_v1/exp2/pr_detection_options.pbtxt" \
    --cascade_classifier_file="experimental/james/cascade_v1/exp2/pr_classifier_1-00.pbtxt" \
    --data_source_file="experimental/james/cascade_v1/exp2/pr_data_source.pbtxt" \
    --pr_curve="experimental/james/cascade_v1/exp2/pr_1-00.txt"

./bazel-bin/vision/detection/tools/detection_evaluator_main \
    --detection_evaluator_options_file="experimental/james/cascade_v1/exp2/pr_detection_options.pbtxt" \
    --cascade_classifier_file="experimental/james/cascade_v1/exp2/pr_classifier_1-10.pbtxt" \
    --data_source_file="experimental/james/cascade_v1/exp2/pr_data_source.pbtxt" \
    --pr_curve="experimental/james/cascade_v1/exp2/pr_1-10.txt"

./bazel-bin/vision/detection/tools/detection_evaluator_main \
    --detection_evaluator_options_file="experimental/james/cascade_v1/exp2/pr_detection_options.pbtxt" \
    --cascade_classifier_file="experimental/james/cascade_v1/exp2/pr_classifier_1-20.pbtxt" \
    --data_source_file="experimental/james/cascade_v1/exp2/pr_data_source.pbtxt" \
    --pr_curve="experimental/james/cascade_v1/exp2/pr_1-20.txt"
