#!/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/exp3/pr_detection_options.pbtxt" \
    --cascade_classifier_file="experimental/james/cascade_v1/exp3/pr_classifier_16.pbtxt" \
    --data_source_file="experimental/james/cascade_v1/exp3/pr_data_source.pbtxt" \
    --pr_curve="experimental/james/cascade_v1/exp3/pr_16.txt"

./bazel-bin/vision/detection/tools/detection_evaluator_main \
    --detection_evaluator_options_file="experimental/james/cascade_v1/exp3/pr_detection_options.pbtxt" \
    --cascade_classifier_file="experimental/james/cascade_v1/exp3/pr_classifier_24.pbtxt" \
    --data_source_file="experimental/james/cascade_v1/exp3/pr_data_source.pbtxt" \
    --pr_curve="experimental/james/cascade_v1/exp3/pr_24.txt"

./bazel-bin/vision/detection/tools/detection_evaluator_main \
    --detection_evaluator_options_file="experimental/james/cascade_v1/exp3/pr_detection_options.pbtxt" \
    --cascade_classifier_file="experimental/james/cascade_v1/exp3/pr_classifier_32.pbtxt" \
    --data_source_file="experimental/james/cascade_v1/exp3/pr_data_source.pbtxt" \
    --pr_curve="experimental/james/cascade_v1/exp3/pr_32.txt"
