DeepGlobe-Road-Extraction-Challenge icon indicating copy to clipboard operation
DeepGlobe-Road-Extraction-Challenge copied to clipboard

对于给出的模型的验证集的结果有一些疑问

Open gittigxuy opened this issue 5 years ago • 2 comments

我使用的是readme给模型,在运行test.py文件之后生成对于验证集的预测mask,发现好多mask都是空白的,并且其他的有黑色mask的结果并不是卫星图片当中的道路,这个是我代码改错了吗?我仅仅resize了一下图片的结果

def test_one_img_from_path_4(self, path):
    img = cv2.imread(path)#.transpose(2,0,1)[None]
    img=cv2.resize(img,(1024,1024),interpolation=cv2.INTER_LINEAR)
    img90 = np.array(np.rot90(img))
    img90=cv2.resize(img90,(1024,1024),interpolation=cv2.INTER_LINEAR)
    img1 = np.concatenate([img[None],img90[None]])

gittigxuy avatar Apr 07 '19 16:04 gittigxuy