#!/bin/bash

set -e

bazel build -c opt --config=cuda vision/detection/tools:run_detector_main
./bazel-bin/vision/detection/tools/run_detector_main \
  --classifier_pbtxt="/usr/local/models/pedestrians/v34/pr_classifier.pbtxt" \
  --data_source_pbtxt="$PWD/experimental/james/scripts/rawimg_raw_to_lmdb.pbtxt" \
  --output="/home/zoox/data/raw_img/video_raw.lmdb" \
  --alsologtostderr
./bazel-bin/vision/detection/tools/run_detector_main \
  --classifier_pbtxt="/usr/local/models/pedestrians/v34/pr_classifier.pbtxt" \
  --data_source_pbtxt="$PWD/experimental/james/scripts/rawimg_enc_to_lmdb.pbtxt" \
  --output="/home/zoox/data/raw_img/video_enc.lmdb" \
  --alsologtostderr
