Jiayi-Pan commited on
Commit
0430397
1 Parent(s): 84751cd

Update Action-Effect.py

Browse files
Files changed (1) hide show
  1. 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
- this_image_root_positive.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_image_root_negative.append(img_np)
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