#!/bin/bash

INPUT_LMDB="/usr/local/data/experiments/newdata_exp21/stage_07/ai_valid_f4fac7bf_corrections.lmdb"
DETECTION_EVAL_PBTXT="experimental/james/corrector/det_eval.pbtxt"
PR_CURVE="/usr/local/data/experiments/newdata_exp21/stage_07/pr_valid_curve_f4fac7bf_corrections.txt"
HTML="/usr/local/data/experiments/newdata_exp21/stage_07/pr_valid_curve_f4fac7bf_corrections.html"

bazel build -c opt --config=cuda vision/detection/tools/detection_evaluator_main
OMP_NUM_THREADS=1 ./bazel-bin/vision/detection/tools/detection_evaluator_main \
  --detection_evaluator_options_file=$DETECTION_EVAL_PBTXT \
  --annotated_image_lmdb=$INPUT_LMDB \
  --pr_curve=$PR_CURVE \
  --html=$HTML \
  --num_to_visualize=500
