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 |
-
"
|
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 |
-
"
|
70 |
-
"
|
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 |
}
|