ini dataset to implement this metric. Let’s first load the dataset.   Copied from datasets import load_dataset

dataset = load_dataset("sayakpaul/instructpix2pix-demo", split="train")
dataset.features   Copied {'input': Value(dtype='string', id=None),
 'edit': Value(dtype='string', id=None),
 'output': Value(dtype='string', id=None),
 'image': Image(decode=True, id=None)} Here we have: input is a caption corresponding to the image. edit denotes