Update ImageRewardDB.py
Browse files- ImageRewardDB.py +2 -1
ImageRewardDB.py
CHANGED
@@ -248,7 +248,8 @@ class ImageRewardDB(datasets.GeneratorBasedBuilder):
|
|
248 |
prompt = sample["prompt"]
|
249 |
classification = sample["classification"]
|
250 |
image_amount_in_total = sample["image_amount_in_total"]
|
251 |
-
image_path.append(sample["image_path"])
|
|
|
252 |
rank.append(sample["rank"])
|
253 |
overall_rating.append(sample["overall_rating"])
|
254 |
image_text_alignment_rating.append(sample["image_text_alignment_rating"])
|
|
|
248 |
prompt = sample["prompt"]
|
249 |
classification = sample["classification"]
|
250 |
image_amount_in_total = sample["image_amount_in_total"]
|
251 |
+
# image_path.append(sample["image_path"])
|
252 |
+
image_path.append(os.path.join(data_dirs[index], str(sample["image_path"]).split("/")[-1]))
|
253 |
rank.append(sample["rank"])
|
254 |
overall_rating.append(sample["overall_rating"])
|
255 |
image_text_alignment_rating.append(sample["image_text_alignment_rating"])
|