|
|
@@ -52,7 +52,8 @@ class LineDataset(BaseDataset):
|
|
|
img_path = os.path.join(self.img_path, self.imgs[index])
|
|
|
if self.data_type == 'tiff':
|
|
|
lbl_path = os.path.join(self.lbl_path, self.imgs[index][:-4] + 'json')
|
|
|
- img = imageio.v3.imread(img_path).reshape(512, 512, 1)
|
|
|
+ # img = imageio.v3.imread(img_path).reshape(512, 512, 1)
|
|
|
+ img = imageio.v3.imread(img_path)[:, :, -1].reshape(512, 512, 1)
|
|
|
img_3channel = np.zeros((512, 512, 3), dtype=img.dtype)
|
|
|
img_3channel[:, :, 2] = img[:, :, 0]
|
|
|
|