Skip to content

Commit a56539d

Browse files
committed
gt box working
1 parent a9ed38a commit a56539d

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

nucleus/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
ERROR_PAYLOAD = "error_payload"
1515
ERROR_CODES = "error_codes"
1616
ANNOTATIONS_KEY = "annotations"
17-
ANNOTATION_ITEMS_KEY = "annotation_items"
1817
ANNOTATION_ID_KEY = "annotation_id"
1918
ANNOTATIONS_PROCESSED_KEY = "annotations_processed"
2019
PREDICTIONS_PROCESSED_KEY = "predictions_processed"

nucleus/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def create_model_run(
9090

9191
def annotate(
9292
self,
93-
annotations: List[Union[BoxAnnotation | PolygonAnnotation]],
93+
annotations: List[Union[BoxAnnotation, PolygonAnnotation]],
9494
update: Optional[bool] = DEFAULT_ANNOTATION_UPDATE_MODE,
9595
batch_size: int = 20,
9696
) -> dict:

nucleus/payload_constructor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
METADATA_KEY,
99
REFERENCE_ID_KEY,
1010
ANNOTATIONS_KEY,
11-
ANNOTATION_ITEMS_KEY,
1211
ITEMS_KEY,
1312
FORCE_KEY,
1413
MODEL_ID_KEY,
@@ -37,7 +36,7 @@ def construct_annotation_payload(
3736
for annotation_item in annotation_items:
3837
annotations.append(annotation_item.to_payload())
3938

40-
return {ANNOTATION_ITEMS_KEY: annotations, ANNOTATION_UPDATE_KEY: update}
39+
return {ANNOTATIONS_KEY: annotations, ANNOTATION_UPDATE_KEY: update}
4140

4241

4342
def construct_box_predictions_payload(

0 commit comments

Comments
 (0)