mobilenet_v2_keras
mobilenet_v2_keras copied to clipboard
Hi, this is more of a question concerning your preferences for preprocess_input
Hi, I'm looking at your code and comparing it to the usual way of preprocessing numpy arrays into formats for training with Keras. Is there any particular reason why you wrote your own preprocessing code to convert the RGB values from [0, 255] to [-1, 1]?
Why not just use the built in keras.api of
imagenet_utils.preprocess_input()?
I'm trying both. It seems with the imagenet_utils.preprocess_input(), my model is not converging as well but with your
x /= 128. x -= 1. return x.astype(np.float32)
it is converging.
Is it a bug with imagenet_utils.preprocess_input()? which is why you hard coded your own way to preprocess the numpy array?
thanks again.
I've encounter the same problem with you. I am doubting that the preprocessing step is a crucial step for training.