图像分割(多分类)将mask变为one hot label
方法一:dataProcess.py · yangyin2020/Unet_RSimage_Multi-band_Multi-class - Gitee.comdef dataPreprocess(img, label, classNum, colorDict_GRAY): # 归一化 img = img / 255.0 for i in range(colorDict_GRAY.shape[0]): label[label == colorDict_GR
原创
2022-03-23 17:45:55 ·
5081 阅读 ·
3 评论