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

./bazel-bin/vision/detection/tools/detection_evaluator_main \
    --detection_evaluator_options_file="experimental/james/cascade_v1/exp4/pr_detection_options.pbtxt" \
    --cascade_classifier_file="experimental/james/cascade_v1/exp4/pr_classifier_18.pbtxt" \
    --data_source_file="experimental/james/cascade_v1/exp4/pr_data_source.pbtxt" \
    --pr_curve="experimental/james/cascade_v1/exp4/pr_18.txt"

./bazel-bin/vision/detection/tools/detection_evaluator_main \
    --detection_evaluator_options_file="experimental/james/cascade_v1/exp4/pr_detection_options.pbtxt" \
    --cascade_classifier_file="experimental/james/cascade_v1/exp4/pr_classifier_20.pbtxt" \
    --data_source_file="experimental/james/cascade_v1/exp4/pr_data_source.pbtxt" \
    --pr_curve="experimental/james/cascade_v1/exp4/pr_20.txt"
