Deep learning for in vivo near-infrared imaging