Update utils.py

pull/40/head
geniusfoever 2 years ago committed by GitHub
parent 701a2e93f1
commit 4e0295140d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      models/utils.py

@ -116,7 +116,7 @@ def seg_postprocess(
bboxes[idx], scores[idx], labels[idx], maskconf[idx]
if bboxes==[]:return None,None,None,None
masks = (maskconf @ proto).reshape(-1, h, w)
# masks = crop_mask(masks, bboxes / 4.)
masks = crop_mask(masks, bboxes / 4.)
masks=masks.transpose([1, 2, 0])
masks = cv2.resize(masks,
(shape[1],shape[0]),

Loading…
Cancel
Save