diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-20 12:20:45 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-20 12:20:45 +0200 |
| commit | fe6ee784b746637b10ee000d1f63e47dbdf3fffb (patch) | |
| tree | 50afe9ce07faa232c8fc7fba6fd83d12ad25a7a9 /test.py | |
| parent | 22d97215e1e4c1b5aae3322e78118d674c352a30 (diff) | |
expand
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -49,8 +49,9 @@ if __name__ == '__main__': im = visuals['fake_B'] save_path = render_dir + "frame_{:05d}.png".format(i+1) im = imresize(im, (248, 248), interp='bicubic') - im = ImageOps.expand(im, 4) - util.save_image(im, save_path) + image_pil = Image.fromarray(im) + image_pil = ImageOps.expand(image_pil, 4) + image_pil.save(image_path) webpage.save() os.remove(render_dir + "frame_00000.png") |
