diff options
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -54,7 +54,7 @@ def main(): content_image = imread(ARGS.content) style_image = imread(ARGS.style) - style_image = transform.resize(style_image, content_image.shape).astype('uint8') + style_image = transform.resize(style_image, content_image.shape) my_model = YourModel(content_image=content_image, style_image=style_image) my_model.vgg16.build([1, 255, 255, 3]) my_model.vgg16.load_weights('vgg16_imagenet.h5', by_name=True) @@ -62,7 +62,7 @@ def main(): final_image = tf.squeeze(my_model.x) - plt.imshow(final_image) + plt.imshow(final_image).astype('uint8') imsave(ARGS.savefile, final_image) |