From 695c161083c02870bdf99a23bdeebfc5953a001c Mon Sep 17 00:00:00 2001 From: Simon Edwardsson Date: Wed, 13 Jan 2021 14:45:30 +0000 Subject: [PATCH] Update upolygon/rle.pyx --- upolygon/rle.pyx | 2 -- 1 file changed, 2 deletions(-) diff --git a/upolygon/rle.pyx b/upolygon/rle.pyx index b447d65..8bcf925 100644 --- a/upolygon/rle.pyx +++ b/upolygon/rle.pyx @@ -28,8 +28,6 @@ def rle_encode(binary_mask): counts[i] = running_length i += 1 return counts.base[0:i].tolist() - return np.array(counts[0:i], dtype=np.int) - # return counts[0:i] # np.array(counts[0:i]) def rle_decode(counts, shape): img = np.zeros(shape[0] * shape[1], dtype=np.uint8)