You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In short, it's because that's how the original images were formatted - with zero representing the background and nonzero values representing the more important digit pixels. Roughly speaking, this is to help guide the neural network towards the important parts of the image. For more details, see this explanation.
Hi
Somewhat I cannot understand why you need to revert.
#revert the image,and normalize it to 0-1 range
img = 1.0 - img/255.0
Regards
The text was updated successfully, but these errors were encountered: