How to resize MNIST images to fit AlexNet model
I am using the keras API to load in the MNIST dataset. My problem is I need to use AlexNet as my algorithm. Understanding the AlexNet model, I require to start with 277x277 images but the MINST dataset has 28x28. How can I reshape the numpy array so that each image is 227x277 to then use the full AlexNet model?
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data()
This is how I load my data in. Could someone show me the solution to change the initial images to match the AlexNet model?
Topic alex-net keras deep-learning dataset machine-learning
Category Data Science