View Results

In [1]:
from skimage import io
from glob import glob
from matplotlib import pyplot as plt

%matplotlib inline

Example 1: City Road Image with Edtaonisl Style

In [2]:
cr_content_image = io.imread('results/city road/city_road.jpg')
cr_style_image = io.imread('results/city road/style2.png')
cr_iter1 = io.imread('results/city road/style_transfer_result_city_road_gatys_at_iteration_1.png')
cr_iter5 = io.imread('results/city road/style_transfer_result_city_road_gatys_at_iteration_5.png')
cr_iter10 = io.imread('results/city road/style_transfer_result_city_road_gatys_at_iteration_10.png')
cr_iter15 = io.imread('results/city road/style_transfer_result_city_road_gatys_at_iteration_15.png')
cr_iter20 = io.imread('results/city road/style_transfer_result_city_road_gatys_at_iteration_20.png')
In [3]:
fig = plt.figure(figsize = (15, 10))
ax1 = fig.add_subplot(1,2, 1)
ax1.imshow(cr_content_image)
t1 = ax1.set_title('City Road Image')
ax2 = fig.add_subplot(1,2, 2)
ax2.imshow(cr_style_image)
t2 = ax2.set_title('Edtaonisl Style')
In [4]:
fig = plt.figure(figsize = (15, 30))

ax1 = fig.add_subplot(6,2, 1)
ax1.imshow(cr_content_image)
t1 = ax1.set_title('Original')

ax1 = fig.add_subplot(6,2, 2)
ax1.imshow(cr_iter1)
t1 = ax1.set_title('Iteration 1')

ax1 = fig.add_subplot(6,2, 3)
ax1.imshow(cr_iter5)
t1 = ax1.set_title('Iteration 5')

ax1 = fig.add_subplot(6,2, 4)
ax1.imshow(cr_iter10)
t1 = ax1.set_title('Iteration 10')

ax1 = fig.add_subplot(6,2, 5)
ax1.imshow(cr_iter15)
t1 = ax1.set_title('Iteration 15')

ax1 = fig.add_subplot(6,2, 6)
ax1.imshow(cr_iter20)
t1 = ax1.set_title('Iteration 20')

plt.tight_layout()
fig.subplots_adjust(top=0.95)
t = fig.suptitle('City Road Image after Style Transfer')