Spaces:
Runtime error
Runtime error
Commit
·
acf51ec
1
Parent(s):
e2955ec
app.py
Browse files
app.py
CHANGED
|
@@ -16,6 +16,12 @@ for idx, images in enumerate(os.listdir(coco_dir)):
|
|
| 16 |
image = os.path.join(coco_dir, images)
|
| 17 |
if os.path.isfile(image) and idx < 10:
|
| 18 |
coco_image.append(image)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
class AnchorBox:
|
| 21 |
"""Generates anchor boxes.
|
|
|
|
| 16 |
image = os.path.join(coco_dir, images)
|
| 17 |
if os.path.isfile(image) and idx < 10:
|
| 18 |
coco_image.append(image)
|
| 19 |
+
|
| 20 |
+
_, dataset_info = tfds.load(
|
| 21 |
+
"coco/2017", split=["train", "validation", "test"], with_info=True,
|
| 22 |
+
)
|
| 23 |
+
#test_dataset = tfds.load("coco/2017", split="test", data_dir="data")
|
| 24 |
+
int2str = dataset_info.features["objects"]["label"].int2str
|
| 25 |
|
| 26 |
class AnchorBox:
|
| 27 |
"""Generates anchor boxes.
|