(self, index)
return img, target
Args:
            index (int): Index
        Returns:
            tuple: (image, target) where target is the image segmentation.
Args:
            index (int): Index
        Returns:
            tuple: (image, target) where target is the image segmentation.
Args : index ( int ) : Index Returns : tuple : ( image target ) where target is the image segmentation .
def __getitem__(self, index):
        """
        Args:
            index (int): Index
        Returns:
            tuple: (image, target) where target is the image segmentation.
        """
        img = Image.open(self.images[index]).convert('RGB')
        target = Image.open(self.masks[index])
        if self.transform is not None:
            img, target = self.transform(img, target)

        return img, target
def __getitem__ ( self , index ) : img = Image . open ( self . images [ index ] ) . convert ( 'RGB' ) target = Image . open ( self . masks [ index ] ) if self . transform is not None : img , target = self . transform ( img , target ) return img , target