“.
Caption 1 corresponds to the input image (image 1) that is to be edited.
Caption 2 corresponds to the edited image (image 2). It should reflect the edit instruction.
Following is a pictorial overview:

We have prepared a mini 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': V