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

add idx return

Browse files
Files changed (1) hide show
  1. CustomAnchorShape.py +2 -2
CustomAnchorShape.py CHANGED
@@ -134,8 +134,8 @@ class CustomAnchorShapeDataset(datasets.GeneratorBasedBuilder):
134
  custom_data=custom_data,
135
  )
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,
 
134
  custom_data=custom_data,
135
  )
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,