(self, index)
return self.transforms(img, target)
Args:
            index (int): Index

        Returns:
            tuple: (image, target) where target is the image segmentation.
Args:
            index (int): Index
Args : index ( int ) : Index
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(self._PIL_mode)
        if self.targets_is_image:
            target = Image.open(self.targets[index])
        else:
            target = self.targets[index]
        return self.transforms(img, target)
def __getitem__ ( self , index ) : img = Image . open ( self . images [ index ] ) . convert ( self . _PIL_mode ) if self . targets_is_image : target = Image . open ( self . targets [ index ] ) else : target = self . targets [ index ] return self . transforms ( img , target )