Where did learn.predict_array go?

It seems like predict_array is gone in the latest version. What’s the recommended alternative?

Also if I export/load then using regular predict like this:

learn.export()
learn = load_learner(path)
im = open_image(test_img_path)
pred_class,pred_idx,outputs = learn.predict(im)

How can I see what transformations are being applied to im?

2 Likes

You can check image transformation here: https://www.kaggle.com/init27/introduction-to-image-augmentation-using-fastai

But are any transforms applied to a new image that’s not part of the train/valid/test sets on learn.predict calls? I assume there must be at least normalization.

Learner.predict applies the transforms of the validation set to the image you feed it + normalization.

2 Likes

Thanks!