I get error on filepath line and image = self.transform
    def __getitem__(self, index):
        """Generate one sample of data."""
        filepath = os.path.join(self.root + "/img/" + self.filenames[index])
        bbox = self.bbox[index]
        image = cv2.imread(filepath, cv2.IMREAD_COLOR)
        image = image[bbox[1]:bbox[3], bbox[0]:bbox[2]]
        image = cv2.copyMakeBorder(image, bbox[1], bbox[3], bbox[0], bbox[2], cv2.BORDER_CONSTANT, value=[255, 255, 255])
        attribute_label = self.attributes[index]
        #category_label = self.categories[index]

        if self.transform is not None:
            image = self.transform(image)

        return image, attribute_label