tiler
tiler copied to clipboard
stuck at "Getting and processing boxes"
when I run python tiler.py path/to/image path/to/tiles_folder/
, stuck at "Getting and processing boxes".
Loading tiles 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 125/125 [00:03<00:00, 32.19it/s] Getting and processing boxes 0%|
That can take a long time depending on the size of the image to tile, the size of the tiles, the number of resizing scales, and the pixel shift.
Some options are (conf.py
):
- have fewer
RESIZING_SCALES
with larger values (e.g.,[0.75]
instead of[0.5, 0.4, 0.3, ...]
); this controls the scale of the tile and the number of times the tile is considered in different scales, so fewer and higher scales means less boxes to process; - increase the
PIXEL_SHIFT
to higher values (e.g.,(10, 10)
instead of(5, 5)
); the lower thePIXEL_SHIFT
the more boxes will need to be processed; - try reducing the resolution of the original image just for testing various tiles, then run the final version on the original resolution;
- increase the
POOL_SIZE
if your CPU has more than 8 cores.
Hope this helps.