set up caffe environment