Update Action-Effect.py
Browse files- Action-Effect.py +2 -2
Action-Effect.py
CHANGED
@@ -83,10 +83,10 @@ class Action_Effect(datasets.GeneratorBasedBuilder):
|
|
83 |
for img_name in os.listdir(this_image_root_positive):
|
84 |
img_pil = Image.open(this_image_root_positive + img_name)
|
85 |
img_np = asarray(img_pil)
|
86 |
-
|
87 |
for img_name in os.listdir(this_image_root_negative):
|
88 |
img_pil = Image.open(this_image_root_negative + img_name)
|
89 |
img_np = asarray(img_pil)
|
90 |
-
|
91 |
yield idx, this_ae_info
|
92 |
|
|
|
83 |
for img_name in os.listdir(this_image_root_positive):
|
84 |
img_pil = Image.open(this_image_root_positive + img_name)
|
85 |
img_np = asarray(img_pil)
|
86 |
+
this_ae_info["positive_image_list"].append(img_np)
|
87 |
for img_name in os.listdir(this_image_root_negative):
|
88 |
img_pil = Image.open(this_image_root_negative + img_name)
|
89 |
img_np = asarray(img_pil)
|
90 |
+
this_ae_info["negative_image_list"].append(img_np)
|
91 |
yield idx, this_ae_info
|
92 |
|