tiler icon indicating copy to clipboard operation
tiler copied to clipboard

stuck at "Getting and processing boxes"

Open fatbun opened this issue 2 years ago • 1 comments

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%|

fatbun avatar Jun 09 '22 04:06 fatbun

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 the PIXEL_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.

nuno-faria avatar Jun 09 '22 07:06 nuno-faria