Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldies committed Feb 13, 2025
1 parent c5de4ff commit 35c9d3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cvat/apps/lambda_manager/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,9 @@ def parse_anno(anno, labels):
elif anno["type"] == "mask":
[xtl, ytl, xbr, ybr] = shape["points"][-4:]
cut_points = shape["points"][:-4]
rle = mask_tools.mask_to_rle(np.array(cut_points))["counts"].tolist()
rle = mask_tools.mask_to_rle(np.array(cut_points)[:, np.newaxis])[
"counts"
].tolist()
rle.extend([xtl, ytl, xbr, ybr])
shape["points"] = rle

Expand Down

0 comments on commit 35c9d3c

Please sign in to comment.