I have just trained the FER dataset (facial emotion recognition) and wanted it to apply it real life images.
My goal is to do a simple function like:
img = open_image(testimg_loc)
pred_class, pred_idx, outputs = learn.predict(img)
However, the FER dataset is composed of 48x48 pixel grayscale images, so when I import an image to test it, I imagine I need to run the same operations.
How do I go about doing that? I figure there is probably some easy way to do so but I haven’t been able to find it yet…