BinRoot / TensorFlow-Book

Accompanying source code for Machine Learning with TensorFlow. Refer to the book for step-by-step explanations.
http://www.tensorflowbook.com
MIT License
4.45k stars 1.21k forks source link

image clean #24

Open warmestwind opened 7 years ago

warmestwind commented 7 years ago

Hi, I want to know why you compare stdsT with 1.0 / np.sqrt(img_size) then take maximum as standard deviation. adj_stds = np.maximum(stdsT, 1.0 / np.sqrt(img_size)) normalized = (img_data - meansT) / adj_stds

Thanks!