Just completed the first lesson and went through the forum to figure out how to call predict on a single image.
After reading through a few different forum posts, my takeaway is that I need to run the following code:
learn.load('stage-1'); img = open_image('sample-image.jpg') learn.predict(img)
Do I need to “normalize” the sample-image.jpg and also resize it to 224?
Other people have run this code without normalizing but resizing. I am confused because I think since the model was trained on normalized images, the new test image should also be normalized.
Thanks for the help.