File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 14
14
ERROR_PAYLOAD = "error_payload"
15
15
ERROR_CODES = "error_codes"
16
16
ANNOTATIONS_KEY = "annotations"
17
- ANNOTATION_ITEMS_KEY = "annotation_items"
18
17
ANNOTATION_ID_KEY = "annotation_id"
19
18
ANNOTATIONS_PROCESSED_KEY = "annotations_processed"
20
19
PREDICTIONS_PROCESSED_KEY = "predictions_processed"
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def create_model_run(
90
90
91
91
def annotate (
92
92
self ,
93
- annotations : List [Union [BoxAnnotation | PolygonAnnotation ]],
93
+ annotations : List [Union [BoxAnnotation , PolygonAnnotation ]],
94
94
update : Optional [bool ] = DEFAULT_ANNOTATION_UPDATE_MODE ,
95
95
batch_size : int = 20 ,
96
96
) -> dict :
Original file line number Diff line number Diff line change 8
8
METADATA_KEY ,
9
9
REFERENCE_ID_KEY ,
10
10
ANNOTATIONS_KEY ,
11
- ANNOTATION_ITEMS_KEY ,
12
11
ITEMS_KEY ,
13
12
FORCE_KEY ,
14
13
MODEL_ID_KEY ,
@@ -37,7 +36,7 @@ def construct_annotation_payload(
37
36
for annotation_item in annotation_items :
38
37
annotations .append (annotation_item .to_payload ())
39
38
40
- return {ANNOTATION_ITEMS_KEY : annotations , ANNOTATION_UPDATE_KEY : update }
39
+ return {ANNOTATIONS_KEY : annotations , ANNOTATION_UPDATE_KEY : update }
41
40
42
41
43
42
def construct_box_predictions_payload (
You can’t perform that action at this time.
0 commit comments