Skip to content

Commit

Permalink
Update upolygon/rle.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
simedw authored Jan 13, 2021
1 parent 74d5154 commit 695c161
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions upolygon/rle.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 695c161

Please sign in to comment.