Skip to content

Commit bb32819

Browse files
authored
Fix formatting in examples/vision/visualizing_what_convnets_learn.py (#2312)
1 parent 69250f9 commit bb32819

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/vision/visualizing_what_convnets_learn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ def deprocess_image(img):
183183
for j in range(n):
184184
img = all_imgs[i * n + j]
185185
stitched_filters[
186-
(cropped_height + margin) * i : (cropped_height + margin) * i + cropped_height,
187-
(cropped_width + margin) * j : (cropped_width + margin) * j
188-
+ cropped_width,
186+
(cropped_height + margin) * i : (cropped_height + margin) * i
187+
+ cropped_height,
188+
(cropped_width + margin) * j : (cropped_width + margin) * j + cropped_width,
189189
:,
190190
] = img
191191
keras.utils.save_img("stiched_filters.png", stitched_filters)

0 commit comments

Comments
 (0)