Commit
·
9c44a63
1
Parent(s):
b78c5b4
only img info
Browse files- 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 |
-
|
| 97 |
-
'image': datasets.Image(),
|
| 98 |
-
|
| 99 |
-
|
| 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 |
-
|
| 140 |
-
'image': custom_shape.get_distribution(data, type='img'),
|
| 141 |
-
|
| 142 |
-
|
| 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 |
# }
|