summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-20 12:18:14 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-20 12:18:14 +0200
commit22d97215e1e4c1b5aae3322e78118d674c352a30 (patch)
tree5f55a3f92c8cc0a21ee8547a4dec37e09a31d314 /test.py
parent678703c869908d8dd04947a9de00e35794404855 (diff)
expand
Diffstat (limited to 'test.py')
-rw-r--r--test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.py b/test.py
index 2c73c16..2f02e83 100644
--- a/test.py
+++ b/test.py
@@ -8,6 +8,7 @@ from util import html
from shutil import move, copyfile
from PIL import Image, ImageOps
from skimage.transform import resize
+from scipy.misc import imresize
import subprocess
from time import sleep
@@ -47,7 +48,7 @@ if __name__ == '__main__':
if dataset.name() == 'RecursiveDatasetDataLoader':
im = visuals['fake_B']
save_path = render_dir + "frame_{:05d}.png".format(i+1)
- im = im.resize((248, 248))
+ im = imresize(im, (248, 248), interp='bicubic')
im = ImageOps.expand(im, 4)
util.save_image(im, save_path)
webpage.save()