update to predict-depth.r