From 423c72c1eb93ea7fc6aaeba29e1c9f5e376b9fe6 Mon Sep 17 00:00:00 2001 From: David Doan Date: Sat, 7 May 2022 17:41:40 -0400 Subject: testing --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 2d8c216a..605ddee7 100644 --- a/main.py +++ b/main.py @@ -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) -- cgit v1.2.3-70-g09d2