Commit
·
83a96f9
1
Parent(s):
6a1852b
np image
Browse files- CustomAnchorShape.py +3 -2
CustomAnchorShape.py
CHANGED
|
@@ -4,7 +4,7 @@ from typing import List, Union
|
|
| 4 |
import numpy as np
|
| 5 |
|
| 6 |
import datasets
|
| 7 |
-
from .CustomAnchorShapeGenerator import CustomAnchorShape
|
| 8 |
|
| 9 |
|
| 10 |
# TODO: Add BibTeX citation
|
|
@@ -137,7 +137,8 @@ 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').convert('RGB'),
|
|
|
|
| 141 |
'width': width,
|
| 142 |
'height': height,
|
| 143 |
'object': {
|
|
|
|
| 4 |
import numpy as np
|
| 5 |
|
| 6 |
import datasets
|
| 7 |
+
from .CustomAnchorShapeGenerator import CustomAnchorShape, filled_anchors
|
| 8 |
|
| 9 |
|
| 10 |
# TODO: Add BibTeX citation
|
|
|
|
| 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 |
+
'image': filled_anchors(data, width, height),
|
| 142 |
'width': width,
|
| 143 |
'height': height,
|
| 144 |
'object': {
|