Tensorflow Pretrained
Preprocessing Images
Put path of all images in a list
For all images, load image
Convert images into 3D tensors (an image is a 3D tensor as seen in the last lesson) using Keras
img_to_array()
. Multiple 3D tensors stack together to form another array.
Do some arithmetic on the new array using
preprocess_input()
. Squishes values to since the pretrained model resnet also had these values.
Predicting using Pretrained Models
Last updated