fchollet / deep-learning-with-python-notebooks

Jupyter notebooks for the code samples of the book "Deep Learning with Python"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question concerning visualising convent filters

PelFritz opened this issue · 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 ?

Hi @MohammedHAlali ,
yes that. This function

def deprocess_image(image):

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