Spaces:
Running
Running
Martin Tomov
commited on
Commit
β’
91b50f5
1
Parent(s):
6f0c2d2
if pixel == last_val:
Browse files- sam_utils.py +1 -1
sam_utils.py
CHANGED
@@ -176,7 +176,7 @@ def run_length_encoding(mask):
|
|
176 |
last_val = 0
|
177 |
count = 0
|
178 |
for pixel in pixels:
|
179 |
-
if pixel
|
180 |
count += 1
|
181 |
else:
|
182 |
if count > 0:
|
|
|
176 |
last_val = 0
|
177 |
count = 0
|
178 |
for pixel in pixels:
|
179 |
+
if pixel == last_val:
|
180 |
count += 1
|
181 |
else:
|
182 |
if count > 0:
|