#!/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/vision/attributes/wheel_road/models/exp7b_solver.pbtxt \
  -model=$PWD/vision/attributes/wheel_road/models/exp7b.pbtxt \
  -weights=/home/james/data/wheel_road/wheel_road_exp7_snapshot_iter_150000.caffemodel \
  2>&1 | tee /tmp/wheel_road_exp7b_log.txt
