We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56347c7 commit a646fd3Copy full SHA for a646fd3
tests/data/serialization/ndjson/test_export_video_objects.py
@@ -604,3 +604,16 @@ def test_serialize_video_objects():
604
deserialized_labels = NDJsonConverter.deserialize([label])
605
label = next(deserialized_labels)
606
assert len(label.annotations) == 6
607
+
608
609
+def test_confidence_is_ingored():
610
+ label = video_bbox_label()
611
+ serialized_labels = NDJsonConverter.serialize([label])
612
+ label = next(serialized_labels)
613
+ label["confidence"] = 0.453
614
+ label['segments'][0]["confidence"] = 0.453
615
616
+ deserialized_labels = NDJsonConverter.deserialize([label])
617
+ label = next(deserialized_labels)
618
+ for annotation in label.annotations:
619
+ assert annotation.confidence is None
0 commit comments