summaryrefslogtreecommitdiff
path: root/test-mogrify.py
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2018-05-15 05:45:20 +0200
committerjules@lens <julescarbon@gmail.com>2018-05-15 05:45:20 +0200
commit2822bfc89083620aafd44d8d397b4d6a46cc25ec (patch)
tree40e6e9f8043aa3ca4117791822b939c8971e9bad /test-mogrify.py
parentc7de4bc8b165315ecfdfbe663eb5d6df61138e62 (diff)
parentb439a144df0125601d3a5c454f87750da89cc286 (diff)
Merge branch 'master' of ghghgh.us:pix2pix
Diffstat (limited to 'test-mogrify.py')
-rw-r--r--test-mogrify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-mogrify.py b/test-mogrify.py
index 9dcae86..be74ba8 100644
--- a/test-mogrify.py
+++ b/test-mogrify.py
@@ -93,7 +93,7 @@ if __name__ == '__main__':
processed = True
img = cv2.Canny(img, data_opt.canny_lo, data_opt.canny_hi)
- if processed is False:
+ if processed is False or data_opt.process_frac == 0:
return img
src_img = im[:, :, ::-1].copy()