【发布时间】:2021-07-23 23:07:34
【问题描述】:
在按照tutorial 执行语义分割任务时,
我注意到模型的最终预测输出不是 0 和 1,
它由从 0.0000xxxx 到 1.0 的十进制值组成。
由于模型只接受了0和1的标签,
输出中的十进制值范围是什么意思?
(像素属于某一类的可能性?)
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
【问题讨论】:
标签: python machine-learning deep-learning semantic-segmentation