loliipopshock
commited on
Commit
·
f9b14aa
1
Parent(s):
b92984e
Rename folder and correct typo
Browse files
{scripts → tools}/convert_prima_to_coco.py
RENAMED
@@ -38,7 +38,7 @@ def _create_category(schema=0):
|
|
38 |
if schema==0:
|
39 |
|
40 |
categories = \
|
41 |
-
[{"supercategory": "layout", "id":
|
42 |
{"supercategory": "layout", "id": 1, "name": "TextRegion"},
|
43 |
{"supercategory": "layout", "id": 2, "name": "ImageRegion"},
|
44 |
{"supercategory": "layout", "id": 3, "name": "TableRegion"},
|
|
|
38 |
if schema==0:
|
39 |
|
40 |
categories = \
|
41 |
+
[{"supercategory": "layout", "id": 0, "name": "Background"},
|
42 |
{"supercategory": "layout", "id": 1, "name": "TextRegion"},
|
43 |
{"supercategory": "layout", "id": 2, "name": "ImageRegion"},
|
44 |
{"supercategory": "layout", "id": 3, "name": "TableRegion"},
|