#!/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/exp4_noinit_solver.pbtxt \
  -model=$PWD/vision/attributes/wheel_road/models/exp4.pbtxt \
  2>&1 | tee /tmp/wheel_road_exp4_noinit_log.txt
