I am trying to do multilabel classification on a chest xray dataset by following a tutorial on DataBlock: https://docs.fast.ai/tutorial.datablock.html#Pascal-(multi-label)
This is the dataframe containing the filenames and labels:
This is the DataBlock, where I use the first column ‘Image Index’ for get_x and a custom function for get_y to split the second column ‘Finding Labels’.
However, I’m getting the ff. error on the xray.dataloaders(labels_sample) line:
TypeError: expected str, bytes or os.PathLike object, not DataFrame
What am I doing wrong, and how can I fix this error?