diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-08 21:11:03 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-08 21:11:03 +0100 |
| commit | 1a1be53dbc98b31dc2cd054da23d74cf91fdaabe (patch) | |
| tree | 2fb8752d6778a5bfc07caebd4f5393540ccd745d | |
| parent | 2e8da6a15eefa6570777b78753c82f2c48ea9451 (diff) | |
thirds
| -rw-r--r-- | crop-thirds.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crop-thirds.py b/crop-thirds.py index 1a9ea34..cd13768 100644 --- a/crop-thirds.py +++ b/crop-thirds.py @@ -21,7 +21,7 @@ parser.add_argument('--vertical_offset', type=int, default=256) # parser.add_argument('--dst_width', type=int, default=1024) # parser.add_argument('--dst_height', type=int, default=512) parser.add_argument('--count', type=int, default=3) -parser.add_argument('--max', type=int, default=0) +parser.add_argument('--max', type=int, default=99997) parser.add_argument('--aspect', type=float, default=3.0) # parser.add_argument('--folder_id', type=int, required=True) parser.add_argument('--overlap', type=float, default=0.5) @@ -51,7 +51,7 @@ for i in range(opt.count): os.makedirs(path) paths.append(path) -max_i = opt.max if opt.max == 0 else 99997 +max_i = opt.max dataset = [] for i, fn in enumerate(sorted(glob.glob(os.path.join(opt.folder, '*.png')))): if i > max_i: |
