Skip to content

Commit 84b7de6

Browse files
Narek MkhitaryanNarek Mkhitaryan
authored andcommitted
added import_annotations test cases
1 parent a080beb commit 84b7de6

35 files changed

+4873
-82
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Welcome to the SuperAnnotate Python Software Development Kit (SDK), which enable
1818
Resources
1919
---------------
2020

21-
- API Reference and User Guide available on `Read the Docs <https://superannotate.readthedocs.io/en/stable/superannotate.sdk.html>`__
21+
- API Reference and User Guide available on `Read the Docs <https://superannotate.readthedocs.io/en/stable/index.html>`__
2222
- `Platform documentation <https://doc.superannotate.com/>`__
2323

2424

requirements_extra.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ pytest==7.3.1
1111
pytest-xdist==3.2.1
1212
pytest-parallel==0.1.1
1313
pytest-cov==4.0.0
14-
pytest-rerunfailures==11.1.2
14+
pytest-rerunfailures==11.1.2
15+
jsoncomparison==1.1.0

src/superannotate/lib/app/input_converters/converters/supervisely_converters/supervisely_to_sa_pixel.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ def supervisely_instance_segmentation_to_sa_pixel(json_files, class_id_map, outp
7676
parts.append({"color": hex_colors[index]})
7777
index += 1
7878
cv2.imwrite(
79-
str(
80-
output_dir
81-
/ file_name.replace(".json", "___save.png")
82-
),
79+
str(output_dir / file_name.replace(".json", "___save.png")),
8380
mask,
8481
)
8582
sa_obj = _create_pixel_instance(

tests/integration/convertors/data_set/coco_object_detection/TestVectorAnnotationImage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
10
9494
],
9595
"area": 100,
96-
"category_id": -1
96+
"category_id": 1611842
9797
},
9898
{
9999
"id": 3,
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"name": "Personal vehicle",
4+
"color": "#1b066e",
5+
"attribute_groups": []
6+
},
7+
{
8+
"name": "Large vehicle",
9+
"color": "#2e5ce0",
10+
"attribute_groups": []
11+
},
12+
{
13+
"name": "Human",
14+
"color": "#4949cc",
15+
"attribute_groups": []
16+
},
17+
{
18+
"name": "Plant",
19+
"color": "#460f3e",
20+
"attribute_groups": []
21+
}
22+
]
209 KB
Loading

0 commit comments

Comments
 (0)