vkashko commited on
Commit
bac36de
1 Parent(s): 996df8c

fix: script

Browse files
botox-injections-before-and-after.py CHANGED
@@ -34,7 +34,7 @@ class BotoxInjectionsBeforeAndAfter(datasets.GeneratorBasedBuilder):
34
  {
35
  "id": datasets.Value("int32"),
36
  "before": datasets.Image(),
37
- "aftre": datasets.Image(),
38
  }
39
  ),
40
  supervised_keys=None,
@@ -66,6 +66,6 @@ class BotoxInjectionsBeforeAndAfter(datasets.GeneratorBasedBuilder):
66
  ) in enumerate(zip(before, after)):
67
  yield idx, {
68
  "id": before_image_path.split("/")[-1].split(".")[0],
69
- "image": {"path": before_image_path, "bytes": before_image.read()},
70
- "mask": {"path": after_image_path, "bytes": after_image.read()},
71
  }
 
34
  {
35
  "id": datasets.Value("int32"),
36
  "before": datasets.Image(),
37
+ "after": datasets.Image(),
38
  }
39
  ),
40
  supervised_keys=None,
 
66
  ) in enumerate(zip(before, after)):
67
  yield idx, {
68
  "id": before_image_path.split("/")[-1].split(".")[0],
69
+ "before": {"path": before_image_path, "bytes": before_image.read()},
70
+ "after": {"path": after_image_path, "bytes": after_image.read()},
71
  }