From d54f71a7d263245c2ae0710983366b850ae42b63 Mon Sep 17 00:00:00 2001 From: Andrew Hundt Date: Tue, 19 Dec 2017 15:53:48 -0500 Subject: [PATCH] image_segmentation.py pep8 --- keras_contrib/preprocessing/image_segmentation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keras_contrib/preprocessing/image_segmentation.py b/keras_contrib/preprocessing/image_segmentation.py index 11be928..d867ed1 100644 --- a/keras_contrib/preprocessing/image_segmentation.py +++ b/keras_contrib/preprocessing/image_segmentation.py @@ -37,11 +37,11 @@ def pair_center_crop(x, y, center_crop_size, data_format, **kwargs): h_start, h_end = centerh - lh, centerh + rh w_start, w_end = centerw - lw, centerw + rw if data_format == 'channels_first': - return x[:, h_start:h_end, w_start:w_end], \ - y[:, h_start:h_end, w_start:w_end] + return (x[:, h_start:h_end, w_start:w_end], + y[:, h_start:h_end, w_start:w_end]) elif data_format == 'channels_last': - return x[h_start:h_end, w_start:w_end, :], \ - y[h_start:h_end, w_start:w_end, :] + return (x[h_start:h_end, w_start:w_end, :], + y[h_start:h_end, w_start:w_end, :]) def random_crop(x, random_crop_size, data_format, sync_seed=None, **kwargs):