Datasets:
fix path
Browse files
Teyvat.py
CHANGED
@@ -92,7 +92,7 @@ class Teyvat(datasets.GeneratorBasedBuilder):
|
|
92 |
name=datasets.Split.TRAIN,
|
93 |
# These kwargs will be passed to _generate_examples
|
94 |
gen_kwargs={
|
95 |
-
"data_path": data_path
|
96 |
"meta_data_path": meta_data_path
|
97 |
},
|
98 |
),
|
@@ -109,7 +109,7 @@ class Teyvat(datasets.GeneratorBasedBuilder):
|
|
109 |
data = load(open(meta_data_path, "r", encoding="utf8"))
|
110 |
|
111 |
for image in data:
|
112 |
-
image_path = data_path
|
113 |
text = image["text"]
|
114 |
|
115 |
|
|
|
92 |
name=datasets.Split.TRAIN,
|
93 |
# These kwargs will be passed to _generate_examples
|
94 |
gen_kwargs={
|
95 |
+
"data_path": data_path,
|
96 |
"meta_data_path": meta_data_path
|
97 |
},
|
98 |
),
|
|
|
109 |
data = load(open(meta_data_path, "r", encoding="utf8"))
|
110 |
|
111 |
for image in data:
|
112 |
+
image_path = join(data_path, image["file_name"])
|
113 |
text = image["text"]
|
114 |
|
115 |
|
data.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e9b1a7ceac638f9a54f8ab19ea6563fd7bdaf1b68e657a8eb40db50357ec8786
|
3 |
+
size 466949280
|