From 9f5b6f30d7705fe408f10e97cb00a3f2dc740b44 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 22 Apr 2018 14:17:10 +0200 Subject: push --- test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index a712207..62dc3cd 100644 --- a/test.py +++ b/test.py @@ -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) -- cgit v1.2.3-70-g09d2