deep-learning-with-python-notebooks icon indicating copy to clipboard operation
deep-learning-with-python-notebooks copied to clipboard

Question concerning visualising convent filters

Open PelFritz opened this issue 4 years ago • 2 comments

Hi @fchollet , I have a small question concerning the code in post processing of images to visualise convent filters. Somewhere in the code we scaled the image by 64 and shifted it by 128

image *= 64 image +=128

Is there a reason to choose 64 and 128 ?

PelFritz avatar Dec 23 '21 22:12 PelFritz

Hi @MohammedHAlali , yes that. This function

def deprocess_image(image):

I wish to know why we scaled by 64 and shifted by 128

PelFritz avatar Dec 23 '21 23:12 PelFritz