나는 Udacity에 대한 깊은 학습 과정을 따라 가고 있습니다. 나는 pixel depth
에 대해 조금 혼란 스러워요 어떻게 아래 코드에서 사용되는 :이미지 분류 - 픽셀 깊이 란 무엇입니까?
image_size = 28 # Pixel width and height.
pixel_depth = 255.0 # Number of levels per pixel.
image_data = (ndimage.imread(image_file).astype(float) -
pixel_depth/2)/pixel_depth
누군가가 나를 설명 할 수 N 차원 배열로 이미지를 읽는 동안 우리는 pixel_depth/2)/pixel_depth
을하고있는 이유는 무엇입니까?
이미지에'[0, 1]'또는'[0, 255]'의 값을 포함 할 수 있다고 가정합니다. 깊이가 – Maxim
입니다. 그러나 왜'pixel_depth/2)/pixel_depth' – AgentX