Map verified objects to their sub label directly (#20413)
CI / AMD64 Build (push) Has been cancelled
CI / ARM Build (push) Has been cancelled
CI / Jetson Jetpack 6 (push) Has been cancelled
CI / AMD64 Extra Build (push) Has been cancelled
CI / ARM Extra Build (push) Has been cancelled
CI / Synaptics Build (push) Has been cancelled
CI / Assemble and push default build (push) Has been cancelled

* Map verified objects to their sub label directly

* Simplify access

* Cleanup

* Add protection for mismatched object and index

* Keep track of verified objects separately
This commit is contained in:
Nicolas Mowen
2025-10-10 08:07:00 -05:00
committed by GitHub
parent 24a1874225
commit b1a5896b53
3 changed files with 23 additions and 8 deletions
+3
View File
@@ -147,6 +147,9 @@ class PendingReviewSegment:
ReviewSegment.data.name: {
"detections": list(set(self.detections.keys())),
"objects": list(set(self.detections.values())),
"verified_objects": [
o for o in self.detections.values() if "-verified" in o
],
"sub_labels": list(self.sub_labels.values()),
"zones": self.zones,
"audio": list(self.audio),