Skip to content

Commit

Permalink
remove xrange for python 3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
deeppomf committed Feb 12, 2018
1 parent 181e13e commit 8f7e46f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def get_mask(x_batch):
raw = x_batch[i]
raw = np.array((raw + 1) * 127.5, dtype=np.uint8)
m = np.zeros((IMAGE_SIZE, IMAGE_SIZE, 1), dtype=np.uint8)
for x in xrange(IMAGE_SIZE):
for y in xrange(IMAGE_SIZE):
for x in range(IMAGE_SIZE):
for y in range(IMAGE_SIZE):
if np.array_equal(raw[x][y], [0, 255, 0]):
m[x, y] = 1
mask.append(m)
Expand Down

0 comments on commit 8f7e46f

Please sign in to comment.