In this when we are going for train_gen why we divide every pixel with 255??
In this when we are going for train_gen why we divide every pixel with 255?
Hey @personifier997, Neural networks process inputs using small weight values, and inputs with large integer values can disrupt or slow down the learning process. As such it is good practice to normalize the pixel values so that each pixel value has a value between 0 and 1. Pixel values range from 0-255.0 so to scale it down to 0-1 we divide values by 255.0.
Hope this resolved your doubt.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.