JadeRay-42 commited on
Commit
9c44a63
·
1 Parent(s): b78c5b4

only img info

Browse files
Files changed (1) hide show
  1. CustomAnchorShape.py +8 -8
CustomAnchorShape.py CHANGED
@@ -93,10 +93,10 @@ class CustomAnchorShapeDataset(datasets.GeneratorBasedBuilder):
93
  def _info(self):
94
  features = datasets.Features(
95
  {
96
- # 'image_id': datasets.Value('int64'),
97
- 'image': datasets.Image(),
98
- # 'width': datasets.Value('int64'),
99
- # 'height': datasets.Value('int64'),
100
  # 'object': datasets.features.Sequence({
101
  # 'bbox': datasets.features.Sequence(datasets.Value('float64')),
102
  # })
@@ -136,10 +136,10 @@ class CustomAnchorShapeDataset(datasets.GeneratorBasedBuilder):
136
 
137
  for idx, data in enumerate(custom_shape.custom_data):
138
  yield idx, {
139
- # 'image_id': i,
140
- 'image': custom_shape.get_distribution(data, type='img'),
141
- # 'width': width,
142
- # 'height': height,
143
  # 'object': {
144
  # 'bbox': custom_shape.get_distribution(data, type='1d'),
145
  # }
 
93
  def _info(self):
94
  features = datasets.Features(
95
  {
96
+ 'image_id': datasets.Value('int64'),
97
+ # 'image': datasets.Image(),
98
+ 'width': datasets.Value('int64'),
99
+ 'height': datasets.Value('int64'),
100
  # 'object': datasets.features.Sequence({
101
  # 'bbox': datasets.features.Sequence(datasets.Value('float64')),
102
  # })
 
136
 
137
  for idx, data in enumerate(custom_shape.custom_data):
138
  yield idx, {
139
+ 'image_id': idx,
140
+ # 'image': custom_shape.get_distribution(data, type='img'),
141
+ 'width': width,
142
+ 'height': height,
143
  # 'object': {
144
  # 'bbox': custom_shape.get_distribution(data, type='1d'),
145
  # }