Skip to content

Commit 81e7092

Browse files
committed
Fixing flake8 errors
1 parent c3501c3 commit 81e7092

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

python/flowdec/fft_pad_rainbow.py

100644100755
Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

python/flowdec/restoration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def _build_tf_graph(self):
247247

248248
with tf.control_dependencies([assert_pad_mode, assert_start_mode, assert_shapes]):
249249

250-
# If configured to do so, expand dimensions of data array to power of 2 or
251-
# prime factor multiples (after adding a minimum padding as well, if given)
250+
# If configured to do so, expand dimensions of data array to power of 2 or
251+
# prime factor multiples (after adding a minimum padding as well, if given)
252252
# to avoid use of Bluestein algorithm in favor of significantly faster Cooley-Tukey FFT
253253
pad_shape = tf.shape(datah) + padminh
254254
datat = tf.cond(tf.equal(padmodh, OPM_2357),

python/flowdec/validation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
from flowdec import data as fd_data
33
from flowdec import restoration as fd_restoration
44
from flowdec import exec as fd_exec
5-
from flowdec.fft_utils_tf import OPTIMAL_PAD_MODES
5+
from flowdec.fft_utils_tf import OPTIMAL_PAD_MODES, OPM_LOG2
66
from skimage.transform import resize
7-
from skimage.exposure import rescale_intensity
87
from scipy.ndimage.interpolation import shift as scipy_shift
98
from skimage.measure import compare_ssim
109
from scipy.signal import fftconvolve

0 commit comments

Comments
 (0)