Datasets:

Languages:
English
ArXiv:
License:
yasumasaonoe commited on
Commit
3b312f9
·
verified ·
1 Parent(s): 7c63feb

Update docci.py

Browse files
Files changed (1) hide show
  1. docci.py +2 -4
docci.py CHANGED
@@ -137,8 +137,6 @@ class DOCCI(datasets.GeneratorBasedBuilder):
137
 
138
  def _generate_examples_docci_aar(self, data, split):
139
  image_files = glob.glob(os.path.join(data["images"], "images_aar", "*.jpg"))
140
-
141
- print(image_files)
142
 
143
  for image_path in image_files:
144
 
@@ -149,10 +147,10 @@ class DOCCI(datasets.GeneratorBasedBuilder):
149
  print()
150
 
151
  if split == "train":
152
- if not example_id.startswith("train"):
153
  continue
154
  elif split == "test":
155
- if not example_id.startswith("test"):
156
  continue
157
 
158
  _ex = {
 
137
 
138
  def _generate_examples_docci_aar(self, data, split):
139
  image_files = glob.glob(os.path.join(data["images"], "images_aar", "*.jpg"))
 
 
140
 
141
  for image_path in image_files:
142
 
 
147
  print()
148
 
149
  if split == "train":
150
+ if not example_id.startswith("aar_train"):
151
  continue
152
  elif split == "test":
153
+ if not example_id.startswith("aar_test"):
154
  continue
155
 
156
  _ex = {