davanstrien HF staff commited on
Commit
f8c7f16
·
1 Parent(s): 5271adf

Update nls_chapbook_illustrations.py

Browse files
Files changed (1) hide show
  1. nls_chapbook_illustrations.py +1 -2
nls_chapbook_illustrations.py CHANGED
@@ -156,8 +156,7 @@ class NationalLibraryScotlandChapBooks(datasets.GeneratorBasedBuilder):
156
  category_id = annot["category_id"]
157
  if category_id == 1:
158
  annot["category_id"] = 0
159
- object_ = annot
160
- objects.append(object_)
161
  example["objects"] = objects
162
  yield idx, example
163
  if self.config.name == "image_classification":
 
156
  category_id = annot["category_id"]
157
  if category_id == 1:
158
  annot["category_id"] = 0
159
+ objects.append(annot)
 
160
  example["objects"] = objects
161
  yield idx, example
162
  if self.config.name == "image_classification":