if stp > 2**32 / 4: # 66 GB max useful as currently written print 'WARNING: reducing to maximum tile size' stp = 2**32 / 4 t = Tiler(project, out_dir, stw=mksize(args.stw), sth=mksize(args.sth), stp=stp, clip_width=args.clip_width, clip_height=args.clip_height, log_dir=log_dir) t.threads = args.threads t.verbose = args.verbose t.st_dir = args.st_dir t.force = args.force t.merge = args.merge t.out_extension = args.out_ext t.ignore_errors = args.ignore_errors t.ignore_crop = args.ignore_crop t.st_limit = float(args.st_limit) # TODO: make this more proper? if args.nona_args: t.nona_args = args.nona_args.replace('"', '').split(' ') if args.enblend_args: t.enblend_args = args.enblend_args.replace('"', '').split(' ') if args.super_t_xstep: t.super_t_xstep = args.super_t_xstep
print 'Memory %s => %s pix' % (args.stm, size2str(stp)) elif auto_size: stm = config.super_tile_memory() if stm: stp = mem2pix(mksize(stm)) # having issues creating very large if stp > 2**32/4: # 66 GB max useful as currently written print 'WARNING: reducing to maximum tile size' stp = 2**32/4 t = Tiler(project, out_dir, stw=mksize(args.stw), sth=mksize(args.sth), stp=stp, clip_width=args.clip_width, clip_height=args.clip_height, log_dir=log_dir) t.threads = args.threads t.verbose = args.verbose t.st_dir = args.st_dir t.force = args.force t.merge = args.merge t.out_extension = args.out_ext t.ignore_errors = args.ignore_errors t.ignore_crop = args.ignore_crop t.st_limit = float(args.st_limit) # TODO: make this more proper? if args.nona_args: t.nona_args = args.nona_args.replace('"', '').split(' ') if args.enblend_args: t.enblend_args = args.enblend_args.replace('"', '').split(' ') if args.super_t_xstep: t.super_t_xstep = args.super_t_xstep