How to use 'Imagefolder' but with different jsonl file?

I know that we can use dataset = load_dataset(‘imagefolder’,data_dir=‘/home/’ ) to load images with captions in meta.jsonl. So how to use different jsonl files?

I mean, I want to use meta_set1.json for one experiment and use meta_set2.json for another experiment, but they all use the same data_dir. In other words, how can I define the meta.json file in ‘imagefolder’ setup?


The imagefolder’s metadata file has to named metadata.jsonl (or metadata.csv), so renaming them between runs is currently the only option.