#!/bin/bash

DATA_SOURCE_PBTXT="experimental/james/corrector/test6_source.pbtxt"
CLASSIFIER_PBTXT="/usr/local/data/experiments/newdata_exp21/stage_07/pr_classifier_f4fac7bf.pbtxt"
OUTPUT_LMDB="/usr/local/data/experiments/newdata_exp21/stage_07/ai_valid_f4fac7bf_corrections.lmdb"

bazel build -c opt --config=cuda vision/detection/tools/run_detector_main
OMP_NUM_THREADS=1 ./bazel-bin/vision/detection/tools/run_detector_main \
  --classifier_pbtxt=$CLASSIFIER_PBTXT \
  --data_source_pbtxt=$DATA_SOURCE_PBTXT \
  --concurrency=50 \
  --output=$OUTPUT_LMDB \
  --alsologtostderr \
  --use_gpu=false
