diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 02:50:30 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-15 02:50:30 +0200 |
| commit | 30d23e0f445f2d0a2ca67499987ea079ba920de8 (patch) | |
| tree | 1be3822d3e95e6ca425a069eae3679542c88f639 /test-mogrify.py | |
| parent | aac562f272f881dee8b787216f984d61a76afc1c (diff) | |
test
Diffstat (limited to 'test-mogrify.py')
| -rw-r--r-- | test-mogrify.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test-mogrify.py b/test-mogrify.py index 83b9f81..2ffadbb 100644 --- a/test-mogrify.py +++ b/test-mogrify.py @@ -21,23 +21,20 @@ from time import sleep if __name__ == '__main__': opt = TestOptions().parse() data_opt = DatasetOptions().parse(opt.unknown) + opt.nThreads = 1 # test code only supports nThreads = 1 + opt.batchSize = 1 # test code only supports batchSize = 1 + opt.serial_batches = True # no shuffle + opt.no_flip = True # no flip + opt.experiment = data_opt.experiment # opt.start_img.split("/")[-1].split(".")[0] d = datetime.now() tag = "{}_{}_{}_{}".format( opt.name, opt.experiment, data_opt.experiment, - # opt.how_many, frac_a, - # blur, sigma, canny_lo, canny_hi, d.strftime('%Y%m%d%H%M')) opt.tag = tag - opt.nThreads = 1 # test code only supports nThreads = 1 - opt.batchSize = 1 # test code only supports batchSize = 1 - opt.serial_batches = True # no shuffle - opt.no_flip = True # no flip - opt.experiment = data_opt.experiment # opt.start_img.split("/")[-1].split(".")[0] - - opt.render_dir = render_dir = opt.results_dir + opt.name + "/" + data_opt.experiment + "/" + opt.render_dir = render_dir = opt.results_dir + opt.name + "/" + tag + "/" print("create render_dir: {}".format(render_dir)) if os.path.exists(render_dir): |
