Filename print twice

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!

why you are split with (’’)
with
filename = image_path.split(’
’)[-1][:-len(".jpg")]
you get --> ./dataset/train/32

and not with (’/)’
filename = image_path.split(’/’)[-1][:-len(".jpg")]