Martin Tomov commited on
Commit
91b50f5
β€’
1 Parent(s): 6f0c2d2

if pixel == last_val:

Browse files
Files changed (1) hide show
  1. 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 was the last val:
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: