Comparing perception in deep neural networks and humans