Update ImageRewardDB.py
Browse files- ImageRewardDB.py +2 -1
ImageRewardDB.py
CHANGED
@@ -235,7 +235,8 @@ class ImageRewardDB(datasets.GeneratorBasedBuilder):
|
|
235 |
prompt = sample["prompt"]
|
236 |
classification = sample["classification"]
|
237 |
image_amount_in_total = sample["image_amount_in_total"]
|
238 |
-
image_path.append(sample["image_path"])
|
|
|
239 |
rank.append(sample["rank"])
|
240 |
overall_rating.append(sample["overall_rating"])
|
241 |
image_text_alignment_rating.append(sample["image_text_alignment_rating"])
|
|
|
235 |
prompt = sample["prompt"]
|
236 |
classification = sample["classification"]
|
237 |
image_amount_in_total = sample["image_amount_in_total"]
|
238 |
+
# image_path.append(sample["image_path"])
|
239 |
+
image_path.append(os.path.join(data_dirs[index], str(sample["image_path"]).split("/")[-1]))
|
240 |
rank.append(sample["rank"])
|
241 |
overall_rating.append(sample["overall_rating"])
|
242 |
image_text_alignment_rating.append(sample["image_text_alignment_rating"])
|