JadeRay-42 commited on
Commit
6a1852b
·
1 Parent(s): 90ffea0
Files changed (1) hide show
  1. CustomAnchorShape.py +2 -2
CustomAnchorShape.py CHANGED
@@ -94,7 +94,7 @@ class CustomAnchorShapeDataset(datasets.GeneratorBasedBuilder):
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({
@@ -137,7 +137,7 @@ class CustomAnchorShapeDataset(datasets.GeneratorBasedBuilder):
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': {
 
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({
 
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').convert('RGB'),
141
  'width': width,
142
  'height': height,
143
  'object': {