Skip to content

Commit

Permalink
fix model inpaint/binary logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kmzzhang committed Oct 1, 2019
1 parent a68d766 commit affd13d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deepCR/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def clean(self, img0, threshold=0.5, inpaint=True, binary=True, segment=False,
"""

# data pre-processing

inpaint = inpaint and binary

img0 = img0.astype(np.float32) / self.scale
img0 = img0.copy()
if self.norm:
Expand Down

0 comments on commit affd13d

Please sign in to comment.