File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,9 @@ def test_box_gt_upload_update(dataset):
209
209
210
210
def test_box_gt_upload_ignore (dataset ):
211
211
annotation = BoxAnnotation (** TEST_BOX_ANNOTATIONS [0 ])
212
+
213
+ print (annotation )
214
+
212
215
response = dataset .annotate (annotations = [annotation ])
213
216
214
217
assert response ["annotations_processed" ] == 1
@@ -222,10 +225,12 @@ def test_box_gt_upload_ignore(dataset):
222
225
"reference_id"
223
226
]
224
227
annotation_update = BoxAnnotation (** annotation_update_params )
228
+
225
229
# Default behavior is ignore.
226
230
response = dataset .annotate (annotations = [annotation_update ])
227
231
228
- assert response ["annotations_processed" ] == 1
232
+
233
+ assert response ["annotations_processed" ] == 0
229
234
assert response ["annotations_ignored" ] == 1
230
235
231
236
response = dataset .refloc (annotation .reference_id )["annotations" ]["box" ]
@@ -286,7 +291,7 @@ def test_polygon_gt_upload_ignore(dataset):
286
291
# Default behavior is ignore.
287
292
response = dataset .annotate (annotations = [annotation_update ])
288
293
289
- assert response ["annotations_processed" ] == 1
294
+ assert response ["annotations_processed" ] == 0
290
295
assert response ["annotations_ignored" ] == 1
291
296
292
297
response = dataset .refloc (annotation .reference_id )["annotations" ][
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ def test_box_pred_upload_ignore(model_run):
175
175
# Default behavior is ignore.
176
176
response = model_run .predict (annotations = [prediction_update ])
177
177
178
- assert response ["predictions_processed" ] == 1
178
+ assert response ["predictions_processed" ] == 0
179
179
assert response ["predictions_ignored" ] == 1
180
180
181
181
response = model_run .refloc (prediction .reference_id )["box" ]
@@ -230,7 +230,7 @@ def test_polygon_pred_upload_ignore(model_run):
230
230
# Default behavior is ignore.
231
231
response = model_run .predict (annotations = [prediction_update ])
232
232
233
- assert response ["predictions_processed" ] == 1
233
+ assert response ["predictions_processed" ] == 0
234
234
assert response ["predictions_ignored" ] == 1
235
235
236
236
response = model_run .refloc (prediction .reference_id )["polygon" ]
You can’t perform that action at this time.
0 commit comments