diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-20 12:18:14 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-20 12:18:14 +0200 |
| commit | 22d97215e1e4c1b5aae3322e78118d674c352a30 (patch) | |
| tree | 5f55a3f92c8cc0a21ee8547a4dec37e09a31d314 /test.py | |
| parent | 678703c869908d8dd04947a9de00e35794404855 (diff) | |
expand
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |
