Fazzie commited on
Commit
378c090
1 Parent(s): 3f7b349
Files changed (2) hide show
  1. Teyvat.py +2 -2
  2. data.zip +2 -2
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 + image["file_name"]
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:7af9ac5503c8c0c806da3c9d8b29cea811115f883c2d6695c72fda6a60ffd71b
3
- size 466960560
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9b1a7ceac638f9a54f8ab19ea6563fd7bdaf1b68e657a8eb40db50357ec8786
3
+ size 466949280