Predict_array returns constant value [0.0, 1.0]

Check out this thread: Cannot make Individual prediction work

Basically, you should use open_image (from dataset.py) to open a single image as np array. It’ll handle scaling it the same way data being loaded into the learner was scaled. np.resize may cause you an issue too, since that will only juggle things around in the array, it won’t change dimensions of the image through bilinear interpolation or any of that stuff. Surprised you aren’t getting a shape error from resizing to 2d array. Are these grayscale images?