wintercoming6
commited on
Commit
•
89d49c3
1
Parent(s):
9a09fd1
Update artwork_for_sdxl.py
Browse files- artwork_for_sdxl.py +3 -2
artwork_for_sdxl.py
CHANGED
@@ -47,7 +47,7 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
47 |
features=datasets.Features(
|
48 |
{
|
49 |
"prompt": datasets.Value("string"),
|
50 |
-
"image_data": datasets.
|
51 |
}
|
52 |
),
|
53 |
supervised_keys=("prompt","image_data"),
|
@@ -83,10 +83,11 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
83 |
print(path.file_name)
|
84 |
print(type(path.file_name))
|
85 |
# print current os directory
|
|
|
86 |
print(os.getcwd())
|
87 |
img = self.download_image(_image_url+ path.file_name)
|
88 |
print(img)
|
89 |
yield {
|
90 |
"prompt": path.prompt,
|
91 |
-
"image_data":
|
92 |
}
|
|
|
47 |
features=datasets.Features(
|
48 |
{
|
49 |
"prompt": datasets.Value("string"),
|
50 |
+
"image_data": datasets.Value("string"),
|
51 |
}
|
52 |
),
|
53 |
supervised_keys=("prompt","image_data"),
|
|
|
83 |
print(path.file_name)
|
84 |
print(type(path.file_name))
|
85 |
# print current os directory
|
86 |
+
|
87 |
print(os.getcwd())
|
88 |
img = self.download_image(_image_url+ path.file_name)
|
89 |
print(img)
|
90 |
yield {
|
91 |
"prompt": path.prompt,
|
92 |
+
"image_data": path.file_name,
|
93 |
}
|