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

maximum memory usage too high in resolve_conflicts.py #7

Open
aryarm opened this issue Jul 22, 2020 · 0 comments
Open

maximum memory usage too high in resolve_conflicts.py #7

aryarm opened this issue Jul 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@aryarm
Copy link
Member

aryarm commented Jul 22, 2020

In resolve_conflicts.py we load the entire orthomosaic into memory just so that we can get its dimensions. This is probably very memory inefficient.
There are a couple of potential solutions:

  1. Save the image dimensions in the segments file during the segmentation step, so that resolve_conflicts.py can just load it from there
  2. Use a python library that can get the image dimensions without loading the file into memory (unlike PIL)
@aryarm aryarm added the enhancement New feature or request label Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant