Skip to content

Commit 67bfce5

Browse files
committed
Fix numpy issue
1 parent dde7416 commit 67bfce5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/python/model_api/models/segmentation.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,6 @@ def get_contours(
224224
while next_child_idx >= 0:
225225
children.append(contours[next_child_idx])
226226
next_child_idx = hierarchy[next_child_idx][0]
227-
228-
if not children:
229-
children = None
230227

231228
mask = np.zeros(prediction.resultImage.shape, dtype=np.uint8)
232229
cv2.drawContours(

0 commit comments

Comments
 (0)