#!/bin/bash

set -e -x

bazel build -c opt experimental/james/tools/check_patches
#valgrind --tool=helgrind \
  ./bazel-bin/experimental/james/tools/check_patches \
  --patch=/usr/local/data/experiments/newdata_exp13i/stage_06/data_valid_8ebf6deb.pbtxt \
  --detector=/usr/local/data/experiments/newdata_exp13i/stage_06/pr_classifier_f9c50a32.pbtxt \
  --input=/usr/local/data/experiments/newdata_exp1/test4.lmdb \
  --image_id="35f8e885_000072b1_005661.jpg" \
  --html=/tmp/check_patch.html 2>&1 | tee /tmp/helgrind.log
