moatifbutt / Drivable-Road-Region-Detection-and-Steering-Angle-Estimation-Method

A practical implementation of pixel level segmentation based road detection and steering angle estimation methods.
https://ieeexplore.ieee.org/abstract/document/9646953
16 stars 3 forks source link

Error While Creating Mask From .txt Label #2

Closed tlgkyn06 closed 1 year ago

tlgkyn06 commented 1 year ago

Hi , in dataset.py line 45 you read label files(.txt) with:

mask = np.array(Image.open(self.path_segs[index]).convert('RGB'))

or while debug is True, in utils/helpers.py line 163

train_sample_seg = cv2.imread(seg_path[0])

How is that possible? it gives me error >> PIL.UnidentifiedImageError: cannot identify image file '/root/Workspace/Drivable-Road-Region-Detection-and-Steering-Angle-Estimation-Method/CARL_DATASET/train_labels/1 03769.txt