diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-04-20 12:30:37 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-04-20 12:30:37 +0200 |
| commit | 94f11ee7de3124da88bcf5dbadd52f2d60027571 (patch) | |
| tree | 295491584e49df1c296203c427e0efa74f2cff4b /test.py | |
| parent | 7754aff95f9702be6029239eae1559f811796216 (diff) | |
expand
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -48,11 +48,13 @@ if __name__ == '__main__': if dataset.name() == 'RecursiveDatasetDataLoader': print(visuals.keys()) im = visuals['fake_B'] - save_path = render_dir + "frame_{:05d}.png".format(i+1) + save_path = render_dir + "frame_{:05d}_tmp.png".format(i+1) + final_path = render_dir + "frame_{:05d}.png".format(i+1) im = imresize(im, (248, 248), interp='bicubic') image_pil = Image.fromarray(im) image_pil = ImageOps.expand(image_pil, 4) image_pil.save(save_path) + os.rename(save_path, final_path) webpage.save() os.remove(render_dir + "frame_00000.png") |
