Commit
·
c69a319
1
Parent(s):
a59f72b
test
Browse files- CustomAnchorShape.py +6 -6
CustomAnchorShape.py
CHANGED
|
@@ -97,9 +97,9 @@ class CustomAnchorShapeDataset(datasets.GeneratorBasedBuilder):
|
|
| 97 |
'image': datasets.Image(),
|
| 98 |
'width': datasets.Value('int64'),
|
| 99 |
'height': datasets.Value('int64'),
|
| 100 |
-
'object': datasets.features.Sequence({
|
| 101 |
-
|
| 102 |
-
})
|
| 103 |
}
|
| 104 |
)
|
| 105 |
return datasets.DatasetInfo(
|
|
@@ -140,7 +140,7 @@ class CustomAnchorShapeDataset(datasets.GeneratorBasedBuilder):
|
|
| 140 |
'image': custom_shape.get_distribution(data, type='img'),
|
| 141 |
'width': width,
|
| 142 |
'height': height,
|
| 143 |
-
'object': {
|
| 144 |
-
|
| 145 |
-
}
|
| 146 |
}
|
|
|
|
| 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 |
+
# })
|
| 103 |
}
|
| 104 |
)
|
| 105 |
return datasets.DatasetInfo(
|
|
|
|
| 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 |
+
# }
|
| 146 |
}
|