The image format is dict not PIL.

#1
by tshen58 - opened

Hi, I load the dataset using the following command:

data = datasets.load_dataset('derek-thomas/ScienceQA', 'test')
for sample in data['test']:
      sample['image']

But the 'image' in the data is the format of a dictionary with keys of 'bytes' and 'path', which is not a PIL image. And I don't know how to process it.

https://huggingface.co/docs/datasets/v2.3.2/en/image_process#image-datasets

Let me know if this doesnt solve your problem. Ill close this for now since its not an issue with derek-thomas/ScienceQA

derek-thomas changed discussion status to closed

Sign up or log in to comment