austinmw
(Austin)
May 12, 2019, 10:36pm
1
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
rishi_mrb
(Rishi Bhalodia)
May 13, 2019, 2:29am
3
austinmw
(Austin)
May 13, 2019, 6:07am
4
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