Skip to content

Commit

Permalink
Remove masks from results
Browse files Browse the repository at this point in the history
  • Loading branch information
jrrodri committed Nov 23, 2024
1 parent cba42bd commit faef7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abraia/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def process_output(outputs, size, shape, classes, conf_threshold=0.25, iou_thres
mask = get_mask(mask, result['box'], size)
mask = cv2.threshold(mask, 127, 255, cv2.THRESH_BINARY)[1]
result['polygon'] = mask_to_polygon(mask, (x, y), approx)
# result.pop('mask', None)
result['mask'] = mask
result.pop('mask', None)
# result['mask'] = mask
return results


Expand Down

0 comments on commit faef7f7

Please sign in to comment.