#!/bin/bash

set -euxo pipefail

bazel run -c opt --config=cuda vision/detection/tools:run_detector_main -- \
  --classifier=MULTICLASS_DETECTOR_V8 \
  --data_source=$PWD/vision/data/tools/wheel_road_annotator/run_detections_data_source_2_tr.pbtxt \
  --output=/tmp/wheel_road_annotator_detections_2_tr.lmdb \
  --max_items=100000 \
  --alsologtostderr

bazel run -c opt --config=cuda vision/detection/tools:run_detector_main -- \
  --classifier=MULTICLASS_DETECTOR_V8 \
  --data_source=$PWD/vision/data/tools/wheel_road_annotator/run_detections_data_source_2_te.pbtxt \
  --output=/tmp/wheel_road_annotator_detections_2_te.lmdb \
  --max_items=5000 \
  --alsologtostderr
