#!/bin/bash

set -euxo pipefail

bazel build -c opt --config=cuda //third_party/caffe:caffe_tool
./bazel-bin/third_party/caffe/caffe_tool \
  train \
  -solver=$PWD/experimental/james/wheel_road/models/exp10b_solver.pbtxt \
  -model=$PWD/experimental/james/wheel_road/models/exp10b.pbtxt \
  -weights=/tmp/wheel_road_exp10_snapshot_iter_110000.caffemodel \
  2>&1 | tee /tmp/wheel_road_exp10b_log.txt
