How to structure image files for datasets.load_dataset("imagefolder") when you have input and output images like in instruct pix2pix?

Hi. It鈥檚 not supported yet. See Multi-image loading in Imagefolder dataset 路 Issue #5760 路 huggingface/datasets 路 GitHub, feel free to upvote and comment there.

Meanwhile, maybe you鈥檙e better done using the WebDatasets format: Create an image dataset

1 Like