normal_mean = (mean - m_min) / (m_max - m_min)
mean = caffe.io.resize_image(normal_mean.transpose((1, 2, 0)), in_shape[2:]
    ).transpose((2, 0, 1)) * (m_max - m_min) + m_min
Using GPU despite setting CPU_Only, yielding unexpected keyword argument