Skip to content

Commit

Permalink
Update for python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault de Boissiere committed Oct 29, 2017
1 parent 201e525 commit 4195f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Colorful/src/utils/general_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def plot_batch(color_model, q_ab, X_batch_black, X_batch_color, batch_size, h, w
list_img.append(arr)

plt.figure(figsize=(20,20))
list_img = [np.concatenate(list_img[4 * i: 4 * (i + 1)], axis=2) for i in range(len(list_img) / 4)]
list_img = [np.concatenate(list_img[4 * i: 4 * (i + 1)], axis=2) for i in range(len(list_img) // 4)]
arr = np.concatenate(list_img, axis=1)
plt.imshow(arr.transpose(1,2,0))
ax = plt.gca()
Expand Down Expand Up @@ -111,7 +111,7 @@ def plot_batch_eval(color_model, q_ab, X_batch_black, X_batch_color, batch_size,
list_img.append(arr)

plt.figure(figsize=(20,20))
list_img = [np.concatenate(list_img[4 * i: 4 * (i + 1)], axis=2) for i in range(len(list_img) / 4)]
list_img = [np.concatenate(list_img[4 * i: 4 * (i + 1)], axis=2) for i in range(len(list_img) // 4)]
arr = np.concatenate(list_img, axis=1)
plt.imshow(arr.transpose(1,2,0))
ax = plt.gca()
Expand Down

0 comments on commit 4195f10

Please sign in to comment.