Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stuck at "Getting and processing boxes" #45

Open
fatbun opened this issue Jun 9, 2022 · 1 comment
Open

stuck at "Getting and processing boxes" #45

fatbun opened this issue Jun 9, 2022 · 1 comment

Comments

@fatbun
Copy link

fatbun commented Jun 9, 2022

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

@nuno-faria
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants