Fix default parameters to zoom=2 so it works without arguments. Closes #71.

This commit is contained in:
Alex J. Champandard
2016-11-11 10:06:59 +01:00
parent a22d7ced3c
commit 881e909dc5
+1 -1
View File
@@ -36,7 +36,7 @@ parser = argparse.ArgumentParser(description='Generate a new image by applying s
formatter_class=argparse.ArgumentDefaultsHelpFormatter) formatter_class=argparse.ArgumentDefaultsHelpFormatter)
add_arg = parser.add_argument add_arg = parser.add_argument
add_arg('files', nargs='*', default=[]) add_arg('files', nargs='*', default=[])
add_arg('--zoom', default=1, type=int, help='Resolution increase factor for inference.') add_arg('--zoom', default=2, type=int, help='Resolution increase factor for inference.')
add_arg('--rendering-tile', default=128, type=int, help='Size of tiles used for rendering images.') add_arg('--rendering-tile', default=128, type=int, help='Size of tiles used for rendering images.')
add_arg('--rendering-overlap', default=32, type=int, help='Number of pixels padding around each tile.') add_arg('--rendering-overlap', default=32, type=int, help='Number of pixels padding around each tile.')
add_arg('--rendering-histogram',default=False, action='store_true', help='Match color histogram of output to input.') add_arg('--rendering-histogram',default=False, action='store_true', help='Match color histogram of output to input.')