Update artwork_for_sdxl.py
Browse files- artwork_for_sdxl.py +9 -7
artwork_for_sdxl.py
CHANGED
@@ -85,13 +85,12 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
85 |
# examples["image_data"] = p
|
86 |
# examples["prompt"] = p
|
87 |
# print(examples)
|
88 |
-
print(row)
|
89 |
-
print(row.prompt)
|
90 |
-
print(type(row.prompt))
|
91 |
-
print(row.file_name)
|
92 |
-
print(type(row.file_name))
|
93 |
# print current os directory
|
94 |
-
print(row['file_name'])
|
95 |
|
96 |
|
97 |
print(os.getcwd())
|
@@ -100,4 +99,7 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
100 |
|
101 |
# examples_json = json.dumps(examples)
|
102 |
|
103 |
-
yield
|
|
|
|
|
|
|
|
85 |
# examples["image_data"] = p
|
86 |
# examples["prompt"] = p
|
87 |
# print(examples)
|
88 |
+
# print(row)
|
89 |
+
# print(row.prompt)
|
90 |
+
# print(type(row.prompt))
|
91 |
+
# print(row.file_name)
|
92 |
+
# print(type(row.file_name))
|
93 |
# print current os directory
|
|
|
94 |
|
95 |
|
96 |
print(os.getcwd())
|
|
|
99 |
|
100 |
# examples_json = json.dumps(examples)
|
101 |
|
102 |
+
yield {
|
103 |
+
"image_data": "ssss",
|
104 |
+
"prompt": "label",
|
105 |
+
}
|