Update artwork_for_sdxl.py
Browse files- artwork_for_sdxl.py +2 -2
artwork_for_sdxl.py
CHANGED
@@ -48,7 +48,7 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
48 |
features=datasets.Features(
|
49 |
{
|
50 |
"prompt": datasets.Value("string"),
|
51 |
-
"image_data": datasets.
|
52 |
}
|
53 |
),
|
54 |
supervised_keys=("prompt","image_data"),
|
@@ -99,6 +99,6 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
99 |
# examples_json = json.dumps(examples)
|
100 |
|
101 |
yield row.file_name, {
|
102 |
-
"image_data":
|
103 |
"prompt": "label",
|
104 |
}
|
|
|
48 |
features=datasets.Features(
|
49 |
{
|
50 |
"prompt": datasets.Value("string"),
|
51 |
+
"image_data": datasets.Image(),
|
52 |
}
|
53 |
),
|
54 |
supervised_keys=("prompt","image_data"),
|
|
|
99 |
# examples_json = json.dumps(examples)
|
100 |
|
101 |
yield row.file_name, {
|
102 |
+
"image_data": img,
|
103 |
"prompt": "label",
|
104 |
}
|