alexrods commited on
Commit
ba0892b
1 Parent(s): bb74c81

Update mini_car_bikes_detection.py

Browse files
Files changed (1) hide show
  1. mini_car_bikes_detection.py +12 -12
mini_car_bikes_detection.py CHANGED
@@ -53,12 +53,12 @@ class MiniCarBikesDetection(datasets.GeneratorBasedBuilder):
53
  # "image_name": datasets.Value("string"),
54
  "width": datasets.Value("int32"),
55
  "height": datasets.Value("int32"),
56
- "objects": datasets.Sequence(
57
- {
58
- "name": datasets.ClassLabel(names=_CATEGORIES),
59
- "bbox": datasets.Sequence(datasets.Value("float32"), length=4)
60
- }
61
- ),
62
  }
63
  )
64
  return datasets.DatasetInfo(
@@ -98,12 +98,12 @@ class MiniCarBikesDetection(datasets.GeneratorBasedBuilder):
98
  yield {
99
  "width": annotation["width"],
100
  "height": annotation["height"],
101
- "objects": [
102
- {
103
- "name": annotation["name"],
104
- "bbox": annotation["bbox"]
105
- }
106
- ]
107
  }
108
 
109
  # def _generate_examples(self, image_files, annotation_files, split):
 
53
  # "image_name": datasets.Value("string"),
54
  "width": datasets.Value("int32"),
55
  "height": datasets.Value("int32"),
56
+ # "objects": datasets.Sequence(
57
+ # {
58
+ # "name": datasets.ClassLabel(names=_CATEGORIES),
59
+ # "bbox": datasets.Sequence(datasets.Value("float32"), length=4)
60
+ # }
61
+ # ),
62
  }
63
  )
64
  return datasets.DatasetInfo(
 
98
  yield {
99
  "width": annotation["width"],
100
  "height": annotation["height"],
101
+ # "objects": [
102
+ # {
103
+ # "name": annotation["name"],
104
+ # "bbox": annotation["bbox"]
105
+ # }
106
+ # ]
107
  }
108
 
109
  # def _generate_examples(self, image_files, annotation_files, split):