Skip to content

Commit

Permalink
fixing rle decode for segmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shankar-vision-eng committed Jun 27, 2024
1 parent c6190a7 commit 9b47373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def generic_segmentation(image: np.ndarray) -> List[Dict[str, Any]]:
"score": round(answer["scores"][i], 2),
"label": answer["labels"][i],
"mask": rle_decode(
mask_rle=answer["masks"][i], shape=answer["mask_shape"]
mask_rle=answer["masks"][i], shape=answer["mask_shape"][0]
),
}
)
Expand Down

0 comments on commit 9b47373

Please sign in to comment.