Hi, I always get naming error when loading my own dataset:
why the filename print twice?
FileNotFoundError: [Errno 2] No such file or directory: ‘./dataset/train_GT./dataset/train/32.png’
My folder structure:
––dataset
——train
———0.jpg
———1.jpg
——train_GT
———0.png
———1.png
is there something wrong with the filename? and I define GT_path as follows:
` def getitem (self, index):
image_path = self.image_paths[index] | |
---|---|
filename = image_path.split(’_’)[-1][:-len(".jpg")] | |
GT_path = self.GT_paths + filename + ‘.png’` |
https://github.com/LeeJunHyun/Image_Segmentation
With reagards.Any help would be so grateful!