Skip to content

Commit 2ec23f4

Browse files
committed
fixed pr comments
1 parent 19329fa commit 2ec23f4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

vision_agent/utils/video_tracking.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,12 @@ def post_process(
275275
mask = rle_decode_array(detection["mask"])
276276
label = f"{detection['id']}: {detection['label']}"
277277
return_frame_data.append(
278-
{"label": label, "mask": mask, "score": 1.0, "rle": detection["mask"]}
278+
{
279+
"label": label,
280+
"mask": mask,
281+
"rle": detection["mask"],
282+
"score": 1.0,
283+
}
279284
)
280285
return_data.append(return_frame_data)
281286

@@ -291,9 +296,8 @@ def post_process(
291296
display_frame_data.append(
292297
{
293298
"label": obj["label"],
294-
"score": obj["score"],
295299
"bbox": denormalize_bbox(obj["bbox"], image_size),
296-
"mask": obj["rle"],
300+
"rle": obj["rle"],
297301
}
298302
)
299303
del obj["rle"]

0 commit comments

Comments
 (0)