diff options
| author | jules@lens <julescarbon@gmail.com> | 2018-04-22 14:17:18 +0200 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2018-04-22 14:17:18 +0200 |
| commit | d4e429f5f2dc053e51c41bdfc34ab24c3605baef (patch) | |
| tree | 7863d48a5b23efdc13d05848698c030be2529c77 /test.py | |
| parent | 93f37afdda8b75cca1c66ec9577e1490aad836ec (diff) | |
| parent | 9f5b6f30d7705fe408f10e97cb00a3f2dc740b44 (diff) | |
Merge branch 'master' of ghghgh.us:pix2pix
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -37,7 +37,6 @@ if __name__ == '__main__': web_dir = os.path.join(opt.results_dir, opt.name, '%s_%s' % (opt.phase, opt.which_epoch)) webpage = html.HTML(web_dir, 'Experiment = %s, Phase = %s, Epoch = %s' % (opt.name, opt.phase, opt.which_epoch)) # test - print(dataset.name()) last_im = None for i, data in enumerate(data_loader): if i >= opt.how_many: @@ -61,9 +60,8 @@ if __name__ == '__main__': # image_pil.save(save_path) # copyfile(save_path, final_path) if last_im is not None: - im = np.divide(im, 2) tmp_im = im.copy() - im = np.add(im, last_im) + im = np.add(np.multiply(im, 1/3), np.multiply(last_im, 2/3)) last_im = tmp_im image_pil = Image.fromarray(im) image_pil.save(save_path) |
