From acac8a4d4047e4e422361c3c363c34985bc14070 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 15 May 2018 02:33:40 +0200 Subject: test --- test-mogrify.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'test-mogrify.py') diff --git a/test-mogrify.py b/test-mogrify.py index c8fa7a0..7c3c84a 100644 --- a/test-mogrify.py +++ b/test-mogrify.py @@ -46,19 +46,22 @@ if __name__ == '__main__': model = create_model(opt) visualizer = Visualizer(opt) # create website - 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)) + # 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 last_im = None for i, data in enumerate(data_loader): + print(i) if i >= opt.how_many: break model.set_input(data) model.test() visuals = model.get_current_visuals() img_path = model.get_image_paths() - print('%04d: process image... %s' % (i, img_path)) - ims = visualizer.save_images(webpage, visuals, img_path, aspect_ratio=opt.aspect_ratio) + + if (i % 100) == 0: + print('%04d: process image... %s' % (i, img_path)) + # ims = visualizer.save_images(webpage, visuals, img_path, aspect_ratio=opt.aspect_ratio) im = visuals['fake_B'] tmp_path = render_dir + "frame_{:05d}_tmp.png".format(i+1) -- cgit v1.2.3-70-g09d2