File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,11 @@ def reference_id_from_url(url):
94
94
for i in range (len (TEST_IMG_URLS ))
95
95
]
96
96
97
- TEST_MASK_URL = "https://scale-temp .s3.amazonaws.com/scale-select /nucleus/mscoco_semseg_masks_uint8 /000000000285.png"
97
+ TEST_MASK_URL = "https://scale-ml .s3.amazonaws.com/tmp /nucleus/mscoco_semseg_masks /000000000285.png"
98
98
TEST_SEGMENTATION_ANNOTATIONS = [
99
99
{
100
100
"reference_id" : reference_id_from_url (TEST_IMG_URLS [i ]),
101
+ "annotation_id" : f"[Pytest] Polygon Annotation Annotation Id{ i } " ,
101
102
"mask_url" : get_signed_url (TEST_MASK_URL ),
102
103
"annotations" : [
103
104
{"label" : "bear" , "index" : 2 },
@@ -151,6 +152,9 @@ def assert_segmentation_annotation_matches_dict(
151
152
annotation_instance , annotation_dict
152
153
):
153
154
assert annotation_instance .mask_url == annotation_dict ["mask_url" ]
155
+ assert (
156
+ annotation_instance .annotation_id == annotation_dict ["annotation_id" ]
157
+ )
154
158
# Cannot guarantee segments are in same order
155
159
assert len (annotation_instance .annotations ) == len (
156
160
annotation_dict ["annotations" ]
You can’t perform that action at this time.
0 commit comments