JadeRay-42 commited on
Commit
2e577d4
·
1 Parent(s): c69a319

only image

Browse files
Files changed (1) hide show
  1. CustomAnchorShape.py +6 -6
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 i, data in enumerate(custom_shape.custom_data):
138
  yield {
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 i, data in enumerate(custom_shape.custom_data):
138
  yield {
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
  # }