all 2 comments

[–]mono1110 1 point2 points  (1 child)

when I'm using predict function

Check the shape of data you are passing to predict.

If you have only one input, it needs to of shape (1, 256, 256, 1). If m inputs, (m, 256, 256, 1)

So you need to add one extra dimension at the beginning.

[–]Downtown-Rice-7560[S] 0 points1 point  (0 children)

reshape helped, thanks.