While performing semantic-segmentation task by following this tutorial ,
I noticed that the final predicted output from the model is not 0 and 1,
it consists of decimal values from 0.0000xxxx to 1.0.
Since the model took in the label of 0 and 1 only,
what is the meaning of the the decimal values range in the output?
(The possibility of the pixels belonging to a certain class?)
test_img = cv2.imread('data/membrane1/test/0.png', cv2.IMREAD_COLOR)
test_img = cv2.resize(test_img, (SIZE_Y, SIZE_X))
test_img = cv2.cvtColor(test_img, cv2.COLOR_RGB2BGR)
test_img = np.expand_dims(test_img, axis=0)
prediction = model.predict(test_img)
plt.imshow(prediction_image, cmap='gray')
Youtube tutorial - 177 - Semantic segmentation made easy (using segmentation models library)
Github Original Source Code